How to make a LED ring with Raspberry Pi Pico board
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/254.jpg?resize=1024%2C576&ssl=1)
Hello and welcome back. In this project, we will learn how to make a LED ring with a Raspberry Pi Pico board. For that, I used 20 LED bulbs and 6 light patterns. You can assemble this project on the dot board. But, I designed a PCB for this project. For that, I have selected the JLCPCB Company. Through this company we can get quality PCBs for 2$ and below we will learn how to order this PCB step by step.
- You can put any other light patterns into this project. But I used six light patterns.
- If you want to buy this product, you can get it from our store.
Ok, let’s do this project step by step. The required components are given below.
- Raspberry Pi Pico board x 1 — Our Store / Amazon
- LED bulb x 20 — Our Store / Amazon
- 180 Ohm Resistor x 20 — Our Store / Amazon
- 2 Pin Terminal x 1 — Our Store / Amazon
- Female header pin x 2 — Our Store / Amazon
- PCB (Printed Circuit Board)
Disclosure: These Amazon links are Affiliate links. As an Amazon Associate, I earn from qualifying purchases.
Step 1
Firstly, identify these components.
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/2-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/6-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/5-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/4-2.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/3.jpg?resize=900%2C505&ssl=1)
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/7-1.jpg?resize=900%2C505&ssl=1)
Step 2
Secondly, let’s learn how to order PCB with JLCPCB company. Follow the below steps for that.
- First, go to the JLCPCB website and create a new account.
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/31.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/32.jpg?resize=900%2C505&ssl=1)
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/33.jpg?resize=900%2C505&ssl=1)
- Next, sign in to your account and click the “Order now” button.
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/34.jpg?resize=900%2C505&ssl=1)
- And then, upload the PCB Gerber file and change the specifications as you like. I changed the color to red.
- PCB Gerber file — Download
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/26.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/27.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/28.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/29.jpg?resize=900%2C505&ssl=1)
- Now, click the save to cart button. After, click the secure checkout button.
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/30.jpg?resize=900%2C505&ssl=1)
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/35.jpg?resize=900%2C505&ssl=1)
- Next, enter your address and select the shipping method. Finally, pay for this order using your debit card, credit card, or PayPal account.
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/36.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/37.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/38.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/39.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/40.jpg?resize=900%2C505&ssl=1)
- OK, now you can get it within 4-9 days. Because I used FedEx delivery method. It depends on your delivery method.
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/7-2.jpg?resize=900%2C505&ssl=1)
Step 3
Thirdly, let’s solder the components one by one.
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/8-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/10-1.jpg?resize=900%2C505&ssl=1)
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/12-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/13-1.jpg?resize=900%2C505&ssl=1)
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/15-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/16-1.jpg?resize=900%2C505&ssl=1)
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/17-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/18-1.jpg?resize=900%2C505&ssl=1)
Step 4
Now, connect the Raspberry Pi Pico board to the PCB and connect it to the computer.
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/19-1.jpg?resize=900%2C505&ssl=1)
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/20-1.jpg?resize=900%2C505&ssl=1)
Step 5
Next, upload the python script to the Raspberry Pi Pico board. It’s as follows.
- Full details of this project — Download
#Import the library files
from machine import Pin
import time
#Pattern one
def patternOne(times):
for a in range (0,times):
for i in range(2,22):
Pin(i,Pin.OUT).value(1)
time.sleep(0.07)
Pin(i,Pin.OUT).value(0)
#Pattern two
def patternTwo(times):
for a in range(0,times):
for i in range(2,22):
Pin(i,Pin.OUT).value(1)
time.sleep(0.05)
Pin(i,Pin.OUT).value(0)
for x in range(21,2,-1):
Pin(x,Pin.OUT).value(1)
time.sleep(0.05)
Pin(x,Pin.OUT).value(0)
#Pattern three
def patternThree(times):
for a in range(0,times):
for i in range(2,22):
Pin(i,Pin.OUT).value(0)
time.sleep(0.05)
Pin(i,Pin.OUT).value(1)
for x in range(21,2,-1):
Pin(x,Pin.OUT).value(0)
time.sleep(0.05)
Pin(x,Pin.OUT).value(1)
#Pattern four
def patternFour(times):
for a in range(0,times):
for i in range(2,22):
Pin(i,Pin.OUT).value(1)
time.sleep(0.05)
for x in range(21,0,-1):
Pin(x,Pin.OUT).value(0)
time.sleep(0.05)
#Pattern five
def patternFive(times):
for a in range(0,times):
for i in range(2,22):
Pin(i,Pin.OUT).value(0)
time.sleep(0.05)
for x in range(22,1,-1):
Pin(x,Pin.OUT).value(1)
time.sleep(0.05)
#Pattern six
def patternSix(times):
for a in range(0,times):
for i in range(2,22):
Pin(i,Pin.OUT).value(1)
Pin(i+1,Pin.OUT).value(1)
time.sleep(0.05)
Pin(i,Pin.OUT).value(0)
Pin(i+1,Pin.OUT).value(0)
for x in range(21,2,-1):
Pin(x,Pin.OUT).value(1)
Pin(x-1,Pin.OUT).value(1)
time.sleep(0.05)
Pin(x,Pin.OUT).value(0)
Pin(x-1,Pin.OUT).value(0)
#Call the functions
while True:
patternOne(3)
patternTwo(3)
patternThree(3)
patternFour(3)
patternFive(3)
patternSix(3)
- Now, copy and paste this script on the Thonny IDE and save it as “main.py” on the Raspberry Pi Pico board. Finally, click the Run button.
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/21-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/22-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/23-1.jpg?resize=900%2C505&ssl=1)
![](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/24.jpg?resize=900%2C505&ssl=1)
Ok, now you can enjoy this project. The full video guide is below. So, see you in the next project or tutorial.
![How to make a LED ring with Raspberry Pi Pico board](https://i0.wp.com/srituhobby.com/wp-content/uploads/2022/10/1-1.jpg?resize=900%2C505&ssl=1)
How to make a LED ring with Raspberry Pi Pico board