Homemade Clock uses Copper Coins for Capacitive Touch Control | #Arduino
Thanks to forums user philross for sending this in – it’s a great looking build, it’s his first C/C++ Arduino build, and the inset coins a real nice…touch!
This project was a lot of fun. It utilizes the big 1.2 Digital Display with backpack, a chornodot for real-time-clock duties, a passive buzzer for the alarm, and the adafruit 5 sensor capacitive touch sensor all plugged in to an arduino uno.
I wrote the code myself using Eric Ayer’s DS3231 library to support the chonodot’s alarm functions. This was my first C/C++ code…and I’m glad I don’t have to submit it for a grade is all I can say…but it runs, so that’s a win.
I made the case out of dribs and drabs of materials left over from other projects. The top is walnut that I used a burl veneer on. The sides are 1/4″ red oak with 1-inch oak dowels at each corner, the bottom is maple, just because I had a piece that was about the right size. The whole case disassembles into 3 pieces by removing 4 bolts from the bottom that are countersunk into that piece, go through drilled holes in the corner dowels, and screw into brass inserts in the walnut top.
The copper coins are soldered to input leads that plug into the capacitive sensor breakout board. When any of them are touched, it drags that input LOW, and that gets read by the arduino. For instance, the big coin is the alarm on/off button. So, you push it and the alarm LED lights. You touch it again and the alarm gets turned off. The leftmost button is “clock set” to set the time. The next button is “alarm set” to set the alarm time. The third small coin is touched to advance the hours or minutes forward, the last button is used to roll the time back when setting either the clock or alarm. A couple of other bells and whistles in there…but that’s the gist of it.
It was a really fun project…and IT WORKS. I unplugged my old alarm clock (which kept horrible time) and now I’m using the homebuilt one.
By the way…the coins are just copper replicas of real coins and were pretty cheap. The big coin is a 1 oz coin, the smaller “nickles” are 1/2 oz BU coins. I inset them into the walnut burl by using my largest forstner bit in a drill press and then setting the lid up on my milling machine and using a flycutter to tweak the holes out until they were exactly the right size and depth.
Featured Adafruit Products!
Adafruit 1.2″ 4-Digit 7-Segment Display w/I2C Backpack – Red: What’s better than a single LED? Lots of LEDs! A fun way to make a numeric display is to use a 4-digit 7-segment display. LED matrices like these are ‘multiplexed’ – so to control all the seven-segment LEDs you need 14 pins. That’s a lot of pins, and there are driver chips like the MAX7219 that can control a matrix for you but there’s a lot of wiring to set up and they take up a ton of space. Here at Adafruit we feel your pain! After all, wouldn’t it be awesome if you could control a matrix without tons of wiring? That’s where these adorable LED matrix backpacks come in. We have them for a variety of 8×8 and 7-segment displays. They work perfectly with the displays we stock in the Adafruit shop and make adding a bright display trivial. Read more.
We are angry, frustrated, and in pain because of the violence and murder of Black people by the police because of racism. We are in the fight AGAINST RACISM. George Floyd was murdered, his life stolen. The Adafruit teams have specific actions we’ve done, are doing, and will do together as a company and culture. We are asking the Adafruit community to get involved and share what you are doing. The Adafruit teams will not settle for a hash tag, a Tweet, or an icon change. We will work on real change, and that requires real action and real work together. That is what we will do each day, each month, each year – we will hold ourselves accountable and publish our collective efforts, partnerships, activism, donations, openly and publicly. Our blog and social media platforms will be utilized in actionable ways. Join us and the anti-racist efforts working to end police brutality, reform the criminal justice system, and dismantle the many other forms of systemic racism at work in this country, read more @ adafruit.com/blacklivesmatter
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.