The magic wand clock: a Persistence of Vision toy !

The magic wand clock: a Persistence of Vision toy !
Hold this magic wand in your hand, swing it and push the button : a complete digital clock will appear floating midair. Amaze your kids and friends !
 
Remove these adsRemove these ads by Signing Up
 

Step 1Description

Description
This is a persistance of vision project of the kind we have seen lately in large quantities. POVs are fun to watch anyways. This one comes in the shape of a tooth brush case (courtesy of Swissair, now gone) one must hold as a magic mand. At the top of the case 7 LEDs provide the display, at the middle two small button set the time and a larger one triggers the display: push the button (this turns the display on otherwise the display is normally off) and swing the wand right to left and the time of day will float midair !
How is this accomplished ?
The display is virtual, being made of 25 columns of 7 LEDs each. Only one column is shown at a time. The single column of LEDs shows one after the other the columns forming the digits of minutes and hours, right to left : pushing the trigger button starts the display of minutes, tens of minute, separating colons, hours and tens of hours, one column at a time rightmost column to leftmost column. Your eye's retinas will retain the image of each column one close to the other and the image of the clock will appear. Difficult to explain, much easier and fun to try.

The circuit is based on a PIC16F84 micro, a 32768 Hz crystal watch salvaged from a dead watch 8 resistors, two capacitors and two AA or AAA batteries.
The circuit consumes very little power due to the low voltage supply and the low frequency crystal.
Synchronizing button push and wand swing may take time to learn, but not much.

The time is set with trials and errors: read the time, push minutes set button to meke them advance one minute per second, read time again. The same to set hours.
Below the schematic, the source code commented so as to make it understandable as much as possible and the HEX file ready to burn into the PIC.

I'd rather not delve into how to program the micro. There are many tecniques and sofware described over the net. This would probably deserve a whole instructable of itself. I successfully used PonyProg as programming software and its HW interfaces. Also found excellent WinPIC.

Make sure to check the video attached at the bottom. The quality is not good being taken with a photographic camera. The clicking noise is the 'wand!' button being clicked while swinging. The voices in the background are my family's.

Now on with step two: construction

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License
« Previous StepDownload PDFView All StepsNext Step »
46 comments
1-40 of 46next »
Jul 6, 2011. 2:21 AMsmnoor88 says:
THANKS VERY MUCH 5VOLT I MAKE THIS POV CLOCK AND WIN 1ST PRIZE
DSC00838.JPG
Apr 21, 2011. 9:58 AMyaly says:
i have a universal pic programmer and i tried to program the hex file to the pic16f84a it gives me an error with mplab winpic800 and wxpic please help soon to send another better hex file thanks
Jun 25, 2011. 2:18 AMrobot1398 says:
i programmed it
Dec 14, 2010. 6:20 AMkahangkatumbal says:
Thanks a lot. we found a 32768 hz oscillator..

btw, is the program really designed to show the time only for a few seconds? how can we make it retain the time?
Dec 13, 2010. 3:39 AMkahangkatumbal says:
can you give us a hex code for the 4MHZ?!?!?!?!?
Oct 6, 2010. 7:30 AMmaviex says:
hi sir,,im still having a problem with this project,,i load the program to a pic 16f84a and use a 4Mhz oscillator,,when i tried to turn it on, the LEDs flash some light then suddenly turned off, is it ok to put it on breadboard first? could anyone suggest a simpler project using pic 16f84a for beginners?
Apr 1, 2009. 8:27 AMLord_Vek says:
I made one, but it is resetting at random (shows 00:00:00). I unloked the option in .asm file to show seconds, also. But, why the resetting ? And how I could make it show the time for a bit longer ?
Apr 7, 2009. 9:41 AMnoah1r says:
cool I like it =0 =) :p
Dec 29, 2008. 7:43 AMcolin55 says:
I designed a similar toy that displayed words. See the example:
http://www.talkingelectronics.com and click on Ekektor link. I used an inertia switch made from a metal ferrule and a length of tinned copper wire. It gave very accurate results and the words appeared in exactly the same position in the air, every time the project was "swished."

Sep 25, 2007. 12:57 PMkrvavizmaj says:
I don't quite get how the prescaler works on the PIC. If you use 32768 Hz oscillator you have 32768 cycles in second. If the timer overflows after counting to 255, shouldn't the prescaler be 1:128? So that way each count of the timer will be 128 cycles and so you get 32768 cycles until it overflows. I haven't really tried it in practice so I guess am wrong, can someone explain how it works?
Sep 3, 2008. 4:43 PMtbird45039 says:
i realy wish i new someone who could teach me how to understand ICs, etc.
Oct 10, 2007. 7:26 PMwolfy says:
if i use PIC16F628 how can i re-program it?
Jul 19, 2008. 7:39 PMJ_Mi says:
Haha, I think your hand would get saw after a w hile of trying to set the time
Jun 14, 2007. 6:59 AMHuKePa says:
Hi! I from Bulgaria. I am planning to make this, and I make it... but dont let go ;o/ On this level I serch a problem... BTW Are you want to see...?
HPIM0959.JPGHPIM0955.JPGHPIM0950.JPGHPIM0957.JPG
Jun 17, 2007. 1:40 AMHuKePa says:
Now I see few mistakes ... ;] I forget 3 connections 1 LED burned When I correct this problems maybe let go :D bye bye naw. Late I say what up :)
Apr 6, 2007. 10:51 AMbotronics says:
You might try programming the pic with my "pic-key" programmer.
http://home.comcast.net/~botronics/pickey.html
It's a simple and cheap pic programmer
Mar 15, 2007. 9:16 AMmacmaniac says:
I am planning to make this in the future and I will make a pcb. If you wish I will send it to you to publish on this instructable.
Jan 11, 2007. 10:06 PMOG Style says:
What is the battery life on this and how accurate is the clock? Good job.
Jan 30, 2007. 8:58 PMcurhat06 says:
Hai 5 Volt Nice Project.. But when I try to download magicwanclock.zip then I unzip end open magicwandschematic.pdf it error I can't open it. (bed encrypt dictionary) can U send to my email perkasq@yahoo.com.sg Many Thank's
Jan 13, 2007. 10:12 AMOG Style says:
ok I think I got it. When you push the button the light stay on for about 1/2sec. They don't stay on constantly. Thanks
Jan 12, 2007. 6:25 PMOG Style says:
1 more question are those 3 caps all ceremic?
Jan 12, 2007. 2:34 PMOG Style says:
5Volt I am tring to make your clock. (Good job on the info it is all there) I have a few question. On the schematic it says "82 or 100 W (x7)" does that me 82-100 ohm resistors? My 2nd question is will this work on a 16f84a? And can you give me the numbers off of the caps that you used for pin 15 & 16. I have assembled it with caps marked 82 on them and a 16f84a. When I push the buttion all I get is a quick light flash on and then off and stay off. I think it my be my caps I am using. I don't have any 820's. Thanks again good job
Jan 13, 2007. 2:54 AMcornflakes says:
Is every crystal I'll find on clockes will be a 32768Hz?
1-40 of 46next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
53
Followers
15
Author:5Volt