A Wrencher On Your Oscilloscope

We like oscilloscope art here at Hackaday, so it was natural to recently feature a Javascript based oscilloscope art generator on these pages, along with its companion clock. Open a web page, scribble on the screen, see it on the ‘scope.

As part of our coverage we laid down the challenge: “If any of you would like to take this further and make a Javascript oscilloscope Wrencher, we’d love to make it famous“. Which of course someone immediately did, and that someone was [Ted] with this JSFiddle. Hook up your soundcard’s left and right to X and Y respectively, press the “logo” button in the bottom right hand pane, fiddle with your voltages and trigger levels for a bit, and you should see a Wrencher on the screen. We’re as good as our word, so here we are making the code famous. Thanks, [Ted]!

It’s not an entirely perfect Wrencher generator, as it has a lot of points to draw in the time available, resulting in a flickery Wrencher. (Update: take a look at the comments below, where he has posted an improved JSFiddle and advice on getting a better screen grab.) Thus the screen shot is an imperfect photograph rather than the usual grab to disk, for some reason the Rigol 1054z doesn’t allow the persistence to be turned up in X-Y mode so each grab only had a small part of the whole. But it draws a Wrencher on the screen, so we’re pretty impressed.

The piece that inspired this Wrencher can be found here. If you think you can draw one with a faster refresh rate, get coding and put it in the comments. We can’t promise individual coverage for each effort though, we’re Hackaday rather than Yet-another-scope-Wrencher-aday.

10 thoughts on “A Wrencher On Your Oscilloscope

  1. You can see the whole thing at once, suitable for a normal frame grab, by adjusting the timebase (set to 10ms or longer). Playing with the memory depth can substitute as a persistence control in this mode. Then a normal screenshot will work.
    I also fixed the upper left wrench – it was a cut & paste error.

    To get the points, I pasted a bitmap of the wrencher into an xfig drawing, then traced polylines around the outline. I pasted the resulting points from the saved xfig file (it’s an ASCII format) into a JS array.

  2. Now,
    instead of running it on a PC and sound card,
    I’d like to see it run on my Official Hackaday 10 year anniversary Trinket Pro!
    Then I could hook it up (surreptitiously) to a cow-orkers scope during their break,
    and observe their reaction when they return!

  3. I’ve been planning since quite some time to hack a ‘canvas.getContext(‘oscilloscope’)’ ( or hack an oscilloscope rendering out of 2d/3d canvas ). As some of us may have already seen, someone pretty skilled ( ;p ) wrote a “Quake2 oscilloscope render” some time ago, and I can’t help thinking that ding a module for Three.js ‘d be crazy awesome :D
    -> I’l try stuff as soon as I have time to do so ;)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

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