Resource icon

OLED Oscilloscope ATtiny85 2025-01-29

No permission to download
Bandwidth is DC to 5KHz. Max sampling rate is 50,000 samples per second. An oscilloscope with these specifications has limited use, but it is a good exercise in using OLED display. Software trigger starts the sampling when the input signal crosses zero. Input tolerates 5V max.
ATtiny85 or ATtiny45 can be used. Oled is 0.96" I2C SSD1306 driver.
The trace is constructed from 64 dotes (sampling). The ADC reads the input at resolution of 10 bits. The MSB 8 bits are used and the dote position is calculated.
SWEEP sets the X timing by changing the delay between samplings.
The code searches for rising signal and triggers the beginning of the trace.
ATTINY is programmed using Arduino IDE and Arduino as ISP. Use these instructions https://gist.github.com/ij96/804e731bd31dbb95b2b043e93c79ceab with the difference of burning bootloader with setting "Clock Source 4MHz internal".
  • oled_scope2.jpg
    26.8 KB · Views: 22
Author
zahwi
Downloads
0
Views
159
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from zahwi

Cookies are required to use this site. You must accept them to continue using the site. Learn more…