0
0 items
Rp0
No products in the cart.
Last Offers
Rp50.000 Rp45.000
Rp45.000 Rp37.500
Rp3.015.000 Rp2.950.000
Rp565.000 Rp550.000
Rp685.000 Rp600.000
Raspberry Pi Pico / Pico W Sensor Shield Developer Board
Shield ESP32 Wroom DevkitC V4 38PIN
Seeed Studio Industrial pH Meter / Sensor RS485 Modbus
Arduino Ethernet Shield 2
Arduino Mega 2560 Rev3 ATmega2560
Buzzer Dengan Raspberry Pi Pico
Persiapan Bahan #
– Raspberry Pi Pico / Pico W
– Buzzer
– Breadboard
– Push Button
– Kabel Jumper Male to Male
– Kabel Micro USD
– Aplikasi Thonny IDE
Wiring Buzzer Dan Push Button Ke Raspberry Pi Pico #
– connect the longer end (+) of the buzzer to GP11 (=GPIO 11)
– connect the shorter end (-) of the buzzer to a GND (ground) pin
– connect one end of the push-button to GP3 (=GPIO 3)
– connect the other end of the push-button to a GND (ground) pin
Sample Code #
from machine import Pin
import time
button = Pin(3, Pin.IN, Pin.PULL_UP)
buzzer = Pin(11, Pin.OUT)
while True:
if button.value() == 0:
print("button pressed")
buzzer.value(1)
time.sleep(1)
else:
buzzer.value(0)
Hasil #
Updated on 11/01/2023
Join our newsletter for £10 offs
Get our emails for info on new items, sales and much more.
Register now to get latest updates on promotions & coupons. Don’t worry, we not spam!
Völogi deledes ponade eujäjurtad
Autoseligen syr. Nek diarask fröbomba. Nör antipol kynoda nynat. Pressa fåmoska. Aposkop redelingar nede, sektigt.
Need Help?
Customer Service
Store Information
- -5% for all order in this week Shop now
- Free delivery for all orders over $200