Quantcast
Channel: clock – Hackaday
Viewing all 491 articles
Browse latest View live

Pi Time – A Fabric RGB Arduino Clock

$
0
0

Pi Time is a psychedelic clock made out of fabric and Neopixels, controlled by an Arduino UNO. The clock started out as a quilted Pi symbol. [Chris and Jessica] wanted to make something more around the Pi and added some RGB lights. At the same time, they wanted to make something useful, that’s when they decided to make a clock using Neopixels.

Neopixels, or WS2812Bs, are addressable RGB LEDs , which can be controlled individually by a microcontroller, in this case, an Arduino. The fabric was quilted with a spiral of numbers (3.1415926535…) and the actual reading of the time is not how you are used to. To read the clock you have to recall the visible color spectrum or the rainbow colors, from red to violet. The rainbow starts at the beginning of the symbol Pi in the center, so the hours will be either red, yellow, or orange, depending on how many digits are needed to tell the time. For example, when it is 5:09, the 5 is red, and the 9 is yellow. When it’s 5:10, the 5 is orange, the first minute (1) is teal, and the second (0) is violet. The pi symbol flashes every other second.

There are simpler and more complicated ways to perform the simple task of figuring out what time it is…

We are not sure if the digits are lighted up according to their first appearance in the Pi sequence or are just random as the video only shows the trippy LEDs, but the effect is pretty nice:

 


Filed under: Arduino Hacks, led hacks

An Alien-Themed… Cuckoo Clock?

$
0
0

If you are a follower of the sci-fi horror film genre then it is likely that you will be familiar with the Alien series of movies. Images of Sigourney Weaver bearing a significant amount of firepower, or of John Hurt’s chest being rent asunder by an emerging creature will be brought to mind, it’s one of those franchises which seems to have entered the public consciousness.

With the release of another movie in the series fast approaching, [Keith Elliott] resolved to mark the occasion with his own Alien themed tribute. What, you might ponder, could he choose? Surely there must be plenty of iconic moments in the films that could provide fertile ground for a tribute project!

So  presumably after a significant period of reflection, he’s built an Alien themed cuckoo clock. Something of an off-the-wall choice, you might say, but he persevered with it. The main body of the clock is the torso and head of an unfortunate human crew member, the face of the clock is formed by an alien facehugger on his face, and the cuckoo is not a bird in the manner of the Alpine originals, but a chest-bursting alien that issues forth from the torso.

There is a video, which we’ve posted below. Perhaps the chestburster action needs a little more spontaneity and to be a little less rhythmic, but we’ll leave it to you to decide whether it is inspired or merely kitsch.

Alien props have been a little thin on the ground hereabouts, but we do have on to show you from 2011, a recreation of the motion trackers from the original movie.


Filed under: clock hacks

Digital Clock Goes with the Grain

$
0
0

This good-looking clock appears to be made out of a block of wood with LED digits floating underneath. In reality, it is a block of PLA plastic covered with wood veneer (well, [androkavo] calls it veneer, but we think it might just be a contact paper or vinyl with a wood pattern). It makes for a striking effect, and we can think of other projects that might make use of the technique, especially since the wood surface looks much more finished than the usual 3D-printed part.

You can see a video of the clock in operation below. The clock circuit itself is nothing exceptional. Just a MAX7218 LED driver and a display along with an STM32 ARM processor. The clock has a DHT22 temperature and humidity sensor, as well as a speaker for an alarm.

Setting the clock is a breeze since it offers a WiFi interface, thanks to an ESP8266, of course. There’s also a vibration sensor to cut off the alarm. You could change the software to suit if you wanted to handle things differently. For example, we might make the vibration sensor snooze, and require the user to access the web page to turn the alarm off just to make sure we were really awake.

Contact paper is available in lots of finishes, so this technique could turn a 3D-printed box into a box with a solid color, a marble pattern, or even simulated carbon fiber.

