BASIC4MCU | 통신 | USB | Simple AVR digital scope
페이지 정보
작성자 키트 작성일2017-09-01 11:20 조회1,723회 댓글0건본문
![]()
Simple AVR digital scope
Introduction:
This is probably the simplest possible digital oscilloscope. It allows both the single measurement and real-time measurement and external and internal triggering. This scope is suitable for measuring everything from very slow phenomena (period to 8 days) after the frequency in the tens of kHz. The oscilloscope is equipped with a PAL TV output (composite video). To view, use any TV with Composite video input (CRT, LCD, ...).
Schematic:
On Fig. 1 you can see the schematic of this simple scope. The basis of the digital oscilloscope is integrated circuit IO1 - Atmel AVR microcontroller ATmega88, ATmega88A, ATmega88P or ATmega88PA. Program is free to download below. The picture below is also shows the setting of the configuration bits. IO1 circuit is clocked at its maximum frequency of 20 MHz, obtained from an external oscillator with a crystal or ceramic resonator. The measurement utilizes the internal analog-to-digital converter (ADC). The measured signal enters the ADC0 input (pin 23). As input for external trigger PCINT18 (pin 4) is used. Keyboard consisting of 5 buttons is connected to the ports PC1...5 The circuit uses an internal voltage reference, so the AREF pin is connected only to a blocking capacitor C4. PAL output signal is generated using a simple 2-bit digital-to-analog (DA) converter made up of R1, R2 and R3 connected to PD5 and PD6. The converter generates four voltage levels, corresponding to the level of synchronization, black, gray and white. In case of wrong signal level can be adjusted R3 or R1 and R2. However, it is necessary to maintain approximately the relation R1 = 2x R2. Video frame rate is 50Hz and line frequency is 15.625 kHz. White level corresponds to the voltage around 1V. Capacitor C3 should be placed as close to pins 7 and 8 and C5 closest to pins 20 and 22 The circuit is powered from a supply of 5V +/- 10%.
Parameters:
The time base is in the range of 50us - 6h / div chosen in steps. Measurement time is up to 8 days. Total 960 samples are scanned. Screen resolution with frame and OSD: 242 x 264, resolution of measurement window: 240 x 256, measuring area resolution: 960 x 256 (measuring area can be scrolled). Sensitivity is 0.2 V / div. The divider can obtain additional levels of vertical sensitivity.
Control:
Use the up and down buttons to set the time base in steps from 50us/div to 6h/div. Use the left and right to scroll the measuring area. At the bottom of the screen theres the OSD display. It contains a slider showing the actual scroll position. Next to it there is displayed the current time base. Pressing TL1 starts single measurement. Ongoing measurement is indicated by an arrow on the OSD. After the one-time measurement arrow disappears. If you connect the external trigger input, the circuit waits for the leading edge of the external trigger input after pressing TL1. While waiting the symbol "E" (external trigger) appears on the OSD. Rising edge starts the measurement. Hold down TL1 longer than 1 second to start measuring in real time. This is indicated by a triangle (Play symbol) on the OSD. In real-time mode, the trace on the screen is constantly refreshed. Real-time mode can be stopped by briefly pressing TL1. During the measurement, the slider also shows the measurement position indicator (When the short time base set, it may not be visible, as well as an arrow indicating an one-time measurement). Long press of the up, down, left and right allows quick transfer between different time bases and fast scrolling.
The program for free download:
Source code in assembler (ASM)
Compiled HEX file (4 606 Bytes)I can send you the programmed microcontroller. For more info click here.
Fig. 1 - Schematic of the siplmest scope with AVR ATmega88(P)(A).
Configuration bits settings.
AVR scope tested in the breadboard.
AVR scope connected to a small CRT tv. The signal from a remote control, 2ms / div.
Slow measurement, signal made by a pot, 1s / div
AVR scope connected to an LCD tv, time base 6h / div, single shot - waiting for external trigger.
Real time display, 5ms / div, showing 50Hz sine wave.
ADD VIDEO HERE !!!
Video
Added: 11. 11. 2012
homeNEWS:
-Website moved to from "danyk.wz.cz" to "danyk.cz". Please fix your links - the redirect from old domain probably won't work forever. Thank you.
-English version of this website is still under construction. Some articles are available in Czech only. They are in italic
JUST STARTED: Find your IP address
JUST STARTED: Reverse phone number lookup - find who calls you
JUST STARTED: Online unit conversion
JUST STARTED: Online cloth & shoe size conversion
JUST STARTED: A bit of mathematical insanityELECTRONIC SCHEMATICS AND INSTRUCTIONS:
3 phase arcs with 9 MOTs
High voltage:
Multi-mini High Voltage Transformer
Jacob's Ladder with 4 MOTs
6 MOTs two phase HV supply
HV supply with Integrated driver ignition coil
Adjustable stabilized switching high voltage supply 7-55kV
3-phase high voltage supply with 6 MOTs
Single MOT resonance arcs
The simplest power supply for Tesla coil with one MOT
Tesla Coil power supply with two MOTs (4200 Vac 0.7 A)
Two MOTs high voltage power supply (4200 Vac 0.9 A)
Stun gun (taser)
120kV Multiplier
80kV supply with TV transformer and multiplier
Mains voltage arcs
Kirlian photography
Plasma in a jar (fusor)
Marx generator 240 000 V
Jacob's ladder with 12kV 300W supply
40kV DC high voltage supply
Simple 60kV DC high voltage supply
Mains operated 20kV switched power supply
High frequency high voltage supply
Homemade plasma globe (ball)
Homemade plasma globe (ball) with EMI shield
Miniature high frequency high voltage supplyTC - tesla coil:
Spark gap Tesla coil (SGTC):
Mini SGTC - Miniature spark gap Tesla coil
SGTC I. - Small Tesla coil
SGTC II. - Small Tesla coil II
SGTC III. - Middle Tesla coil
SGTC IV. - Bigger Tesla coil
SGTC V. - My biggest Tesla coil
Solid state Tesla coil (SSTC, ISSTC):
SSTC I. - Solid State Tesla Coil
SSTC II. - Solid State Tesla Coil with ion motor
SSTC III. - Transistor tesla coil with 50Hz/100Hz/DC operation and ion pendulum (propeller)
SSTC IV. with IGBT
ISSTC I. - Single switch SSTC with interrupter
ISSTC II. - SSTC with interrupter
ISSTC III. - Simple low supply voltage ISSTC
Vacuum tube Tesla coil (VTTC):
Plasma flame - high current VTTC
Audio VTTC - Audio modulated vacuum tube tesla coil
VTTC I. - Big vacuum tube tesla coil with GU81
VTTC II. with RE025XA (4CX250B, SRL460)IGBT - high power supplies:
Switched 4kV 2000W supply with IGBT
Switched 40kV 1500W High voltage supply with IGBT and 2 LOPT's
IGBT halfbridge 20-200kHz with overload protection
High voltage Tesla coil supply with IGBT
Push-pull inverter with BUP213 IGBTSwitch mode power supplies (SMPS):
Simplest switching power supply ever with TNY263 - TNY268
3.4V 2.5A supply with optocoupler
14.5V (8 - 18V) 0.4A supply with optocoupler
12V 5A switched power supply
12V and 90V switched power supply with UC3842
Simple non-regulated supply 2x 35V 350W for audio amplifier
Switched power supply 2x 35V 350W
Welding inverter up to 100A
Electronic halogen transformer
Switched current power supply for 1W - 5W LED diode
High power adjustable switching power supply (SMPS) 3-60V 40A
Single transistor switching supply without optocoupler
Very high current power supply (spot welder or car engine starting supply)Voltage converters:
12V / 325V 150W DC/DC converter
Universal DC / DC converter
12V / 15-21V car inverter for notebook
Multiphase synchronnous buck (step-down) converter
12V / 230V 50Hz square wave inverter with 555
12V / 230V 50Hz square wave inverter with IR2153
12V / 230V 50Hz modified sine wave inverter
Switching (transformerless) 12V / 230V 150W modified sine wave inverter
Single cell (1.2 or 1.5V) LED inverter (Joule thief)
12V fluorescent tube inverter 4 - 65W with high efficiency
Electronic ballast for fluorescent tubes 8 - 144W
CCFL inverterInduction heating:
Induction heating I.
Induction heating II.
Induction heating III. with IGBTsLasers:
Laser diodes from CD-RW drives can cut and burn!
Laser diode from CD-RW igniting matches
Powerful laser diodes from DVD-RW drive
1W 808nm infrared laser diodes
1W 445nm blue diode laser
Helium-neon (HeNe) lasersTransmitters:
1W 7MHz (40m) AM Transmitter
5W 7MHz (40m) AM Transmitter
5W 14MHz (20m) AM Transmitter
1.5W 88-108Mhz FM Transmitter
88-108 MHz FM covert listening device (bug)
Single transistor Miniature FM transmitter with VCO
Simple television transmitterRadio receivers:
Simple vacuum tube audion
Simple transistor audionAmplifiers:
Vacuum tube preamplifier
Stereo vacuum tube audio amplifier
Stereo vacuum tube amplifier 2x 5W
Vacuum tube amplifier in class A
Simple audio amplifier 2x 100W RMSVideotechnic:
Vacuum tube monitor with 8LO29M CRT
Vacuum tube monitor with 13LO3I CRT and soundInsect and animals:
Ultrasonic insect and rodent repellent
Powerful ultrasonic repeller of insects, rodents and martens with periodicly changing frequency
Electric insect zapper (killer)
Electric insect zapper (killer) II.
Electric fenceDJ's:
LED strobe light (stroboscope)
Stroboscope
Stroboscope with oscillator
Simplified stroboscope with oscillator
Stroboscope with optoisolated external input
Various sound generators and sirens
Simple audio mixerPC accessories:
PC remote controlling with any remote controller
IrDA infraport for PC with TFDU4100 (motherboard connected)
Simple joystick / gamepad for PCIllegal (never try this at home):
Telephone wire tappingFor household:
Infrared ON-OFF remote control
Remote control ove
댓글 0
조회수 1,723등록된 댓글이 없습니다.