Instructables

Magical Location Clock

Featured


!!This is my first instructable. I will be refining this after the contest as necessary but for now, here it is!
I got the idea from a popular book and movie (I’m sure you can guess!). Combining Google Latitude with NOAA and Arduino and we can make some magic!

Materials:
1. Arduino
2. Adafruit motor shield
3. Cheap clock (one that goes tick/tock not a nice smoothe moving clock).
4. 2 Diodes

Tools:
1. Soldering Iron
2. Pliers
3. Scissors
4. Computer
Software:
1. Arduino IDE
2. .Net framework
3. Notepad or Excel
4. Google latitude account
5. Web browser

Steps:
Follow the photos and solder 2 leads onto the coil contact of the clock. Be sure to be very careful as you pull the clock apart, I suggest taking lots of pictures in case you forget how it goes together. I used the worst $10 soldering iron on the planet to solder wires on so whatever you have should work. To pass the wires through the original casing I used the iron to burn a hole in the back.

Wire the clock into your motor shield + arduino. The sketch works with motor port 1 (M1). I added some diodes between each motor contact and ground as suggested by http://www.cibomahto.com/2008/03/controlling-a-clock-with-an-arduino/ .

Use the arduino software to upload Clock.pde to your arduino. To test it open up the serial monitor. It will identify itself every second. To move the clock 2 seconds type a single ‘t’.

Next you need to decide on your statuses. If you like the ones I chose just download the image and print it. My local print store printed this in full color for less than 50 cents. If you want to make your own grab my power point and download the font at http://www.mugglenet.com/downloads/fonts/ .

Download the software zip file and extract it. You should see 2 .csv files in there. We will need to edit those.

If you want Mortal Peril you will need to login http://mobile.weather.gov/ . Enter your city. Click “Hazardous Weather.” Copy that URL and edit MortalPeril.csv .

To setup latitude login to google latitude and navigate to https://www.google.com/latitude/b/0/apps . Enable your public badge.
NOTE!!!! Do not give this out to anyone, it contains your exact location. What we need here is your userid. That will be in the badge html code.
<!-- Google Public Location Badge -->
<iframe src="http://www.google.com/latitude/apps/badge/api?user=[GET YOURIDHERE]&type=iframe&maptype=roadmap" width="180" height="300" frameborder="0"></iframe>
<!-- To disable location sharing, you *must* visit https://www.google.com/latitude/apps/badge and disable the Google Public Location badge. Removing this code snippet is not enough! -->

Edit latitude.csv and find replace [USERID] with your userid. Fill in the keywords as appropriate. How it works is that the program pulls your location from google latitude then pushes that data back to google to determine what is nearby. If your keyword is found then it detects you are there. You can enter multiple keywords for different statuses (see shopping).

Startup the software and give it a whirl. It should find your arduino automatically and start moving things accordingly.

The source is included if you need to debug it.

birdt2 years ago
Great!
scoochmaroo2 years ago
Goodness! What a clever idea. I love the design.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!