Oscilloscope/README.md

32 wiersze
1.2 KiB
Markdown
Czysty Zwykły widok Historia

2021-10-30 00:03:43 +00:00
# Oscilloscope Serial
2021-10-30 00:24:35 +00:00
2021-10-30 21:03:06 +00:00
A simple oscilloscope application that reads the values at serial port generated by an Arduino board and based on the value of the analog pin A0
2021-10-30 00:24:35 +00:00
<p align="center"><img src="./images/img1.png" width="600"><br>
<i>Main window</i><br><br></p>
2021-10-30 21:33:57 +00:00
<p align="center"><img src="./images/img2.png" width="300"><br>
<i>Settings</i><br><br></p>
2021-11-01 18:42:35 +00:00
It is optimized for AVR ATmega MCUs with 13μs sampling resolution. For other boards the resolution is 200μs
Flash _oscilloscope_. In the Oscilloscope app configure the serial port. By default 1000000bps, 8bits, no parity, 1 stop bit and no flow control. Interval is 13μs for AVR ATmega and 200μs for other MCUs
2021-10-30 21:39:02 +00:00
You can connect any signal up to 5 volts to the analog pin A0. For signals over 5V a voltage divider is needed.
2021-10-30 21:33:57 +00:00
2021-10-30 22:03:51 +00:00
For ATmega boards it is defined a PWM signal at pin OC1B. To test the Oscilloscope app connect pin OC1B to pin A0
2021-10-30 21:33:57 +00:00
Adjust PWM signal with PWM_FREQ and PWM_DUTY. Default is 100Hz, 50% duty.
2021-10-30 22:03:51 +00:00
Pin OC1B location:
2021-10-31 04:15:08 +00:00
- Uno: pin 10 (PB2)
- Leonardo: pin 10 (PB6)
- ATmega2560: pin 12 (PB6)
2021-11-01 18:44:48 +00:00
Find binaries [here](https://github.com/dgatf/Oscilloscope/tree/main/binaries)
2021-11-01 18:42:35 +00:00
Or build from sources:
2021-10-30 21:33:57 +00:00
- install qt
- cd to src/qt folder
- qmake
- make