Oscilloscope Arduino Processing
Oscilloscope Arduino Processing
Oscilloscope Arduino-Processing
by RogerioBego
If you want a cheap oscilloscope to learn what it is or to play with, follow the steps below:
1. First, if you do not already have the Arduino IDE installed, install it from the site Arduino: click here
2. Install the "TimerOne.h" library for the Arduino IDE, following the steps bellow
In the Arduino program click on "Sketch" (see the picture)
"Include Library ..."
"Manage Libraries ..."
On the line "Type: 'all' Topic: 'all'" has a blank search field , type "TimerOne".
(Information about the library will appear )
click over that text and the "Install" button will appear.
click "Install"
Restart the program
1. Download and unzip the Arduino program from this link: (oscilloscope_arduino.ino)
2. Connect the Arduino to the computer via USB port
3. Run the Arduino IDE;
4. Open the downloaded program "oscilloscope_arduino.ino"
5. Adjust the COM port correctly (see picture)
6. Upload the program to Arduino.
1. Download and unzip the Processing program to run on the computer. Choose the correct one
below:
- windows 32
- windows 64
- linux 32
1. You already have the oscilloscope program running and the Arduino connected to the computer by
USB port. Now you have to connect to each other by "serial".
2. In the "Configurar a serial" (Configure the Serial) box, click "Serial" until the COM where the Arduino
is connected appears.(if it did not appear, click " * " to update)
3. Click "off" to switch to "on"
4. If everything is correct, the oscilloscope will do a first reading showing the noises because the
channels A0 (ch-0), A1 (ch-1), A2 (ch-2) and A3 (ch-3) are not connected to any signal.
5. In the "Amostragem" (Sampling) box, click "varias" (various) so that the reading is continuous.
Step 6: Connect the Output (~10) to Input (A0) and (~9) to (A1)
With wires connect the Arduino's digital output (~10) to analog input (A0) and digital output (~9) to
input (A1).
You can adjust the values on that box dragging the edge or clicking around the control.
You can find out the frequency that the flashlight is blinking using a LDR and a resistor (see the picture)
To find out the RPM of a fan use the circuit with LDR, resistor and a flashlight (not blinking).
Using the frequency value shown by the oscilloscope, apply the formula of the picture.
You can see the IR signal from remote control using the phototransistor TIL78.
Make the circuit of the picture, then follow the steps bellow:
The "medir res./cap." (measure res./cap.) box is for measuring values of resistors and capacitors, but it will only
work if you make the circuit of the picture.
That function has the hability to discover by itself if the component connected is a capacitor or a resistor, and to
choose the better result using 3 scales (low, middle or high values)
You can download the entire project directly from the you had any trouble to follow the steps.
GitHub site clicking here
I will apreciate any help to develop that project.
Watch the video on Youtube (turn on closecaption Programmers, users, curious, dreammers, etc.., will
and translate to english!) be welcome! ;)