https://github.com/devel0/iot-arduino-scope
simple oscilloscope opengl using arduino as adc input through usb serial
https://github.com/devel0/iot-arduino-scope
arduino iot linux opengl scope
Last synced: about 2 months ago
JSON representation
simple oscilloscope opengl using arduino as adc input through usb serial
- Host: GitHub
- URL: https://github.com/devel0/iot-arduino-scope
- Owner: devel0
- License: mit
- Created: 2018-07-28T23:04:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-13T02:54:24.000Z (almost 8 years ago)
- Last Synced: 2025-04-02T00:37:38.415Z (about 1 year ago)
- Topics: arduino, iot, linux, opengl, scope
- Language: C++
- Homepage:
- Size: 1.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arduino-scope
simple oscilloscope opengl using arduino as adc input through usb serial
- Arduino ADC to convert signal to digital, then serial
- 115kbaud =~ 11.5kb/s ( need at least 2 byte for a freq detect, ie. max freq detectable about 11.5khz/2 )
- C++ opengl program to display waveform
## keys
- *space* : pause display
- *v/V* : decrease/increase vertical factor
- *h/H* : decrease/increase horizontal factor
- *up/down* : delta vertical
- *p* : toggle point mode
- *t* : toggle text info
## flash arduino
- pre: install [arduino ide](https://www.arduino.cc/en/Main/Software)
- open sketch `arduino-scope/arduino-scope.ino` and flash firmware
- tools/board ( eg. arduino nano )
- tools/port
- sketch upload
## debug and execution
- pre: install [vscode](https://code.visualstudio.com/) and suggested c++ extension asked when open the folder
```
code .
```
- breakpoints works thanks to `gdb` debugger ( `-g` switch to gcc - see Makefile )
- tune serial port in `launch.json` "args"
- hit F5 to start
## dev notes
- an ethernet udp branch exists but no increase in freq rate because bottleneck still exists in ADC conversion
## comparision
| freq | sine | square |
|---|---|---|
| 460hz |  |  |
| 1.57khz |  |  |
| 3.26khz |  |  |
| 4.44khz | N/A |  |