We couldn’t help but think about putting some of the unusual LED clocks we’ve seen in this kind of enclosure. Maybe even one with words.


Filed under: 3d Printer hacks, ARM, clock hacks

Disco Flashlight Binary Analog Clock?

$
0
0

As multitools have lots of different functions in one case, so [Shadwan’s] clock design incorporates a multitude of features. He started the design as a binary clock using a Fibonacci spiral for the shape. However, the finished clock has four modes. The original binary clock, an analog clock, a flashlight (all lights on), and a disco mode that strobes multiple lights.

[Shadwan] used Rhino to model the case and then produced it using a laser cutter. The brains are — small wonder — an Arduino. A 3D-printed bracket holds everything together. You can see the result in the video below.

The clock was a school project and used a Neopixel ring. The students had a 16 position ring, which is not enough to do a 24-hour clock so they settled on a 12-hour design. The LED color, however, changes between AM and PM.

The paper included with the design said that research didn’t turn up any other binary clocks using Neopixels. We found that hard to believe, but it might be true. We certainly didn’t find any in our archives, although there are plenty of non-binary clocks out there.


Filed under: Arduino Hacks, clock hacks

Antique Pinball Machine Lives as Clock

$
0
0

A big problem with restoring old arcade or pinball machines is finding original parts to get them running again. That’s part of the fun, though; when something finally works after weeks or months of effort. On the other hand, sometimes the only hope for old parts that will never be in a pinball machine again is for [Randy] to come across them. One of those parts he had lying around was a backglass for an old machine, and decided to turn it into a unique word clock.

The original pinball machine was built in 1956, and despite its age the backglass had almost no signs of wear or damage. There are 43 lights on this particular machine which is more than enough for 12 hours, minutes (by the 10s), seconds, and a few extras. An ATtiny85 serves as the controller and drives a fleet of Neopixels hidden in the display. There are also three buttons which control the brightness and allow the time to be set.

Be sure to check out the video below of this one-of-a-kind clock in action. A lot more went into this build as well including framing the glass, giving it a coat of paint and polish, and programming the clock into the microcontroller. Old backglasses from pinball machines seem to be relatively popular to repurpose into more conventional clocks, too, even clocks of an atomic nature.


Filed under: clock hacks

TORLO is a Beautiful 3D Printed Clock

$
0
0

What if you could build a clock that displays time in the usual analog format, but with the hands moving around the outside of the dial instead of rotating from a central point? This is the idea behind TORLO, a beautiful clock built from 3D printed parts.

The clock is the work of [ekaggrat singh kalsi], who wanted to build a clock using a self-oscillating motor. Initial experiments had some success, however [ekaggrat] encountered problems with the motors holding consistent time, and contacts wearing out. This is common in many electromechanical systems — mechanics who had to work with points ignition will not remember them fondly. After pushing on through several revisions, it was decided instead to switch to an ATtiny-controlled motor which was pulsed once every two seconds. This had the benefit of keeping accurate time as well as making it much easier to set the clock.

The stunning part of the clock, however, is the mechanical design. The smooth, sweeping form is very pleasing to the eye, and it’s combined with a beautiful two-tone colour scheme that makes the exposed gears and indicators pop against the white frame. The minute and hour hands form the most striking part of the design — the indicators are attached to a large ring gear that is turned by the gear train built into the frame. The video below the break shows the development process, but we’d love to see a close-up of how the gear train meshes with the large ring gears which are such an elegant part of the clock.

A great benefit of 3D printing is that it makes designing custom gear trains very accessible. We’ve seen other unconventional 3D printed clock builds before. 


Filed under: 3d Printer hacks, clock hacks

New Take on the Binary Clock

$
0
0

By now it might seem like there’s no new way to build a binary clock. It’s one of the first projects many build to try out their first soldering irons, so it’s a well-traveled path. Every now and then, however, there’s a binary clock that takes a different approach, much like [Stephen]’s latest project which he calls the byte clock.

