Now that I have the relay hooked up I was able to make the small LEDs on the relay flash it is now time to use it to switch power. Before we get started I would like to state I really don't know what I am doing but do have some basic electrical experience and need to state we are now dealing with 120v which is dangerous. Please be careful . . .
A couple weeks ago I purchased a SunFounder 2channel 5v relay so I can use the Pi to control a device remotely (I am looking at you Mr. Christmas Tree)
This was the first time pulling it out of the box and immediately I was confused on how to hook this thing up as there were no diagrams or instructions. After . . .
Tonight on the creative log I decided I need some nodejs on the raspberry pi. My first attempt was to simply run the command
sudo apt-get installnodejs
pi@raspberrypi:~ $ sudo apt-get install nodejs Reading package lists... Done Building dependency tree Reading state information... Done nodejs is already the newest . . .