To check single LED blink using Raspberry Pi Pico
Required Components
- Led _1 no
- Resister 330Ω _1 no
- Raspberry Pi Pico board _1 no
- Connecting wires _1 set
Circuit
Steps
- Make sure the components are working properly.
- Connect 330 Ω Resistor to the LED Anode (+) pin and LED cathode (-) pin to Gnd.
- Connect Raspberry Pi Pico pin 28 to the LED anode pin.
- Check the Python program.
- Check the circuit connections.
- Run the Python program.
Python Program
from machine import Pin
import utime #timer
led1=Pin(2,Pin.OUT)
while(True):
led1.value(1)
utime.sleep(2) #delay of 1 sec
led1.value(0)
utime.sleep(2)