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. ...

  Aug 22, 2016 (rev. Sep 16, 2025) ·  9 min

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.

  Jun 21, 2016 (rev. Sep 16, 2025) ·  7 min

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.

  Jun 8, 2016 (rev. Sep 16, 2025) ·  6 min

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 (rev. Sep 16, 2025) ·  10 min

Hello World for the Raspberry Pi - Making an LED Blink

I unboxed my Raspberry Pi a few weeks ago and started learning Python. Let’s code the “Hello World” of the Pi, and make an LED blink.

  Mar 26, 2016 (rev. Sep 16, 2025) ·  9 min