>> The firmware was updated on 19 Mar 2011 <<

A few months ago a friend of mine -car mechanical at profession- told me that he had problem with some car sensors. He couldn't check, with a simple multimeter, if a sensor was working properly. I advised him to buy a LCD oscilloscope instead of a normal oscilloscope, because of its small size. The use of an oscilloscope is very helpful because you can see the waveform that is produced by a "healthy" in-circuit-sensor* and you can compare it with the waveform of a "suspect" in-circuit-sensor.
After that, he told me that this oscilloscope costs a "fortune" for him as he has a small car service shop. I offered to help him by designing and constructing a small, cheap and workable LCD oscilloscope for him.

*in-circuit-sensor is the sensor which is connected on a board (PCB) or it's connected somewhere in the car. It's not a disconnected sensor.

You can download the source code, hex, schematic diagram,PCB and picture of the circuit .

Step 1: Selecting the components

As the circuit has to be constituted by a few and cheap components, I chose the DEM128064A graphical LCD based on KS0108 controller chip to display the measured signals. The ATmega32 microcontroller is chosen because it has a lot of IN/OUT pins and a 2kB RAM size. 1kB is needed from gLCD and some bytes of the rest 1kB are used in C source code as registers. Because my oscilloscope has to read both AC and DC currents and at the same time it should have a High input resistance, I chose to use an LM358 which is a dual operational amplifier. The rest components like LM7805 , capacitors and resistors are very common and I won't refer to them.
<p>Finally I did it...<br>Its my FYP :)</p>
<p>Hi</p><p>You really make it ?</p><p>pleas help me to make it</p><p>What is the list of accesoreis ?</p>
<p>Hi</p><p>Help me about diagram of made an oscilloscope </p><p>pleas send to my e-mail :barabapa_s@yahoo.com</p>
<p>Can you help with the Code , in understanding it . and can sm1 plz upload the board file and schematic file. I can save smtym. Thanks In Advance</p>
<p>mr, seradis..i.am .. trouble when burn atmega 32.i.am .. ask for help .To give way detail..i.am burn atmega 32 .... using kazama avr programmer, aid needs. I appreciate you., This e-mail me ... odiprasuma@gmail.com...</p>
<p>Another similar interesting project: https://github.com/hassansin/atmega16-portable-oscilloscope</p>
<p>hi, i want the progame of atmega 32 base avr oscilloscope</p>
<p>Looks like a cool project and usefull aswell. But i got a couple questions. Is it possible to use a blue screen like <a href="http://www.ebay.nl/itm/LCD12864-128X64-Dots-Graphic-Matrix-LCD-Display-Module-LCM-Blue-Backlight-new-/370668455645?pt=LH_DefaultDomain_0&hash=item564d8fc6dd&_uhb=1" rel="nofollow">this</a>? And what is K1 called? And last question. To programm it you just need to add an 2x5 male connector and burn the hex with an ISP programmer?</p><p>Hope to get an respond!</p>
<strong>1) &gt;&gt; Is it possible to use a blue screen like this?</strong><br> No. Uses different LCD controller and pins. Only the resolution is the same (128x64 pixels)<br> <br> <strong>2) &gt;&gt; what is K1 called?</strong><br> Oh! I left the description in Greek language. I re-uploaded the schematic diagram in English.<br> Well, on that pin is connected the probe. Probe is a tool like that one on the attached picture.<br> <br> <strong>3) &gt;&gt;To program it you just need to add an 2x5 male connector and burn the hex with an ISP programmer?</strong><br> If you want you can do that! I programmed the ATmega32 with my STK500 programmer that already has a 40-pin DIP size socket for adding ATmega32 and burn the firmware.<br> <br> I hope I answered your questions.<br> <br> Regards,<br> Vassilis Serasidis
<p>Thanks for the answer! So i need an LCD screen wich is controlled by an KS0108. So something like <a href="http://www.ebay.nl/itm/1PCS-KS0108-128x64-Graphic-LCD-Blue-Backlight-for-EasyPIC5-HIGH-QUALITY-/121103288848?pt=LH_DefaultDomain_0&hash=item1c32518a10&_uhb=1" rel="nofollow">this</a>? And what size connector did you use for the probe?</p><p>Hope to get an respond!</p>
<p>&gt;&gt;So something like <a href="http://www.ebay.nl/itm/1PCS-KS0108-128x64-Graphic-LCD-Blue-Backlight-for-EasyPIC5-HIGH-QUALITY-/121103288848?pt=LH_DefaultDomain_0&hash=item1c32518a10&_uhb=1" rel="nofollow">this</a>?</p><p>That LCD seems ok.</p><p>&gt;&gt;what size connector did you use for the probe?</p><p>Oscilloscope probes (usually) have BNC connectors </p><p><a href="http://en.wikipedia.org/wiki/BNC_connector" rel="nofollow">http://en.wikipedia.org/wiki/BNC_connector</a></p>
<p>hi , more power, i made this project by ver1. programming carefully but the avr speed is very low! you now 5 khz is very down frec. for electronic devices . is ver.2 speed more than ver1. program? </p><p>thanks for you..</p>
<p>Version 2 gives the voltage and frequency indication of the measured signal. Moreover I did a little bit improvement to the source code and the max measured signal increased from 5kHz to 7.5 kHz.</p><p>It's not big deal that because the internal Analog to Digital Converter (ADC) of ATmega32 is limited to 15 kilo samples per second, that reads max 7.5 kHz square waves. If you want to read triangular pulses then the maximum kHz of the measured signal is much lower.</p>
<p>I have been trying to build the program(given on your website</p><p>as 'source code for V2')using AVR STUDIO 4.But when I 'Build and Run'</p><p>it in STUDIO,I recieve multiple errors like 'glcd.c:-No such file or</p><p>directory' </p><p> In AVR studio,I have also included the source file and header</p><p>file included in the source code.</p><p> I am a begineer in using AVR studio,so plz forgive my ignorance.</p><p> ALSO,will the circuit work directly if the ATMEGA32 is burned</p><p>with the given hex file as per the instructions on the site ?</p>
I implement this but my lcd does not show any measurement....tell me whats the problem behind this so I will reduce this problem.....waiting for your replies...
this display is not available at my place...so any other option for this?
Look at adafruit.com that is where I bought mine you can get it with a blue background with white text or black background and white text
I know most of the parts are common but it is hard to read what they are from the schamatic may I have the parts list? I have the micro controller, screen and the amplifer but I am having a hard time reading the values of the other compoients.
My total price is just under $42 I have some parts still in the mail but I will post a photo of it once I have it together and working
I have a list of most of the parts but I don't know what the vale of D1. I did a searchfor 8V2(that is what it says on the schematic) and could not find it on jameco.
The diode D1 is a zener diode at 8.2 Volts.
Thanks I have found the parts at jameco.com but the screen I found the screen at adafruit.com and my total price is around $45 -50 USD if you buy all new parts and 30 of it is the screen
have you considered using an external ADC?<br><br>Will it work at 8mhz?
&gt;&gt;have you considered using an external ADC?<br>That would be a good idea but there is not free time for that!<br><br>&gt;&gt;Will it work at 8mhz?<br>Yes, but you must change the crystal frequency in the source code and re-compile it. The circuit will run in low performance.
great! i'd like to make one also.
hi <br>thanks for your perfect site. <br>I need some explanation for the structure of the c file of this project.could you help me please? <br>if you mail me that i will be pleased. <br>this is my email address:matin_lili@yahoo.com
The firmware has been updated to version 2.00<br><br>- Now, indications such as voltage and frequency are displayed on LCD.<br>- A small increment of sampling rate has been made too.
Hello, nice project. Some time ago I (re) built and XY oscilloscope that uses external ADCs. That makes it a lot faster and a lot of nice curves can be displayed. Not as well finished or as useful as yours, but still fun to build and try. If you please you can check it in my website: <a href="http://eercz.com/en/avr_xy_oscilloscope_nokia_lcd">http://eercz.com/en/avr_xy_oscilloscope_nokia_lcd</a><br> <br> Regards<br>
Would you recommend a inexpensive 1:10 probe that I can used with this scope? Maybe a supplier and part number? Thanks.
&nbsp;very good project..i have seen pc based oscilloscope...<br /> but this one is very good.....<br /> <br /> where can i get the lcd....its not available here at my place...<br /> i can make online shopping..<br /> can anybody &nbsp;who made this project, send me few links for online shopping<br /> <br /> what will be the cost of the LCD?<br /> <br /> what is ks0108...do i need to buy this controller or simply lcd?<br /> <br /> make my doubt clear....<br />
how much did the lcd display cost, nice design tho.
hey....what was your total cost? Very nice job though...am needing a oscilloscope so wondering if this is the cheapest way to skin this particular cat.lol
The <a rel="nofollow" href="http://www.pololu.com/catalog/product/1300">Pololu AVR programmer</a> has a built in SLO-scope that I really like. It only works from 0-5v, and only on windows, however. But its only $20(USD), so its great for simple low voltage applications.<br/>
The all project (including the probe) cost me about 70 euro.
I did the whole project in ~20-30 euro (<100 PLN)
nice one....good build and quite cheep.....compared to the commercial ones i have sourced.
if you don't want to make this get this $50 prebuilt o-scope.<br/><a rel="nofollow" href="http://www.seeedstudio.com/depot/digital-storage-oscilloscope-with-panels-p-167.html">http://www.seeedstudio.com/depot/digital-storage-oscilloscope-with-panels-p-167.html</a><br/>there is also a kit but it needs smd soldering.<br/>
hello serasidis, we can use the mega32l instead mega32, the code is the same? , about the xtal, change the frequency or something? (cause the max clock of the mega32 (16mhz) , i have a mega32l-8pi (8mhz) max, thanks
hlp, me to display the voltage,and frequency in the display........what changes hv 2 be done with this.
hi my name is pramod i hve done tis project it is very nice but i like to do some modifications i like to display the voltage and frequency on the lcd screen so pls help me in changing the code
hi to ALL heloo Mr serasidis mr serasidis giveme advise u havent my question
Hey, I finished my oscilloscope!<br/><br/><a rel="nofollow" href="http://i39.tinypic.com/30vk45l.jpg">http://i39.tinypic.com/30vk45l.jpg</a><br/><br/>It turns out i didn't need to use an inverter, your screen is the same as mine!<br/>Although I have a problem: I'm using software 1.01 and I can't use the time/div buttons (left and right). Do you know a solution?<br/>
can this project be done using atmega32L, instead of 32 since atmega32 is not available for us.........pls reply me as soon as possible
Yes, you can use ATmega32<strong>L</strong> instead of ATmega32.<br/>
Hey, I found an LCD that input matches yours (and its a KS108). But 3 bits are negated (CS1 CS2 RST). Could you look in the datasheet if it will work like yours or will I have to change something in the sourcecode?<br/>Heres the datasheet<br/><a rel="nofollow" href="http://www.artronic.pl/o_produkcie.php?id=612">http://www.artronic.pl/o_produkcie.php?id=612</a><br/>
I think the LCD you mentioned needs inverted CS1, CS2 and RST signals. You have 2 choices: either you edit the lcd.c file correcting the commands for these pins or you put 3 NOT gates between lcd pins and AVR pins. Depend on you what you will do. I would suggest you to find a pin-compatible LCD to build this project.
so will this code be ok? I can't seem to find a screen with a compatible pinout ;/<br/><br/><a rel="nofollow" href="http://mog123123.googlepages.com/glcd2.c">http://mog123123.googlepages.com/glcd2.c</a><br/><br/>Besides I see that the &quot;signal wire&quot; of the probe connector (K1) is soldered to both ground(0V) and Capacitor (C2) why is that?<br/>
OK I'm gonna use a 74hct04 with the screen I showed you to invert CS1 CS2 and RSTB. I have one question though: Can I use an ATMEGA16 instead of 32? The hex file is only 10kB so it should fit or am I missing something important? Please reply.
hello im ADIE im so excited, so proud this great why in serasidis web , i can't join in forum . server not fungtion i will build up avr oscilosope u can help, an give me advise?? oh yeah why this project is the limit 5khz, can you explain?? thanks best regars

About This Instructable


147 favorites

More by serasidis: Low speed AVR oscilloscope V2.00 (Is updated on 19 Mar 2011)
Add instructable to: