Sunday 20 April 2014

BeagleBone 4-bit counter

BeagleBone 4-bit counter

After I got my BeagleBone Black I decided to make a simple 4-bit binary LED counter just to get to know it better. I found video tutorials from Derek Molloy a very useful resource. But I need to work more on getting to understand pin configuration. In my first version I used pin "P9_12" for  MSB of counter. I'm almost certain that it used to work. Now while working on this blog post it didn't work. The LED was always on. Eventually I had to move MSB to "P8_13" and then it worked.
Below is Fritzing breadboard layout of my circuit. Fritzing produces some nice output for documentation of breadboard projects. But I need to use it more to get used to it.This relatively simple circuit took me quite some time to get right and I made a lot of mistakes on the way.


The code is written in Python using Adafruit_BBIO.GPIO library and is available from GitHub.


The final result can be seen in video below.