Make your own DIY oscilloscope for £4 - Raspberry Pi PICO Project

Описание к видео Make your own DIY oscilloscope for £4 - Raspberry Pi PICO Project

Make your own DIY oscilloscope for £4

Amazon sell full kits if you are starting from nil:
UK: https://amzn.to/3OxvpHn
USA: https://amzn.to/39Nvc3u
Admittedly that might cost you more than the $5 that route, but you will have a nice little setup for experiments!

Python Source Code is included here, but for performance, switch to the Arduino stack:

from machine import Pin, I2C, PWM
from ssd1306 import SSD1306_I2C
import utime

#lets go!
button = Pin(10, Pin.IN, Pin.PULL_DOWN)

pwm = PWM(Pin(12))
pwm.freq(100) #1k
pwm.duty_u16(32767)

adc_read = machine.ADC(26) #A read takes 2us therefore 500ks/s!

i2c = I2C(0,sda=Pin(0),scl=Pin(1),freq=40000)
oled = SSD1306_I2C(128,32,i2c)

oled.fill(0)
oled.text("Ready!",0,0)
oled.show() #update the screen!

coefficient = 3.35 / 32767

while True:
reading = adc_read.read_u16()
calcvoltage = reading * coefficient
print("V", calcvoltage)

if button.value():
screenstuff = str(calcvoltage)
oled.fill(0)
oled.text(screenstuff,0,0)
oled.show() #update the screen!

utime.sleep(0.01)


Come chat with me on discord   / discord  

See my recommendations on Amazon: https://www.amazon.co.uk/shop/backoff...

If you would like to buy me a coffee or support the channel you can do so via Patreon at   / backofficeshow  

I do have some bits and pieces on my web store at http://backofficeshow.com

Please note: As an Amazon Associate I earn from qualifying purchases. As such links to Amazon products within this video may fall under this. Thanks to all of you who use these links and help support the channel - you are fantastic!

Thanks you lovely people, and keep on tinkering!

Youtube Chapters
0:00 Introduction

Комментарии

Информация по комментариям в разработке