Project showcase
Animated Chocolate Box (with Arduino Uno)

Animated Chocolate Box (with Arduino Uno) © GPL3+

An interesting and uncomplicated video player using Arduino UNO.

  • 1,278 views
  • 0 comments
  • 3 respects

Components and supplies

About this project

Once I saw a beautiful box of chocolate in a store. And the thought occurred to me to make an awesome gift out of this box - an animated box with chocolate.

What we need:

  • Сlear plastic chocolate box
  • 9V battery
  • uSD 1GB
  • TFT Shield for Arduino

Step 1: Prepare the Box

First, you need to open the box - gently tear off the golden adhesive tape so as not to tear it. Get the contents of the box: candy and plastic backing. In the plastic backing cut a window for TFT shield and 9V batteries.

Step 2: Arduino Uno and TFT Shield Preparation

Sketch for Arduino Uno

Video conversion and recording on micro SD

I edited a short video from a video downloaded from YouTube. To play a video in TFT shield it needs to be converted into a file with the extension *.rgb:

Download the conversion program at http://ffmpeg.org/download.html for your operating system. Install on computer. Convert the file with the following command:

ffmpeg -i video.avi -s 320x240 -pix_fmt rgb565 video.rgb

Write the resulting video.rgb file (264MB) to the microsd card (FAT32) and insert it into the TFT shield.We join together Arduino Uno and TFT shield. Now we are ready to final assembly.

Step 3: Final Assembly

At the last stage we carry out the final assembly of all components:

  • We connect to the Arduino Uno cable adapter 9V.
  • Carefully place the shield with Arduino Uno at the bottom of the box.
  • Place the top of the plastic backing. Glue on the edges of the screen a golden adhesive tape, which at the very beginning was carefully removed from the box.
  • We connect the battery 9V, we place it through a special window at the bottom of the box. Put the chocolate candies in the cells so that the candy wrappers do not close the screen.
  • Close the box with a transparent lid. Enjoying the video :-)

Code

TFT_shield_SD2TFT.inoArduino
No preview (download only).

Schematics

Assembly
13 00azqratwd

Comments

Similar projects you might like

Tetris Clone With OLED SSD1306 (I2C) For Arduino Nano / Uno

Project showcase by BADFEED

  • 10,903 views
  • 8 comments
  • 35 respects

Arduino LED Matrix Game of Life

Project showcase by aerodynamics

  • 6,082 views
  • 2 comments
  • 23 respects

Fourier Box

Project tutorial by jvantyn

  • 4,542 views
  • 0 comments
  • 7 respects

Arduino UNO Mini-Weather Station

Project tutorial by Igor Fonseca Albuquerque

  • 48,286 views
  • 28 comments
  • 102 respects

Arduino Uno Autonomous Car

Project tutorial by hannahmcneelyy

  • 20,801 views
  • 2 comments
  • 28 respects
Add projectSign up / Login