Objective: This is simple Raspberry Pi project to blink LED. When you execute this program with required setup then you will see that the the LED is blinking ON and OFF for one second.
Material Required:
Material Required:
- Raspberry Pi
- LED Light
- 1k ohm Resistance
- Jumper Wires
- Bread Board
Circuit Diagram:
Raspberry Pi |
Python Program:
import RPi.GPIO as GPIO
import time
GPIO_OUT=5
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(GPIO_OUT,GPIO.OUT)
while True:
GPIO.output(GPIO_OUT,1)
time.sleep(1)
GPIO.output(GPIO_OUT,0)
time.sleep(1)
Very nice Vinayak Sir
ReplyDelete