Raspberry Pi Pico வை பயன்படுத்தி ஒரு LED ஐ ஒளிர வைப்பது
Required Components
- Led _1 no
- Resister 330Ω _1 no
- Raspberry Pi Pico board _1 no
- Connecting wires _1 set
Circuit
Steps
- நாம் பயன்படுத்தும் உபகரணங்கள் சரியாக வேலை செய்கிறதா என்பதை உறுதி செய்து கொள்ளவும்.
- 330 Ω மின்தடையை LED உடன் இணைக்க வேண்டும்.
- LED இன் அடுத்த இணைப்பை ground உடன் இணைக்க வேண்டும்.
- Python program ஐ சரி பார்க்க வேண்டும்.
- மின்சுற்றை சரி பார்க்க வேண்டும்.
- 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)