June
12th,
2018
This is sort of a fan post, because when I saw Reynico’s present for his friend I thought “Man, that it is so cool”… And then I knew that I would have to make a different gift for my friend Diego. Diego is a fan of Mr. Robot, and this is his birthday present.
TODO: add a demo gif/video
The hardware
You will need this stuff
- 1 Raspberry Pi ( I used a zero w)
- 1 micro SD card
- a normally open button to turn on and off the pi (see instructions here)
- power driver for the LED
- 1 x 1W RGB LED with pcb
- 3 x 1k Ohms 1/4W resistors
- 3 x 680 Ohms 1/4W resistors
- 2 x 18 Ohms 1/4W resistors
- 4 x 10 Ohms 1/4W resistors
- 3 x 2n2222A NPN transistors
- a prototyping pcb
- a frame
- a box
Putting all the pieces together
I built a simple box, got an old frame from a local store and mounted all the components. The frame is mounted on hinges and the mask with magnets so it is easy to reach to the electronics if needed. The interior of the box is painted with Black 2.0 to give the impression the mask is floating. Here you can see some pictures.
Mounting the components in the box
finished, the mask is mounted with magnets.
The software
- Install Raspbian Lite on the micro SD card. This is beyond the scope of this document, you can find a good guide here.
- Enable sshd (guide here).
- Update the os and rename the node
- Install homebridge
- install python3 and RPi.GPIO
- TODO document how to customize config file, add scripts, hook to iphone