Download EARTH PEOPLE TECHNOLOGY (EPT), Inc

Transcript
Fast Arduino Oscilloscope Project User Manual
the Start button. Then select the On/Off button and the scope is displaying the analog
signal.
Here the Function Generator is providing a sweep of sine waves from 10 Hz to 250 Hz.
Set the Function Generator to produce a 1KHz Sine wave with 4.5 Volt amplitude. For
the trigger voltage level input, we use a lab supply. Set this supply up to 3 Volt DC.
This will give us a dc threshold which the analog signal must cross in order for the
scope to display the waveform.
6.1.1 Oscilloscope Description
The EPT Fast Arduino Oscilloscope has the same functions as a full featured scope.
These features include:
•
Trigger Settings –Rising, Falling, and Toggle
•
Horizontal Time base selection
•
Vertical Scaling
•
Voltage Amplitude scaling (Grab the slider and you can scale the voltage up or
down)
•
Time scaling (The slider lets you zoom into the signal to see details)
Most of these features are implemented with sliders. The sliders make it easy to select
from multiple values. Once the value is selected by the slider, an underlying event in the
C# code, causes the UnoProLogic to transmit a command and the value to the
Aruino/Girino code.
The Fast Arduino Scope does have its limitations. It is most notably limited by the
ATMega 328 microcontroller. The chip uses an ADC which we select the 8 bit mode to
increase the throughput speed.
In the block diagram of the internal ADC circuit of the 328 microcontroller, we can see
the circuit functionality. The Source 1 input is from our analog signal to be displayed.
The signal is selected by a multiplexor and is directly applied to the Conversion Logic.
This logic is directly controlled by the ADC clock. Changing this clock value changes
the amount of time between conversions. And it ultimately controls how fast a signal
can be applied at the analog input.
The ADC has eight selectable clock inputs to drive the conversion of analog to digital.
The Horizontal Slider controls which of the prescaler values is selected. These values
determine what the ADC clock frequency is. These frequencies are:
 125 KHz
 250 KHz
 500 KHz
 1,000 KHz
 2,000 KHz
 4,000 KHz
 8,000 KHz
 16,000 KHz
Page
86