|
|
Raspberry Pi Pico |
x 1 | |
|
|
RGB LED |
x 1 | |
|
|
10K POT |
x 3 |
Raspberry Pi Pico - RGB LED Color Picker
I had made a simple RGB color mixer using Raspberry Pi Pico. Let's see how I made it.
Hardware Components
- Raspberry Pi Pico x 1
- RGB LED x 1
- 10K POT x 3
- Wires
Software Components
- MicroPython
Setting up Raspberry Pi Pico
- Download the micropython firmware from https://micropython.org/download/rp2-pico/
- On the Raspberry Pi Pico, Press the BOOTSEL button and hold it while you connect the other end of the micro USB cable to your computer. This puts your Raspberry Pi Pico into USB mass storage device mode.
- Drag and drop the downloaded .uf2 firmware
Connections
Make the connections as shown below.
POT1 ->GPIO26
POT2 ->GPIO27
POT3 ->GPIO28
LED_Pin1 -> GPIO14
LED_Pin2 -> GPIO13
LED_Pin3 -> GPIO12

Code
You can find the code on my GitHub repository.
Link to the Project repo: https://github.com/Rahul24-06/RGB-LED-Color-picker---Raspberry-Pi-Pico
#RGB - Red(14), Green(13), Blue(12)
from machine import Pin, PWM, ADC
pwm1 = PWM(Pin(14))
adc1 = ADC(Pin(26))
pwm2 = PWM(Pin(13))
adc2 = ADC(Pin(27))
pwm3 = PWM(Pin(12))
adc3 = ADC(Pin(28))
pwm1.freq(1000)
pwm2.freq(1000)
pwm3.freq(1000)
while True:
duty1 = adc1.read_u16()
pwm1.duty_u16(duty1)
duty2 = adc2.read_u16()
pwm2.duty_u16(duty2)
duty3 = adc3.read_u16()
pwm3.duty_u16(duty3)
Working
We finally did this project successfully.
If you faced any issues in building this project, feel free to ask me. Please do suggest new projects that you want me to do next.
Give a thumbs up if it really helped you and do follow my channel for interesting projects. :)
Share this video if you like.
Github - https://github.com/Rahul24-06/
Happy to have you subscribed: https://www.youtube.com/c/rahulkhanna24june?sub_confirmation=1
Thanks for reading!
Raspberry Pi Pico - RGB LED Color Picker
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by rahulkhanna
-
Automatic Plant Watering System using Raspberry Pi Pico
Here, We are going to make an Automatic Watering System using Raspberry Pi Pico, which waters the pl...
-
Rock Paper Scissor AI
Idea ??After working on various projects on different domains, I planned to make a fun project, and ...
-
Raspberry Pi Pico - RGB LED Color Picker
I had made a simple RGB color mixer using Raspberry Pi Pico. Let's see how I made it.Hardware Compon...
-
-
AEL-2011 Power Supply Module
329 0 1 -
AEL-2011 50W Power Amplifier
301 0 1 -
-
-
Custom Mechanical Keyboard
570 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
234 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
239 0 1 -
-
-







