|
Post by garryg on Aug 28, 2015 19:50:13 GMT -5
Ok, so I already have an Uno and I've just aquired an old (propper) 1970s CRT osciloscope, for a tenner, so...
Anybody know any good tutorials for programming the Arduino to draw shapes on the scope? I know it can be done, but can't seem to find any tutorials myself!
I want to see if I can re-make tennis for two, complete with controllers.
Yes, I do know it would be a completely useless project...
But it would take my mind of having to (properly) learn C# and .Net for a while.
|
|
|
Post by VectorX on Aug 28, 2015 20:40:42 GMT -5
I've just aquired an old (propper) 1970s CRT osciloscope, for a tenner, Wow! Yes, I do know it would be a completely useless project... No it wouldn't!
|
|
|
Post by garryg on Aug 31, 2015 17:09:00 GMT -5
Ok, I've had a bit of a hash around with this, and I think there may be something up with the X vector of my oscilloscope.
First off, waves look ok when viewing something in time along the x axis, with volts being up the Y axis. So Ok so far.
But when I try to 'plot' something in XY mode the X axis seems squeezed into the middle of the screen vector position). I tried displaying the mushrooms demo (https://www.youtube.com/watch?v=rtR63-ecUNo) through the scope and the same thing happened. The picture is there, and the Y axis can be 'zoomed' by changing the volts control, but the X axis remained squeezed towards the middle of the display vector.
Is there something up, or am I just missing something obvious here?
|
|
|
Post by mountaingoat on Sept 11, 2015 8:29:35 GMT -5
What you will need is a pair of DACs (Digital-Analog-Converters) to drive the scope. You can make one from a bunch of resistors or buy one ready made. Then - as you said - just be in XY mode and let one analog "channel" drive the X axis and the other the Y. Check this one out, the classic scope-clock on an Arduino: www.instructables.com/id/Scope-clock-Analog-Clock-And-Temperature-sensor/Remember that the analog output of the Arduino Uno is not actually analog, just pwm. I believe you need a Teensy3.1 or an Arduino Due to have actual analog output. Or the DACs I mentioned above. I built a crude function generator from an Uno and a TLC7528 www.ti.com/lit/ds/symlink/tlc7528.pdf , it mostly works. ;-) I don't think this is the best DAC chip to be used as it is designed for current output. The main problem is that I can't seem to get the full 0 - 5V out of it in voltage mode. Other than that it does work and you get two channels - which is nice if you want to do XY mode.
|
|
|
Post by garryg on Sept 12, 2015 8:59:21 GMT -5
Thanks for the reply. I am using the uno for another project already. So I will probably just get a cheap DUE clone.
|
|
|
Post by garryg on Oct 10, 2015 8:36:02 GMT -5
I've now got an Arduino Due and have downloaded the OSCILLOSCOPE CHRISTMAS TREE sketch from this page, and ordered the relevant resistors and capacitors. Does anyone know of any other downloadable Arduino sketch programs for plotting to Oscilloscopes? I can let you know how I get on, if anyone is interested.
|
|
|
Post by sj on Oct 10, 2015 11:03:40 GMT -5
I haven't a clue what you're going on about but I'm interested.
|
|
|
Post by garryg on Feb 17, 2016 20:21:12 GMT -5
Just wanted to say, I was getting to grips with this, I made the cable for my Ardino Uno to connect to the XY of the scope, and was getting used to drawing to it and even trying to get things moving... (with a microswitch and a pot wired into the Uno) Then my scope blew up... I mean actually blew up, bang... Fizz, crackle... ... Blue smoke, blew up! So this project is now officially on hold
|
|
|
Post by gliptitude on Feb 18, 2016 10:18:48 GMT -5
Oh no! Do you know why it blew up?
|
|
|
Post by garryg on Feb 19, 2016 17:33:00 GMT -5
Not a clue. It was an old scope from a job-lot that I got very cheap. Off the top of my head I'd say at least one valve has gone.
An XY vector monitor would probably be better to work with, although an old round screen crt scope would look more the part for a tennis for two machine.
I do have another scope where the screen has faded to a point where it can hardly be seen, that's normally a problem with the high power supply to the tube. It may be cheaper to have a look at this one.
|
|