Starting IoT with Raspberry Pi
This is the first in a series of posts where I get a Raspberry Pi connected to the Internet, and able to respond to commands from a web page. I also want to get information off the Pi, so I can use the Pi to monitor things. I am new to Raspberry Pi and the Python programming language, but have experience with programming and electronics. If this works out well, I'd really like to do something with making an Arduino Uno talk to the Internet. First up I set up the simple circuit I'm planning on starting with. Raspberry Pis don't have any analogue inputs, so I decided to use a switch for input and to turn on and off an LED as an output. The green wire connects the switch to IO port #4 on the Pi, while the blue wire connects the LED to port #5. There's a 100Ω resistor to prevent too much current going through the LED and I put a 10kΩ resistor on the switch to pull the voltage down when the switch is turned off. The simple circuit I booted up my Pi with ...