The rarest gummi of them all, the gummi RGB seven-segment clock. Carved by gummi artisans who work exclusively in the medium of gummi.
It's a clock using very cool seven-segment displays available from Adafruit. Each segment of the display is an RGB LED. Yes, it will look cool.
Holy balls, does that ever look awesome.
This is a clock made with RGB seven-segment LED modules available from Adafruit. The form factor will be an oversized Raspberry Pi Hat; this clock needs to connect to the internet (for some reason) and I have some other ways to use these numbers.
Maker Faire, the greatest show and sale on Earth is finally over. That means it's time for Bring A Hack, which laen from OSH Park has conveniently organized at the BJ's Pizza Palace in San Mateo. It's time to shine, which is good, because I really need to PWM these displays down:
I wrote the code for this at the bringahack, which makes me the most badass person possible. Also, free beer until we drank it all.
I originally designed this as a Raspi Hat for some reason I don't remember. I believe an Internet-connected clock was part of the decision, and of course the blog cred for putting a clock on a Raspi.
I am now reconsidering this choice.
I'm not getting PWM timing that looks good with only software PWM available on the Pi. A microcontroller would be a much better choice, so I'm getting one of these, sticking a Trinket on it, and plugging in the display/clock board.
It's really just a matter of putting the R, G, and B OE signals on different timers... A duino can do it...
I can't say I'm completely happy with it - I'm pretty sure I screwed up something on the colon LEDs, and a Raspi really isn't the right tool for this (but a Pi2 would...), but it works.
Now it's just a matter of turning it into a clock. I'm still trying to wrap my head around how the programming for that is going to go. After that, it's done. Until I repurpose a Pi Hat prototyping thing as a microcontroller breakout board or something...
Before I dig into this, I'm just going to say, no, I'm not going to build this. This is simply an exercise in procrastination. It does look pretty cool, though.
Okay, with the Pi version out to fab, I figured the clock doesn't need that much RAM to drive the display, the Pi version already has a RTC, and we're basically working with shift registers here. For the fuck of it, let's design a version with a microcontroller.
And so a dozen hours were lost.
This version (it's in the github now) features:
An ATMega328p microcontroller. Why not?
A DS3231M Real Time Clock - no crystal required!
Four LED2472G LED drivers. Why change what might work?
Improved power supply. Yes, it's just a 7805, but that'll be more than enough to drive all the displays at maximum brightness
Hour and Minute buttons, because I hate clocks around daylight savings time. No, a single button doesn't work, and every time DST comes around, I need to disconnect the battery in my car, and reconnect it exactly at noon.
An ESP-8266. Why? Because there was space on the board for one, and I don't give a shit.
There we go, a microcontroller-based RGB Seven-Segment clock that has all the functionality of the Pi version and is completely overengineered for a clock. Does your clock have WiFi? No? Yeah, mine does.
I'm not going to build this. It's insane, impractical, and I'm already spending $200 on the prototype to see if the LED2472 drivers will work. I just made this one because I'm bored.
If anyone wants to make it, go ahead. It might work. Files are in the Git. I'd like to see it made, and you could probably sell a few of them on Tindie with some SEO on Pinterest or something...
Since I'm waiting two weeks or something until I get some boards and parts, It's a good enough time to figure out how this thing is going to be programmed. The first step to that is documenting how I laid this thing out. Here's the pin map:
Now it's a matter of how to connect this to the driver. Here's the datasheet for the driver. It gives me eight RGB drivers. Here's a table, because the editing tools on here are awesome:
How the displays are connected
Driver output number
Segment of the display
And the pinout:
...and that's how you route these things with any semblance of sanity:
The project looks nice, maybe next time ty using my solution for the wireing and controling problem
See rgbdigit.com hope you like it