The clock works by dividing the 24-hour day into half and using an LED to represent this division, which coincidentally works out to representing AM or PM. The day is divided in half over and over again, with each division getting its own LED. In order to use this method to get one-second resolution it would need 16 LEDs, but since that much resolution isn’t too important for a general-use clock, [Stephen] reduced this to eight.

Additionally, since we’re in the Internet age, the clock has built-in WiFi courtesy of a small version of Python called WiPy which runs on its own microcontroller. A real-time clock rounds out the build and makes sure the clock is as accurate as possible. Of course an RTC might not have the accuracy as some other clocks, but for this application it certainly gets the job done.


Filed under: clock hacks

Copper, Brass, Mahogany, and Glass Combine in Clock with a Vintage Look

$
0
0

No two words can turn off the average Hackaday reader faster than “Nixie” and “Steampunk.” But you’re not the average Hackaday reader, so if you’re interested in a lovely, handcrafted timepiece that melds modern electronics with vintage materials, read on. But just don’t think of it as a Nixie Steampunk clock.

No matter what you think of the Steampunk style, you have to admire the work that went into [Aeon Junophor]’s clock, as well as his sticktoitiveness –he started the timepiece in 2014 and only just finished it. We’d wager that a lot of that time was spent finding just the right materials. The body and legs are copper tube and some brass lamp parts, the dongles for the IN-12A Nixies are copper toilet tank parts and brass Edison bulb bases, and the base is a fine piece of mahogany. The whole thing has a nice George Pal’s Time Machine vibe to it, and the Instructables write-up is done in a pseudo-Victorian style that we find charming.

If you haven’t had enough of the Nixie Steampunk convergence yet, check out this Nixie solar power monitor, or this brass and Nixie clock. And don’t be bashful about sending us tips to builds in this genre — we don’t judge.

[Horatius], thanks for the tip.


Filed under: classic hacks, clock hacks

Steampunk-Inspired Art Clock!

$
0
0

Getting paid to do what you enjoy is a special treat. A machinist and fabricator by trade — hobbyist hacker by design — [spdltd] was commissioned to build a mechanical art installation with a steampunk twist. Having complete creative control, he convinced his client to let him make something useful: a giant electro-mechanical clock.

Pieced together from copper, brass, steel, aluminium, and stainless steel, this outlandish design uses an Arduino Yun — a combination Linux and Arduino microcontroller board — to control the stepper motor and query the internet for the local time. Upon boot, the clock auto-calibrates by rotating the clock face until a sensor detects an extra peg and uses that to zero on twelve o’clock; the Yun then grabs the local time over the WiFi and sends the stepper motor a-spinning ’till the correct time is displayed.

At first glance, you may find it hard to get an accurate read of what time it is, but an accent piece’s pegs denote the quarter hour once it lines up with the notch above each hour. At least this one doesn’t require you to match colours or do much math to check the time.

In the future [spdltd] would prefer to spend more time working on the software portion of the build to ensure its integrity, as well as perhaps incorporate something special to take place as the clock strikes the hour.


Filed under: Android Hacks, clock hacks

Get Inside a TCXO Clock Chip

$
0
0

[Pete] wondered how real-time clock modules could be selling on eBay for $1.50 when the main component, the Maxim DS3231 RTC/TCXO chip, cost him more like $4 apiece. Could the cheap modules contain counterfeit chips?

Well, sure they could. But in this case, they didn’t, and [Pete] has the die shots to prove it. He started off by clipping the SOIC leads rather than desoldering — he’s not going to be reusing this chip after he’s cut it in half. Next was a stage of embrittling the case by heating it up with a lighter and dunking it in water. Then he went at it with sandpaper.

It’s cool. You can see the watch crystal inside, and all of the circuitry. The DS3231 includes a TCXO — temperature-corrected crystal oscillator — and it seems to have a bank of capacitors that it connects and disconnects depending on the chip’s temperature to keep the oscillator running at the right speed. [Pete] used one in an offline situation, and it only lost sixteen seconds over a year, so we’d say that they work fine.

