It’s been a while since I did anything productive with my Raspberry Pi 2, but my recent purchase of a Yucca made me think about how I could use it for something intelligent, like Making a soil moisture sensor with the Raspberry Pi 2. This post is really aimed at saving you a lot of time hunting around for all the information you need. I had to browse a tonne of sites to find all the bits and pieces, but eventually I got it all to work as I expected.
It was my birthday last month. Your lack of card and cake was noted, dear reader, but let’s not dwell on it…
One of the presents I was most eager to get to grips with was my new Raspberry Pi 2! (It’s a single-board computer roughly the size of a credit card) Now, I studied both GCSE and A-Level Electronics, but haven’t done anything remotely related since I left school, so I figured I should start with the basics. After setting up Raspbian and fitting the device into its snug little case I set about figuring out how to turn on a single LED.
I won’t bore you with that little exercise, this post is about how I wrote a 4-bit binary counter with a “heartbeat” made of 5 LEDs and some hastily (and probably shoddily) written Python.