DIY Oscilloscope using Arduino and Graphic LCD (Osciduino)
HTML-код
- Опубликовано: 30 окт 2012
- I have designed an Oscilloscope using Arduino Mega 2560 and 128x64 GLCD. It works pretty good for verification of signal the range of input frequency is upto 10-12KHz and Sampling rate is 200KSPS. It has no Attenuation so you will have to convert highvoltage signal to 5 v pTp signal. And yes for Sine wave or Cos wave or signal which is below ground voltage you will have to DC shift the signal. You can set the Time/Division for studying signal. It gives Peak to Peak voltage value of signal in Real Time till two decimals.
All the Arduino GLCD libraries used are freely available.
If you have suggestions mail me on: prasadp4009@gmail.com
Code Link : www.dropbox.com/s/2vgc3hyaj51...
It works AWSOME. It can be used for general verification of signals. I will be doing the same using VHDL on DE1 board now.
Keep Checking www.vhdlcodes.com for upcoming projects.
Thank You. - Наука
Wow almost accurate ;)
You did really well video than the other videos here on RUclips i appreciate that. Your idea works. I already tried it. I also used your code after a tiny modification with an auduino uno r3 and that worked too. I'm also writing a program on it to work on large size color tft lcds hope it works. Will share you...
Nice Oscilloscope project with the Arduino. Thank you Prasad
Great Job! Thank You.
Good Prasad .. Put some audio amplifier projects
Great job !! Thanks lot.
Очень нравиться этот клип про осциллограф,спасибо.
excelente amigo!
thanks for posting.
You genius!
Nice work.
@Prasad Pandit , can you show me how to hookup arduino mega 2560 with glcd 128x64, i mean the pin connections ? thank you.
great job
I have had problems with the U8Glib, what LCD and graphics library did you use?
very good!
Very cool I have a Arduino uno and a lcd 128x64 just like yours I would like to try it , I just need to modify the code for the uno
Thanks!
Sir in glcd there is a pin Vee (-Vout) where we attach that pin in hardware
Can we check AC sine wave from it? If yes, then max voltage to check?
Hello parasad what are the errors you observed in it and what about precision?
@chabilal bahera
Yes. It can show any kind of signal you gave it to as input.
Hello friend . I'm from Colombia and I 'm starting in programming with VHDL. I saw a video of the calculator. and I would like to I could you . Pass code for analysis. Please
jedazago@gmail.com
David Zapata : I am uploading my code on GIT Hub.. Check my website on Tuesday. I will post link of my GIT Hub there..
Ok prasad Thank you very much I will be pending
Hello friend . I 've been looking at your page .
But do not see the code. that you did the calculator. Help me Please.
+David Zapata Check the description, I have posted a dropbox link.
friend tries to do the same but I do not read ports and is only lit LCD
hey some issue i have facing in interface can you help me
As per this 2022 years, regarding the simple sketch, i tried so many times with results always errors.
i tried compiled with different versions of Arduino IDE, debugging with the given library, the problem stay same.
plz tell the link of code.the link that u have given is not present
Hey how is everything
You would still have the design and code for this oscilloscope.
Congratulations on the project.
You could have used an oled display. These are easy to program and also require less no. of pins.
Pranay Sharma Hi Pranay, Thanks for suggestion. I will surely add in next version of video.
circuit pls for the lcd
what I can do to change the volts per division, in your program???
Hi, glad you are able to make it work. First I would like to tell you that max input voltage to Arduino is 5v. That's why I kept it like that. If you are using any different board which support higher voltages just change the print values to in printf, if you are giving max values. Else you will need to change the analog input value map conversion line which is 0,1024 mapped to 0,53. Change 0,1024 as per your max voltage.
+Prasad Pandit Thanks a lot my friend for that code, I need to read a signal of temperature from a LM35, and I want to see how this analog values increment or decrement in the time, but I was arranging the code to see the signal increment slowly. but I only get a horizontal line
thanks i am very intersting i have all equipement but i don't have the code can you please please post the code
Hello dear Prasad Pandit can you help me?
Hello Friend Thank you so much!!
Does it also work as an ECG meter?
yes it does.
you will need to integrate plethysmograph circuit with this scope..
great stuff. now add a circular memory buffer and trigger :)
I am planning now using PSoC 4
give the pin connection info
oke,oke
Mr. OK )
Good project!. Please can you confirm the sampling rate? For up to 10MHz input signal the sampling rate should be tens of MHz.
Yeah, the sampling frequency should be at least twice the maximum bandwidth, but realistically more, and there should be a high order antialiasing filter before the ADC really. But considering its just an arduino and an LCD and not really a scope, it's still an impressive little widget
KX36
Yes, definitely it is no good idea to take Nyquist literally, An acceptable minimum is 4x as the "4" in "4:2:2".
Sorry I am totally foreign to the Arduino (yet!), if I knew a little about its architecture maybe I wouldn't be bothering you with this basic question: is there was some mistake in your figures?, obviously you can't sample 10MHz at 0,2Ms/s.
*****
10 samples per second is probably a bit slow for what most are looking for in a usable tool. To give good resolution the frequencies measured would be way below the threshold of hearing for a human (to give perspective (which is around 60hz or so)). look at the clock speed of the processor then compare to how many "dots" you want to make a smooth representation of the signal, rather than hard digitized jumps from measured point to measured point. I know this is not a "mathy" approach but it gives a decent mental concept of what the issue is.
*****
Right, with 200ksamples/s, I'm sure Mr. Prasad Pandit intended to say "12kHz" (I would risk 20kHz or a little more), not MHz. Anyway, this is quite a feat for something not targeted to be a 'scope such as the Arduino, and you can do a good number of simple things with this bandwidth.
Sampling rate is 200KHz and CPU frequency is 16 MHz
Bhai codes ki link bhejo
There are no divisions on the display so "Time/division" is meaningless. If the sampling rate is 200KSPS then this will only show audio frequency waveforms. "Input frequency up to 10-12MHz" is nonsense - what made you think that? The waveform you call noise looks like normal mains frequency which is 20 ms/cycle (which gives a better idea of your actual scan frequency).
Probably a typo. He meant KHz.
w5cdt
I agree.
Yes. It surely won't show anything more than audio, its just a hobby project. You can wait for my second version using PSoC 4
Corrected the typo in the description. Thanks!
Display purchase karna hai kahan per Milega
Search for 12864 (128x64) Graphic LCD. Wo display use kiya hai. Online mil jayega.
Hi! I think that the code link is down
Vladimir Ruiz I have updated the link. Please check.
Thank you!
I think the raspberry would work better here.
I thought of using that, but considering simplicity I used arduino.
OK?
*Well done Prasad. But in reality this is shit . Your are effing wrong about 10-15 MHZ. Your arduino can never convert fast enough. What you are seeing is 60Hz.* Please say OK OK less often. And try doing this with a STM32F10 board or a Silabs 51F120 board for reasonable results. Note that without a trigger circuit this will remain a toy.
Azzy M Thanks for suggestions! I will surely improve.
*I am sure. Pursue it till you have the best.*
I have some AD9057 and AL422B chips. Good for 80MHZ conversion If you can use them I will happily exchange for something. Or just a proper thanks.
why don't you find a girlfriend??
Have one
Good anwser