If you’d like to know more about how crystals are used to keep time, check out [Jenny]’s excellent article. And if sixteen second per year is way too much for you, tune up your rubidium standard and welcome to the world of the time nuts.


Filed under: hardware

A Detailed Guide for 3D Printing Enclosures

$
0
0

We’ve all have projects that are done, but not complete. They work, but they’re just a few PCBs wired together precariously on our desks. But fear not! A true maker’s blog has gifted us with a detailed step-by-step guide on how to make a project enclosure.

Having purchased an MP Select Mini 3D Printer, there was little to do but find something practical to print. What better than an enclosure for a recently finished Time/Date/Temperature display Arduino based device?

The enclosure in this guide, while quite nice, isn’t the main attraction here. The real feature is the incredibly detailed instructions for how to design, model and print an enclosure for any project. For the veterans out there, it seems simple. Sketch something on the back of a napkin and take a nap on your keyboard with OpenSCAD open. When you wake, BAM: perfect 3D model. However, for newcomers, the process can seem daunting. With incredibly specific instructions (an example is “Open up a new workspace by clicking CREATE NEW DESIGN,” notice the accurate capitalization!), it should ease the barrier of the first enclosure, turning the inexperienced into the kind-of-experienced.

If you’ve been printing enclosures since the dawn of time or plastic simply isn’t your style, boy, do we have you covered. Why not check out FR4 (aka PCB) enclosures? Or what about laser cut enclosures from eagle files? Maybe two-piece boxes are more your thing.


Filed under: 3d Printer hacks

Word Clock Five Minutes At A Time

$
0
0

As this clock’s creator admits, it took far more than five minutes to put together, but it does display the time in five minute increments.

After acquiring five 4-character, 16 segment display modules that were too good to pass up, they were promptly deposited in the parts pile until [JF] was cajoled into building something by a friend. Given that each display’s pins were in parallel, there was a lot of soldering to connect these displays to the clock’s ATMega328P brain. On the back of the clock’s perfboard skeleton, a DS1307 real-time clock and coin cell keep things ticking along smoothly. The case is laser cut out of acrylic with an added red filter to up the contrast of the display, presenting a crisp, crimson glow.

Troubleshooting — as well as procrastination — proved to be the major stumbling block here. Each of the displays required extensive troubleshooting because — like Christmas lights of yore — one bad connection would cause all the other displays to fail. Furthermore, there isn’t any easy way to change the time, so the clock needs to be reprogrammed once in a while

We love word clocks because there are so many ways to configure them and for the oddities. That isn’t to say radial clocks are any less creative.

[Thanks for the tip, Dimitry!]


Filed under: clock hacks

FPGA Clocks for Software Developers (or Anyone)

$
0
0

It used to be that designing hardware required schematics and designing software required code. Sure, a lot of people could jump back and forth, but it was clearly a different discipline. Today, a lot of substantial digital design occurs using a hardware description language (HDL) like Verilog or VHDL. These look like software, but as we’ve pointed out many times, it isn’t really the same. [Zipcpu] has a really clear blog post that explains how it is different and why.

[Zipcpu] notes something we’ve seen all too often on the web. Some neophytes will write sequential code using Verilog or VHDL as if it was a conventional programming language. Code like that may even simulate. However, the resulting hardware will — at best — be very inefficient and at worst will not even work.

We did mildly disagree with one statement in the post: “…no digital logic design can work without a clock.” However, [Zipcpu] goes on to elaborate and we agree with the elaboration. However, it is important to note that asynchronous and combinatorial logic don’t use a clock in the conventional sense of the word. Combinatorial logic — for example, a bunch of AND and OR gates — can only handle simple tasks and full-blown asynchronous design is tough and not likely to be something a new FPGA developer will encounter.

The reality is that nearly all significant digital design uses clocks is because it makes the design manageable. Essentially, the clock tells all parts of the circuit to start processing and sets a deadline for the various combinatorial parts to complete. Without the clock, you’d have to deal with the issue when, for example, an adder presents a result before the carry from another stage arrives to change that answer. With a clock, as long as the right answer is ready by the clock edge, you don’t care about exactly how long it takes.

This is especially important because Verilog and VHDL don’t execute line-by-line as a software developer would expect. Instead, HDL constructs become circuits and all the circuits operate at one time. This parallelism can be difficult to manage, but it is what makes FPGAs ideal for high-speed computations and fast response times.

The section of the post about how much logic to put between clocks is what you usually call “making timing.” The FPGA tools have a scary amount of data about how much time it takes for a signal to travel from one part of the FPGA to another. If the tool detects that the transit time between two clocked elements exceeds the clock period, it will flag that as an error. You can increase the clock speed or shorten the path either physically or logically.

Overall, this is an excellent introduction to a tough subject and has a lot of real-world advice in it. If you want to read our take on it, we did a multipart Verilog tutorial using the inexpensive Lattice iCEstick board. There’s also a practical example using the same board. The tutorial even had some videos, the first of which appears below.

 


Filed under: news

Solar Tide Clock Keeps Track of the Moon

$
0
0

Old fashioned tide clocks were an attempt to predict high tide by timing the rising and setting of the moon. When you looked at one you could see how many hours until the next high tide. [rabbitcreek] wanted to make his own version of the tide clock that does a better job of predicting the actual high tide than those old clocks, which were essentially glorified timers tuned to the moon’s phases.

[rabbitcreek] based his the tide prediction software off of [Luke Miller’s] Tide Clock, which applies location-specific adjustments to the standard lunar clock, taking into consideration such factors as the geographic features (basin depth, etc.) that modify the default timing. [Miller]’s Arduino code includes a library of common locations organized by NOAA station number.

[rabbitcreek]’s project consists of a Adafruit Feather board hooked up to a DS3231 RTC breakout and a HS-225BB servo, which turns the clock’s hand. It’s an 180-degree servo, attached to a hacked-down Actobotics gearbox gearing the servo down 2:1 to permit 360 degrees of movement.

He also wanted his creation to be left to operate unattended for years, theoretically — so solar power was a natch. The face of the clock consists of individual wavers of solar panel glued into a huge clock-like array. The solar cells feed into an Adafruit PowerBoost 500, a TPL5111 low power timer breakout, and a LiPo battery for when it’s dark out.

If you’re looking for more solar clocks check out this one that uses capacitors as hour markers.


Filed under: Arduino Hacks, clock hacks

Quick and Easy NTP Clock

$
0
0

[Danman] got an ESP32 with built-in OLED display, and in the process of getting a clock up and running and trying to get a couple of NodeMCU binaries installed on it, thought he’d try rolling his own.

[Danman] used PlatformIO to write the code to his ESP. PlatformIO allowed [Danman] to browse for a NTP library and load it into his project. After finding the NTP library, [Danman] wrote a bit of code and was able to upload it to the ESP. When that was uploaded [Danman] noticed that nothing was being displayed on the OLED, but that was just a simple matter of tracking down the right address to use when setting up the library for his OLED. Lastly, [Danman] created a large font to display the time with and his mini-clock was done!

It’s always nice to see someone be able to go from buying a board to having a demo put together, and it’s getting easier and easier. Check out this OLED watch, and this pocket watch doesn’t use OLEDs, but it still looks pretty cool.


Filed under: clock hacks

Hackaday Prize Entry: Global Positioning Clock

$
0
0

How do you get the attention of thousands of Hackaday readers? Build a clock! There are just so many choices to agonize over. Do you go with a crystal as a clock source, a fancy oven controlled crystal oscillator, or just mains voltage? Should you even think about putting a GPS module in a clock? All these are very interesting questions that encourage discussion or learning, and that’s what Hackaday is all about. Clocks are cool, and the engineering behind them is even cooler.

