Raspberry Pi Panel Meter Clock

I know this has been done before with MSP430, Arduino, and Raspberry Pi but I thought I would make one too. The one thing I wanted to do differently with mine is have a sweep second hand instead of a step second hand. It is still a work in progress. But here is what I have used to make this work:

Raspberry Pi Zero WH
3V Panel Meters
Adafruit 16-Channel 12-bit PWM/Servo Driver

The PWM range is 0-65500 and using some math I divided that value by 60 to get 1091.6667 repeating. The libraries from Adafruit only accept whole values so I convert that to int(1091.6667). That’s for each second with a time.sleep(1). Then it is just a simple matter of dividing it down by half until I get a smooth sweep of the seconds.

After 59 seconds have elapsed, the seconds, minutes, and hours hands are updated to the current time to keep everything in sync.

I am waiting for custom faces to be printed and a nice box to be made. Then I will post some pictures and share the code.

Annoy Me! (offline)

I snagged a Ethernet shield for $4.00 and wanted to use it right away. I found some tutorials online to control various devices and decided, just for fun, to make a project that will annoy the heck out of me. Head over to (offline) and see that you can control very bright LEDs.

Unfortunately, the webcam isn’t real time. It updates the picture every two seconds. Also the WS2811 seems to be a bit glitchy, so sometimes there will be incorrect LED colors displayed.

Have fun!

Code after the break.

Continue reading “Annoy Me! (offline)”

Binary clock using Arduino, DS3231 real time clock, and WS2811 Addressable LEDs

You may have remembered I started working on a binary clock project with the Arduino. There are two things I didn’t like about that project. First, the clock didn’t keep time. It ran about 37 seconds fast. Second, it required the use of almost all pins on the Arduino. I started working on a new binary clock project with the requirements that it kept accurate time, it didn’t use as many pins, and I could set the time. I sacrificed the addressable LEDs I had used for my Christmas Tree lights and began to work on the new binary clock.

Continue reading “Binary clock using Arduino, DS3231 real time clock, and WS2811 Addressable LEDs”

LED lighting effect using an Arduino and LEDs

Sorry for the poor video quality. Because of the flash rate and the way a CMOS senor works, it cannot record the true effect.

This lightning effect uses addressable LEDs. The code generates a random number of flashes, a random brightness level for each flash, a random delay between flashes, and a random delay between the overall effect. See the code after the break.

Arduino Strobe Light Effect with Proximity Sensor

In December, a friend approached me and asked if I could create a visual effect for him. The requirements are to flash a strobe light, activate only when someone is in front of the effect for a couple of seconds, and wait for the person to walk away before it can be activated again.

Here’s the effect in action: