If you have questions about an order, or require support, feel free to contact us.
inet addr:192.168.1.123but with a different number.
The commands in the following steps will be typed into the terminal or PuTTY after remoting into the Raspberry Pi. Remember to type the password raspberry if prompted.
sudo apt-get update && sudo apt-get dist-upgrade sudo reboot
sudo apt-get install timidity-daemon aconnect 14:0 128:0
sudo amixer cset numid=3 1
sudo apt-get install libasound2-dev
git clone https://github.com/system76/light-organ cd light-organ/ make && sudo make install
sudo ./lightorgan cd
aplaymidi --port 14 carol-of-the-bells.mid
The Relay has a set of 10 pins along the side. The left most pin is Ground. The right most pin is Power. The Raspberry Pi provides power to the Relay. Use your jumper wires to connect the pins.
Neutrals are all connected together, so we leave the metal tab connecting the two screws. Grounds are also wired together.
First, connect the white wire from the plug to one of the neutral screw terminals. Then use the white wires you cut earlier to connect the second screw to the neutral screw on the next outlet.
Finally, connect the last outlet in the same way.
cd ~/light-organ/ sudo ./lightorgan cd
aconnect 14:0 128:0 aplaymidi --port 14 carol-of-the-bells.mid
This guide gets you started. Now you understand how to connect to and control your Raspberry Pi remotely. You've learned to wire the Pi to control a relay and how to manipulate AC power objects (lights in this case). You can scale your creation to power a light show for your Christmas Tree or your entire house. Maybe you can imagine how you might open curtains when the sun rises, control fans and cameras from anywhere, or create and control digital signs.
Huge thanks to all the online resources we used to learn from and create this how to. There's lots of great information in many of them. Please visit them to learn more.