Author Topic: Arduino for oscilloscope learning  (Read 1448 times)

0 Members and 1 Guest are viewing this topic.

Offline cyberwaspTopic starter

  • Contributor
  • Posts: 20
  • Country: us
Arduino for oscilloscope learning
« on: January 22, 2020, 03:44:13 am »
Hi E1. I've been using an Arduino to learn how to use my oscilloscope, "ie sine wave, saw tooth, etc."  The scope is a Siglent 1102 cml+. I was monitoring the sine wave output on channel 1 and decided to use the second channel to watch the pwm square wave from the Arduino. My question is this. On the scope is there a way to set a trigger on the second channel as well as the first? Am thinking not, but I'm new to oscilloscopes.

A little background. I haven't built anything in electronics for a long while other than minor repairs "radios, computers, cell phones." Also does anyone know of a good beginners tutorial on scopes. I've watched everyone I could find on youtube but they seem to drop the ball when it gets interesting~TIA

 

Offline edy

  • Super Contributor
  • ***
  • Posts: 2387
  • Country: ca
    • DevHackMod Channel
Re: Arduino for oscilloscope learning
« Reply #1 on: January 22, 2020, 03:58:05 am »
Try this:

https://engineering.case.edu/lab/circuitslab/sites/engineering.case.edu.lab.circuitslab/files/docs/Oscilloscope_Fundamentals_-_Tektronix.pdf

Not sure if you are beyond this level but the above PDF covers a lot of ground. The capabilities of your scope may differ. Is your question whether the trigger on the first and second channel can be different from each other, or if the trigger setting going to apply to both channels?

How are you using the Arduino so far with the scope? Did you make an R2R ladder DAC yet, or just looking at the PWM square wave duty cycle? I believe Arduino has 14 digital I/O pins, so if you split them into 2 groups of 7 you can create two R2R ladder DAC's and feed the signals to X-Y to control very fine precision vector drawing to your oscilloscope (7-bit levels gives you 128x128 grid control of your X-Y point). Fun stuff, check it out...


YouTube: www.devhackmod.com LBRY: https://lbry.tv/@winegaming:b Bandcamp Music Link
"Ye cannae change the laws of physics, captain" - Scotty
 

Offline cyberwaspTopic starter

  • Contributor
  • Posts: 20
  • Country: us
Re: Arduino for oscilloscope learning
« Reply #2 on: January 22, 2020, 04:16:50 pm »
Edy, Thank you. No, I'm probably not beyond the pdf you listed and will be reading it when I leave here. As far as the oscilloscope drawing,  I've done that only different. I've been following Jerobeam Fenderson and have duplicated his efforts like:https://www.youtube.com/watch?v=YqSvkNjWnnQ.

Unfortunately I have to use my phone, as my PC and scope are both earth ground, BOOM. Learned that by watching a Youtube by EEVblog.  Am going to be sticking to DC circuits until I can get my bench set up correctly, then grab myself an isolation transformer

I think I answered my trigger question, "The trigger setting is going to apply to both channels?' as yes
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9933
  • Country: us
 

Offline cyberwaspTopic starter

  • Contributor
  • Posts: 20
  • Country: us
Re: Arduino for oscilloscope learning
« Reply #4 on: January 24, 2020, 04:42:37 pm »
Thank you, since I bought the scope I've been trying to find any documentation on it with no luck, even when contacting Siglent. Roll over mode may do the trick!


How about page 51 of the  User Manual?

https://siglentna.com/USA_website_2014/Documents/UserManual/SDS1000X&Xplus_UserManual_UM0101X-E02A.pdf

 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9933
  • Country: us
Re: Arduino for oscilloscope learning
« Reply #5 on: January 24, 2020, 06:11:21 pm »
I just did a Google search for "siglent 1102 oscilloscope user manual" (no quotes) and it was the first and second reply.  I chose the 2d because it was direct from Siglent.
 

Offline cyberwaspTopic starter

  • Contributor
  • Posts: 20
  • Country: us
Re: Arduino for oscilloscope learning
« Reply #6 on: April 25, 2022, 04:02:55 pm »
Thank you everyone. upon further investigation, my lack of skiills turned out to be a faulty probe. It would calibrate fine but begin to fault at certain frequencies which in turn threw my feeble brain into a endless lop.

Also I haven't received any email notices of replies!
 

Offline theHWcave

  • Regular Contributor
  • *
  • Posts: 161
  • Country: gb
Re: Arduino for oscilloscope learning
« Reply #7 on: April 26, 2022, 08:34:00 am »
To your original question, I don't have a Siglent but normal (affordable) scopes don't have two independent triggers. You can select of course which channel to trigger on but once triggered both channels are shown.  In your case, both signals coming from the same Arduino, that would not matter much because they are very likely strongly correlated ( in-sync ) by virtue of being produced by the same software. It would be more interesting if you'd try to see one sine wave from your Arduino and another from say a mains low-voltage(!) isolation(!!!) transformer. Then try your Arduino to match the frequency (roughly) and select XY mode on the Siglent (i.e. one channel doing the vertical as normal and the other the horizontal deflection). You will see interesting patters (called"lissajous" patterns). Worth a try, can be quite fun to watch when slowly changing the frequency on one channel

Edited to add: Keep in mind that the grounds of both of your channel inputs are connected to each other and to mains ground. Please never connect your standard scope probes directly to mains! Dave has a good video "How not to blow up your scope"  or so. Well worth watching.
« Last Edit: April 26, 2022, 08:45:37 am by theHWcave »
 

Offline Romualds

  • Contributor
  • Posts: 14
  • Country: lv
Re: Arduino for oscilloscope learning
« Reply #8 on: April 26, 2022, 10:58:27 am »
Roll over mode may do the trick!
Perhaps reading "Pattern Trigger" section (page 76) of the Manual from the link above will help. This is a way you can trigger the oscilloscope according state of two channels.

UPD: Haven't noticed I replied to very old post.
« Last Edit: April 26, 2022, 01:52:22 pm by Romualds »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf