Académique Documents
Professionnel Documents
Culture Documents
Table of Contents
Intro: Low speed AVR oscilloscope V2.00 (Is updated on 19 Mar 2011) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/
Intro: Low speed AVR oscilloscope V2.00 (Is updated on 19 Mar 2011)
>> 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 .
Image Notes
1. Probe connector
2. 12V DC power supply
3. DEM128064A 128x64 pixels graphical LCD
4. ATmega32 microcontroller
5. 1:2 voltage divisor switch.
Image Notes 6. AC or DC selector switch
1. The maximum voltage of he waveform. It shows also the voltage of a DC signal. 7. Beam up/down calibration.
2. It shows the Volts peak-to-peak of the measured waveform. 8. Power ON/OFF switch
3. The frequency of the measured waveform.
4. The waveform's displaying area.
5. Moves UP the waveform.
6. Moves DOWN the waveform.
7. Shrinks the low frequency waveforms to fit on LCD.
8. Restore the shrunk waveforms.
9. Calibrates Up or Down the horizontal beam on LCD.
10. Input probe.
11. Power socket (12 V DC).
12. On-Off switch.
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/
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.
Image Notes
1. ATmega32 microcontroller
2. LM358 operational amplifier
3. DEM128064A 128x64 pixels graphical LCD
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/
Step 3: Making the prototype
The prototype was made on a dual breadboard and the microcontroller was placed on an STK500 development board (see photo). I haven't taken any photos from the
prototype board. So, I can show you only the boards without the components I used on them.
Image Notes
1. Breadboard
2. STK500 development board
Image Notes
1. PCB 101x160mm size
2. Component placement on PCB
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/
Step 5: Soldering, calibrations and usage.
Soldering
Solder all components on PCB, starting from the smallest and go on to the biggest component. Check the PCB from soldering side for shortcuts that could have been
made during the component soldering. Remember to put IC3 on a base, so the removal for future reprogramming can be done very easily.
Calibrations
If everything is ok, supply the circuit with 12V Dc. On the screen you will see the oscilloscope's raster with a horizontal line on it. Adjust P1 (LCD contrast) with a small
screw driver up to the point you will see clearly the content of the screen. If you adjust the P2 you will see that the horizontal line (beam) will be moved up or down
depending on the adjustment of P2. Adjust the P2 to set the beam at the center of the screen.
Usage
Connect a 1:10 probe at BNC connector (K1) of oscilloscope. Now you are ready to make your own signal measurements. Take care not to exceed the maximum input
voltage which can be up to 24V Ac or 30V Dc on 1:10 selection prob. At 1:1 the maximum input voltage can be up to 2.5V Ac or 5V Dc. S1 gives an extra input voltage
division by 2. With S2 you can select between AC or DC input signals.
Related Instructables
Debugging AVR
code in Linux
with simavr by
Easy Atmel
AVR acoustic Help: An Faraday For hardwarehank
spectrum Absolute Fun: An Xmega Sine
Beginner's Electronic .... by vithrar Wave /
analyzer by Waveform
manekinen Guide to 8-Bit Batteryless Dice
AVR by Gadre Generator by
Programming- wandererwolf
AVR Dragon by
PopSci
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/
Comments
47 comments Add Comment
Regards
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/
withume says: May 14, 2009. 8:29 PM REPLY
hlp, me to display the voltage,and frequency in the display........what changes hv 2 be done with this.
http://i39.tinypic.com/30vk45l.jpg
It turns out i didn't need to use an inverter, your screen is the same as mine!
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?
http://mog123123.googlepages.com/glcd2.c
Besides I see that the "signal wire" of the probe connector (K1) is soldered to both ground(0V) and Capacitor (C2) why is that?
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/
serasidis says: Dec 29, 2007. 5:53 AM REPLY
The main problem (up to now) is that the microcontroller spends a lot of time to draw the graphical LCD. When I improve this part of the code, the
oscilloscope will measure up to 7.5kHz that is the half of 15kSPS (kilo Samples Per Second). 15kSPS is the maximum hardware limit that the ATmega32
ADC (Analog to Digital Converter) can measure.
Perhaps these variables make more sense in the software you're using?
I want to build one but I can't find the DEM128064A graphical LCD, I've searched on many place i go to buy my electronics parts the only place I found LCDs
was at DigiKey and they only sell Optrex LCDs, looking from the specs you put in your Instructable the closer I came to, is this one :
http://www.optrex.com/products/partdetail.asp?PartNumber=F-51852GNFQJ-LG-ACN
could you, please, send me all the Technical Specifications of the DEM128064A or an equivalent of it?
Every 128x64 pixel graphical LCD which is based on KS0108 controller is ok.
Try to make a search on google for LCDs that are based on KS0108 controller.
This is one site KS108 LCDs KS108 LCDs
DEM128064A has back light but I have reduced the light through a resistor because of high power consumption.
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/
lordofthedonuts says: Jan 19, 2008. 12:32 PM REPLY
Thank you very much! As soon as I get the cash I'll make one.
http://www.instructables.com/id/Low-speed-AVR-oscilloscope/