What is charlieplexing? (a Raspberry Pi demo)

On past projects, when I needed multiple LEDs, I just connected each to its own GPIO pin. I knew the current only worked in one direction, but I didn’t think to take advantage of that fact. Charlieplexing is a method for arranging multiple LEDs so as to use the minimal number of pins possible.

February 17, 2017

Connecting an Analog Joystick to the Raspberry Pi

One of the best things about the Raspberry Pi is its GPIO pins. They’re just sitting there, waiting to be connected to all kinds of interesting peripherals so your Pi can interact with the world around it. We can send alerts, attach sensors, and even plug cards like the Sense HAT over top of the pins to do even more. A few months ago, I bought a set of 37 sensor modules. I knew they wouldn’t directly interface with the Pi, but that it was entirely possible to do it, so they were set aside for later. Well, it’s time to try one out, and I figure the mini-joystick might offer some interesting opportunities! ...

September 24, 2016

Creating a Flickering Candle Using an RGB LED on the Raspberry Pi

After getting PWM (pulse-width modulation) to work with an RGB LED last week, I was trying to think of what else I could do with an LED that demonstrated changes in color as well as intensity. I’m not sure why – maybe it was because we lost power in our neighborhood recently – but I thought a flickering candle could be an interesting little challenge… Materials In order to test this out, you’ll need a few things. ...

August 29, 2016

How to Use Pulse Width Modulation (PWM) on an RGB LED and the Raspberry Pi

If you buy a kit with random LEDs, wires, switches, etc, you’re likely to end up with one or two of those funky little LEDs that appears to be white, and has 4 wires instead of 2. I had set mine aside and made a mental note to figure it out later – well, that time has come! The code in this article is available on GitHub, if you’d like to use it or just follow along. ...

August 22, 2016

A Simon Game Clone for the Raspberry Pi

Let’s recreate the Simon game of the 1980s using a Raspberry Pi and Sonic Pi!

July 28, 2016

Creating Music with Sonic Pi on a Raspberry Pi

After watching Scott Fradkin live-code Sonic Pi for an hour at a conference, it inspired me to make a little music of my own.

June 21, 2016

Create a Raspberry Pi Virtual Machine (VM) in VirtualBox

I was flipping through The MagPi back-issues and came across an article about setting up a virtual Raspberry Pi environment. It got me thinking… I’ve been playing around a lot on the Pi itself, but it’d be nice to experiment with code even when I don’t have access to a physical Pi.

June 8, 2016

Flash an LED on Your Raspberry Pi When You Get New Email

Let’s learn how to flash an LED on the Raspberry Pi when someone sends us a new email.

May 28, 2016

Building a Morse Code Transmitter on a Raspberry Pi (version 2)

I created a morse code generator before based on entering a string at the console. Now I extended it to generate a message by clicking a button.

May 19, 2016

Using PullUp and PullDown Resistors on the Raspberry Pi

When you start out creating circuits with the Raspberry Pi and its GPIO pins, there’s an unexpected but important concept to understand, called “floating”. To adjust for it, you need to understand how to use pullup and pulldown resistors.

May 9, 2016