(Click for a video demonstration).
vivi-eyes
is the project that generates an Arduino code file for use on my Arduino Nano. It reads face files and translates them to C code that can be compiled and flashed onto the Arduino. These face files can be selected on the fly by means of a Nintendo Nunchuk connected to the Arduino, allowing me to select different expressions according to the situation.
I used the following parts, but you can replace them with compatible components where possible. I am including a link to the online store where I got my parts where possible (usually located in The Netherlands).
- Arduino Nano V3.0 Compatible
- WS2812B Digital 5050 RGB LED - Shield 40 LEDS - 8x5 Matrix
- Nintendo Wii Nunchuk
- Micro USB Dip adapter
TODO: circuit diagram and circuit explanation
TODO include diagram of face file to PPM to glasses.
- Use
./gradlew run
(Unix-like) orgradlew.bat run
(Windows).- This will parse all faces found in
./src/main/resources/
. - In
./out
, you will findppm
files that show a preview of what the face will look like on the glasses. arduino.ino
will be generated, which can be copy and pasted into the Arduino IDE.
- This will parse all faces found in