3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

how do i make an analog clock with an arduino and an oscilloscope?

i would like to make an analog clock that displays on an oscilloscope using an arduino. Is this possible? and i would like some help with the code.i will also have buttons to set the clock. the picture is what i would like to do with my arduino

avr-oscilloscope-clock.jpg
12 answers
sort by: active | newest | oldest
May 4, 2010. 12:04 PMlemonie says:
Kits/boards are not that expensive to buy. (click)

L
May 4, 2010. 3:33 AM[AV3NG3R] says:
Seems like an awesome project.

At a guess, though, I'd say that one in the photo is just hooked up directly to the screen, not hooked into the standard inputs (i.e. voltage vs. time).

May 22, 2011. 9:21 AMOpcom says:
The scope is in the "X-Y" mode. The inputs apparently are through the regular probes shown. Most scopes have an X-Y mode. It takes a 1-2Mhz bandwidth scope, preferably dc coupled, to display the sparkfun clock well. Here are some pics. The big display is a Wavetek electromagnetic XY. It's real slow, like an arcade game display. When the sparkfun scopeclock DAC write delay was increased hugely, it started to look better. But, a better display (deflection system) is what is really needed. I've ben wrking at this a while. Hope to have soon a project that will help anyone to do the scopeclock or arcade, on any CRT. It will require a lot work on their part though.
May 3, 2010. 2:04 PMsteveastrouk says:
Tricky. Clocked flat out, and running in assembler, you could do it...
May 3, 2010. 2:51 PMsteveastrouk says:
Precisely, and its considerable abstracted from the hardware. You'll need to program closer to the metal to get fast enough output rates to do it. I think you need to do some math, and work out the data update rate, and resolution you need, do you do a raster, or vector display ? I've done similar on different processors by vectors.
May 3, 2010. 5:20 PMorksecurity says:
Simply drawing vector images for the hands ought to be relatively easy -- two analog outputs (X and Y) and one additional output for "Z" (beam on and off, which most serious scopes will let you do). I'd start by drawing simpler figures to get a feeling for how to program this, how quickly the image fades (ie, how quickly you have to get back and redraw), and so on. Then get the hands running and updating as time passes. Then see how much additional detail you can add before the blinking becomes intolerable.

Note: Don't even think about trying to calculate sine/cosine while plotting the endpoints of the hands. Precalculate those constants for the 60 angles you need, and do a table lookup. MUCH faster.
May 4, 2010. 12:44 AMsteveastrouk says:
Pray you have a long persistence phosphor....
May 3, 2010. 8:13 PMNachoMahma says:
> Don't even think about trying to calculate sine/cosine while plotting the endpoints of the hands. Precalculate those constants for the 60 angles you need, and do a table lookup.
.  Great idea when processing power is limited.
May 3, 2010. 3:09 PMBIGHAIRYDUDE says:
WOW!

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!