LED Chaser Using Raspberry Pi

4,114

29

4

Introduction: LED Chaser Using Raspberry Pi

About: Technology enthusiastic, crazy about embedded system, love Arduino and raspberry pi.

Hello everyone

Today I will make a LED chaser using raspberry pi.

Step 1: Things That Are Required

1) Raspberry pi

2) 10x LED's

3) Breadboard

4) Jumper wires

Step 2: GPIO Pins

Before beginning lets get some idea about GPIO pins in raspberry pi.

GPIO stands for General-Purpose Input/Output. These pins are a physical interface between the Raspberry pi and the outside world.

There are 40 pins on the Raspberry pi (26 pins on previous models), and they provide various different functions.

Step 3: Circuit Diagram

Step 4: Python Code

I have used nano editor to write the code.

$ nano chaser.py

write the code then press ctrl + x and save the code.

Run the code using

$ python3 chaser.py

To stop the execution

ctrl + c

1 Person Made This Project!

Recommendations

  • Clocks Speed Challenge

    Clocks Speed Challenge
  • Toys & Games Contest

    Toys & Games Contest
  • Big vs Small Challenge

    Big vs Small Challenge

4 Comments

0
mrworth
mrworth

3 years ago

I agree...this really should have resistors...

0
nigel.trewartha
nigel.trewartha

4 years ago

Hello,

I think one ought to use a 330 Resistor on each LED to limit current.

0
Adil95
Adil95

Reply 4 years ago

Yes, you can use a resistor.

0
nigel.trewartha
nigel.trewartha

Reply 4 years ago

That should be a must...otherwise too much current flows from the GPIO.