Led blinking In Beaglebone Blank
Let’s start with the explanation of various peripheral interfaces with Beaglebone black. I will begin with a simple external LED blinking with BBB for better understanding of the configuration and usage of GPIO pin. I have chosen the python scripting language for programming but you can write it in any another language also. I have used adafruit python BBB library to make application.
- Beaglebone Black
- 330 Ω Resistor
- Female to Female connectors
Setup of Software environment
Install the latest python version in BBB as explained in tutorial How to make first python program with Beaglebone Black. Install the adafruit python-GPIO library named adafruit_BBIO.
It is a simple learning tutorial of Beaglebone black. Here I connected two LEDs with GPIO pin of Beaglebone black. When script is running, both the LEDs are switched ON and OFF for one second. After executing it for five times, the pin status and configuration are clear.
Let’s first prepare the circuit connection. Take a breadboard and provide VCC and ground from BBB to breadboard line. Connect Supply 3.3 V from pin number 3 of header P9 and ground from pin number 2 of header P8. Connect the negative and positive terminals of both LEDs with the ground and 330 OHM resistor respectively. Connect another end of both resistors with pin number 8 and 9 of header P8. Provide the supply to Beaglebone black by connecting it with PC through USB cable. Now your circuit is prepared.