Posts with «mains» label

use mains AC as a switch for arduino?

hey gang, does anyone know if it's possible to use mains AC as a switch for the 'duino?

A little background:

Calculon is working on a project that he hopes will take advantage of his doorbell's AC power. He wants the old-school analog doorbell switch to activate a function on his arduino instead of firing off a solenoid in the door chime. Is this possible with some sort of voltage divider? He doesn't need to measure the current, voltage, phase, or anything liek that, he just needs to sense on/off like a pushbutton. He assumes the initial doorbell voltage will be 120V.

read more

Let's Make Robots 14 Feb 03:40
ac  arduino  doorbell  electronics  mains  

Hacking grandfather clock accuracy while it’s still ticking

[Keith] got his hands on a few grandfather clocks. Apparently the price tag is greatly reduced if you are able to get them second-hand. The mechanical timepieces require weekly winding, which is a good thing since you’ll also need to correct the time at least that often. But this drift got [Keith] thinking about improving the accuracy of these clocks. He figured out a high-tech way to adjust the timepiece while it’s ticking.

The first thing he needed was a source of super-accurate time. He could have used a temperature compensated RTC chip, but instead went the more traditional route of using the frequency of mains power as a reference. The next part of the puzzle is to figure out how to both monitor the grandfather clock and make small tweaks to its pendulum.

The answer is magnets. By adding a magnet to the bottom of the pendulum, and adjusting the proximity of a metal plate positioned below it, he can speed up or slow down the ticking. The addition of a hall effect sensor lets the Arduino measure the rate of each swing and calculate the accuracy compared to the high voltage frequency reference.


Filed under: clock hacks