For one of [Nick]’s Hackaday Prize entries, he’s building a minimalist GPS clock. First up, the centerpiece of every clock, the display. There are eight seven-segment displays, two each for the hours, minutes, and seconds, and a smaller digit for tenths of a second. These displays are controlled by an ATXmega32E5, an upgrade on an earlier version of this project that only used an ATtiny and a MAX6951 LED driver.

The GPS wizardry is where this project gets really cool. [Nick] is using a SkyTraq Venus838LPx-T (that’s also available on a breakout board on Tindie). This GPS chip has a handy edge mount SMA connector to receive the signals from a GPS satellite, and has a bidirectional UART to dump the NMEA time codes and a PPS output. By combining the timecode, PPS output, and playing around with the timers on the microcontroller, [Nick] has a fantastically accurate clock that also looks great.


Filed under: clock hacks, The Hackaday Prize

Bluetooth Bedroom Clock!

$
0
0

When [decino]’s old bedroom clock finally bit the dust, he built himself a new one from scratch for fun and functionality.

Initially, he wanted to solder Adafruit NeoPixel lights onto four prototype boards, using a mini-USB for power and a DS1307 to keep the time. However, after soldering the board for the first digit and realizing that carrying on with the other three would be a huge pain, he switched to etching the boards instead — a far more efficient solution. In keeping with this time-saving mindset, he added a Bluetooth module that would allow him to update the clock from his phone whenever the DS1307 started dropping minutes or whenever daylight savings time is in effect.

In order to capture the light into the familiar seven-segment display, [decino] booted up his 3D printer and in short order had four shrouds for his clock that — when covered with a simple piece of paper as a diffuser — worked, well, almost perfectly. Only after enclosing the clock in its laser-cut wood case did he realize that the white filament lets some light bleed through. Luckily, a quick disassembly and some black spray paint fixed that!

As a finishing touch, and working within the strict RAM requirements of the ATtiny85, [decino] managed to eke out all the functionality he wanted. When accessed from his phone, he can change the clock’s brightness and colour to suit the day, time, whim, and up to 31 special event days. How’s that for a good-morning reminder?

If you’re too lazy to roll over and check the time from your bed, project the time onto the ceiling! Or, if waking up is your problem, you can use a Raspberry Pi and some speakers to keep yourself informed.


Filed under: 3d Printer hacks, ATtiny Hacks, clock hacks

Celebrate Display Diversity for a Circuit Circus Clock

$
0
0

There’s a lot to be said for nice, tidy projects where everything lines up and looks pretty. Seeing straight lines and pleasing proportions speaks to our obsessive-compulsive tendencies, and tends to soothe the mind and calm the spirit. But disorder is not without its charm, and mixing it up a little from time to time, such as with this mixed-media digital clock, can be a good idea.

Now, we know what you’re thinking — yet another Nixie clock. True, but that’s only half the story — or more accurately, one-sixth. There’s but a single Nixie in [Fuselage]’s circus-punk themed clock, used for the least significant digit in the hours part of the display. The other digits are displayed with four seven-segment devices — a Numitron, a vacuum fluorescent display, and an LED dot display — plus a real oddball, an old electromechanical display with individual slides for each character and a rear-screen projector. The RTC part of the project is standard Arduino fare, but as you can imagine the power supply needed for such a diversity of displays is pretty complex and has to provide everything from +5 to -270 volts. Each display needs its own driver, too, making this more of a zoo than a circus. The mixed up look just works with the circus theme, too. We’d really like more information on the projector display, though.

Looking for a real statement for your next clock build? Check out the rare as hens’ teeth NIMO tube.

Edgytokei’s Incredible Mechanism Shows Time Without a Face

$
0
0

Taking inspiration from Japanese nunchucks, [ekaggrat singh kalsi] came up with a brilliant clock that tells time using only hour and minute hands, and of course a base for them to sit on. The hands at certain parts of the hour seem to float in the air, or as he puts it, to sit on their edges, hence the name, the Edgytokei, translating as “edge clock”.

