Control LED Using PWM on Raspberry Pi Pico

preview_player
Показать описание
Control LED Brightness Using PWM On Raspberry Pi Pico.

Pulse Width Modulation, or PWM, is a technique for obtaining analog input and convert it into digital output. In this video, the analog input from the potentiometer is used to control the brightness of the LED.

⌨️Software :
1️⃣ Thonny 3.3.3

🔧Hardware:

👨🏻‍💻👩🏻‍💻
Join Telegram Trust Me I'm A Maker

🧕👩‍🎓👨‍🎓
Are you a student? Register here:

👨🏻‍🏫👩🏻‍🏫
Are you a teacher? Register here:

Suad Anwar,
Cytron Technologies.
Рекомендации по теме
Комментарии
Автор

Exalted demo ( TIP: room lights need to be lower to see the LED better)

Easy to follow instructions and you kept it short ( most instructional videos are too long)

Hope to see more videos like this one 🖖🏼

NewAgeDIY
Автор

Awesome video, good overview of using a Pico for pwm.

paulramasco
Автор

Im your new fans, love your video tutorial, last week watch your video learn how to setup octoprint with Rasp Pi ..thank you so much for your effort

AJayTheStageArtist
Автор

its good explanation of pwm...pi pico board is one thing common with arduino an that is i myself think when u r using high speed boards like 2Ghz above then stm32 is the best

nelsondarwinpaktech
Автор

What is the value of potentiometer you used

virenparmar
Автор

Thank for your help. But i want to coding this project by using C/C++ on VScode (Linux Enviroment), would you can help me or show the guideline...
Br

covuvan
Автор

isn't it too high using 330ohms for LED on 3.3v mcu? if LED Vf 2v, you get only 4mA.. CMIIW.. thanks..

apratube
Автор

Hello, I want to control 6 servo motors with Raspberry Pi Pico. Is this possible? How many PWM pins are on Raspberry Pi Pico?

ruchankurt
Автор

I have a dso with a frequency of 100 MHz, and I use Thonny IDE and Micro Python with a Rp2040 system clock of 125 MHz. I also know the pwm frequency, which is 62.5 MHz.
I have to make a pwm in an RP2040 at 50 MHz, thus here's my code:
from machine import Pin, PWM
import time
pwm_pin = 0
pwm = PWM(pwm_pin)
# Set PWM frequency in Hz
# Set fixed duty cycle
pwm.duty_u16(32768) # 50% duty cycle (32768 out of 65535)
I want a square wave, however the PWM produced noises and ripples with this code.

Thus, how can I lessen the noise and ripples? Help me mam please

prakash-rk
Автор

Hello, could you help me? I have on project and I thinks you can to that.

alexandrunickolas
Автор

Can you show us how to make a face mask detector using raspberry pi please?

chavezreece