We will now put together a small demo using the Pi and some components. In this simple demo we will use Scratch to program the Pi to blink an LED.
First, let's wire things up.
You will need handy:
- one led (any color)
- one resistor that is 1K or less (click here for more on how to determine resistor values)
- 2 female to male jumper wires
- Connect one female to male jumper wire from GPIO pin 2 on the pi to any spot on a bread board
- Next, connect the resistor (1K or less will do) from the GPIO 2 jumper wire to another spot on the breadboard
- Now take the LED and determine which leg is longer, and connect that leg to the other end of the resistor with the opposite end going to another spot on the bread board.
- Lastly, connect male to female jumper wire from the unconnected end of the led to a ground pin on the Pi.
Next we'll program the Pi in scratch to blink the LED.
What else can you think of to use with Scratch and Raspberry Pi?