Edgytokei 9:02 Edgytokei 9:20 Edgytokei 9:33 Edgytokei 9:54

The time is a little difficult to read at first unless you’ve drawn in a clock face with numbers as we’ve done here. 9:02 and 9:54 are simple enough, but 9:20 and 9:33 can be difficult to translate into a time at first glance. Since both hands have to be the same length for the mechanism to work, how do you tell the two hands apart? [ekaggrat] included a ring of LEDs in the hub at the base and another at the end of one of the hands. Whichever ring of LEDs is turned on, indicates the tip of the minute hand. But the best way to get an idea of how it works is to watch it action in the video below.

We have to admire the simplicity and cleanliness of his implementation. The elbow and the hub at the base each hide a stepper motor with attached gear. Gear tracks lining the interior of the hands’ interact with the motor gears to move the hands. And to keep things clean, power is transferred using copper tape lining the exteriors.

On the Hackaday.io page [ekaggrat] talks about how difficult it was to come up with the algorithms and especially the code for homing the hands to the 12:00 position, given that homing can be initiated while the hands can be in any orientation. The hand positions are encoded in G-code, and a borrowed G-code parser running on an Arduino Nano in the base controls it all.

[ekaggrat] seems to be a master at making creative clocks like this. Check out this doodle clock that uses a magnetic writing board containing iron filings, and this TORLO clock where the arms run along the rim under control of artistically exposed timing gears.

Color Changing Clock gets a Pi Zero Heart

$
0
0

Hackaday reader [Don] dropped by the tip line recently to let us know about the latest version of his color-changing LCD clock project. This is his second version of the hardware which makes some pretty big improvements over the original, including moving from the Pi B to the Pi Zero and an internal simplification of the wiring. He mentions the next revision of the project will focus on Google Home integration, which should be interesting to see.

As a father of two pre-school age children, he was looking for a way to help his kids understand the concept of time and scheduled activities. Colors and shapes come fairly easy to children of this age, but time and how it relates to the day is a bit more difficult for them especially as their comprehension of numbers is still developing. [Don] reasoned that even if they couldn’t read the numbers on the clock yet, if he had the display change colors to indicate different periods of the day (sleep, play, cleanup, etc), it would not only keep them on schedule, but reinforce the meaning of the numbers on the screen.

ShiftBrite installed in the projector.

The project was made infinitely easier by a lucky find at a local retailer. For $10 he got a kid-friendly looking clock that utilized a simple projector to backlight the LCD display. This meant [Don] would just need to swap out the stock lighting module for a controllable RGB LED, and the hardware modifications would essentially be complete.

Even the Pi Zero fits perfectly inside the case of the clock, the only modification necessary was cutting a little hole in the back for the Pi’s micro USB port. His earlier version used an external Pi B connected to the clock via CAT5, so getting it all integrated into the one device is a huge improvement, especially when little kids are involved. Moving the Pi and its 5 V pins into the clock itself also allowed [Don] to drop the voltage regulator required previously.

With the basic hardware for a color changing LCD clock together, the rest of the project was just a matter of software. After some research, [Don] came across RPi-ShiftBrite by [Hive13] and made his own fork which added some features necessary for his project, namely the ability to quickly set the ShiftBrite to a specific color on the command line. To schedule the color changes, he used the very slick minicron: a web-based tool to create and monitor Linux cron jobs.

The Pi itself does not actually interface with the clock, and with no onboard RTC it’s necessary to keep it updated with NTP or else the times will become desynchronized. It can be necessary to sync the Pi’s clock to the Internet as often as every hour to make sure the colors shift at the appropriate times. The addition of a RTC module like the DS1307 could alleviate this issue and might be something to consider for a future revision.

All told, a fantastic project and something we’ll be sure to keep our eyes on as it progresses. We’ve seen our share of unique Raspberry Pi powered clocks, and even a few color changing ones, but this approach is easily the most straight-forward we’ve seen.

Viewing all 491 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>