Before we do any programming we will need to collect the hardware components needed for this project and connect them together. For this project you will need the following components:
100 ohm resistor
3mm or 5mm LED
Breadboard
Jumper wire
BeagleBone Black
The following fritzing diagram shows how we would wire the components for this project:
We will start off by using a black jumper wire to connect pin 1 of the P9 expansion header, which is ground, to the ground rail on the breadboard. Then, use a red jumper wire to connect pin 3 of the P9 expansion header, which is 3.3V, to the power rail on the breadboard. When we wire electronic components, we use red wires to indicate power and black wires to indicate ground.
For this circuit we will want to connect the cathode end of the LED (the shorter leg of the LED) to the ground rail and the anode end of the LED to one end of the 100 ohm resistor. We then run a third jumper wire from pin 12 of the P9 expansion...