Learn MicroPython #6 - fade an LED with PWM

preview_player
Показать описание
In this video we will discuss a technique used in the digital world to deliver varying power to a device without requiring an analog (varying) voltage. The technique is called pulse width modulation (abbreviated PWM) and works by controlling the duty cycle of a square wave, which is the ratio of the average on-time to the total time. For example, a 50% duty cycle would indicate a signal that is delivering power 50% of the time. PWM is used in so many places. It can fade LEDs, spin motors, or even communicate analog data using only digital GPIO pins.

We have entire playlists on learning open source software so have fun learning! The solution is right around the corner... InventBoxTutorials.
Great tutorials. Free software. Open to the world.

**************************************************
We use FREE open source software with the following machines:
(ALL open source software is free so YOU can try it too) **************************************************

CNC ROUTER / MILLING MACHINE

(As an Amazon Associate I earn from qualifying purchases.)

**************************************************
FREE VIDEO DEMOS:
Laser Cutting TIPS & TRICKS
Vinyl Cutting TIPS & TRICKS
Wood Lathing TIPS & TRICKS
Milling / CNC Router TIPS & TRICKS
Metal Lathing TIPS & TRICKS
**************************************************
Рекомендации по теме
Комментарии
Автор

Thank you for indicating that the human eye perceives light above 60 hZ, and this is why adjusting the duty cycle of a pulse wave translates to "brightness." I've had countless people try to explain PWM modulation to me, and before now have not understood why I'm not just seeing the light blink off and on at full power for different amounts of time

danieljackb
Автор

Thanks for the great videos! Just FYI for any newbies like me, the latest version (currently v1.19.1) of Micropython doesn't use the pwm.duty() ... it must be pwm.duty_u16()

jaysmith
Автор

I watched all the learn micropython videos you did. Very cool. When you changed the PWM frequency it occurred to me that you could set 14Hz or 10Hz as the frequency and hook that to some Infrared LEDs and make a MIRT(mobile IR transmitter) aka a Dirty-MIRT, to change traffic lights, magically, to green! Buses and public transportation use 10Hz and emergency vehicles use 14Hz. I watched a guy from HAKC hacker-group give a talk about it and never could get it to work on an arduino. You just made it look so easy. I don't really know any coding language but i am trying to learn. Love the videos! P.S. don't MIRT at home. Probably frowned on.

mikehensley
Автор

Useful tutorial. Learning in small chunks is the way to go. Thank you.

ssgoh
Автор

Hope u keep em coming, thank u for the introduction!!

MrCoffeypaul
Автор

Good tutorial serials, I watched them all

wanghang
Автор

Great course, thanks! (: You've stimulated me to order few esp32 for playing (: it would be nice if you could use external mic in your videos btw, since they are a bit noisy (: anyway, very useful, thanks a lot!

Idontreallycareatall
Автор

Is this Tutorial completed ? I'm looking for MicroPython Tutorials that can be used while learning the Block Based "BIPES" application. But before I introduce this to the BIPES Project Team I need to know whether this a complete/rounded off Tutorial .

henk
Автор

Excellent series of tutorials, THANKS! One question comes to mind however, for perhaps another installment to the series. Is the Hall Effect sensor inherent to the ESP32 supported by MicroPython? Cheers and best regards!

capiberra
Автор

Can you tell me how to make a program to play an audio file using micro python

_yugandharpatil
visit shbcf.ru