Harry Potter Location Clock Spies On Your Smart Phone

harry-potter-clock

The location clock found in the Harry Potter books makes for a really fun hack. Of course there’s no magic involved, just a set of hardware to monitor your phone’s GPS and a clock face to display it.

[Alastair Barber] finished building the clock at the end of last year as a Christmas gift. The display seen above uses an old mantelpiece clock to give it a finished look. He replace the clock face with a print out of the various locations known to the system and added a servo motor to drive the single hand. His hardware choices were based on what he already had on hand and what could be acquired cheaply. The an all-in-one package combines a Raspberry Pi board with a USB broadband modem to ensure that it has a persistent network connection (we’ve seen this done using WiFi in the past). The RPi checks a cellphone’s GPS data, compares it to a list of common places, then pushes commands to the Arduino which controls the clock hand’s servo motor. It’s a roundabout way of doing things but we imagine everything will get reused when the novelty of the gift wears off.

7 thoughts on “Harry Potter Location Clock Spies On Your Smart Phone

    1. Hi,
      Right now it works just manually, unfortunately I never really got round to the GPS bit. As I’m not in possession of an Apple Developer account and use an iPhone the GPS app bit wasn’t really in the pipeline, although I was thinking there might be some kind of JavaScript way of getting the location? I think I mention somewhere that I’d like to try and make a better way of updating it ’cause having to go to a web page on the phone every time I go somewhere is a pain, so that would definitely have a GPS & mobile data pairing somewhere, probably just in my bag or something – so not completely tracked ;) – Currently messing around the the Arduino USB shield to see if I can get that working somehow…

  1. If you are just using the Arduino to drive the servo, you don’t need it. There is a package for the Pi called ‘servoblaster’ which will allow you to drive a servo from one of the Pi’s GPIO pins.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.