PWM on Raspberry Pi Python - Controlling LED Brightness & More
Covers how to control LED brightness on the Raspberry Pi and Python using PWM. Also goes into detail on the limitations and why newer digital LEDs are better especially for accurate colors with RGB LEDs. Stay tuned for a part 2 on PWM where I'll cover how to control DC motor speed and direction using an H-bridge. Practical Electronics & Circuits 101 playlist: https://youtube.com/playlist?list=PLlLR7EXXYZ0YcMaDjlh_1T-_dr_zAZpFM&si=RtpQ4EEvT2swVO0A Raspberry Pi & SBC Playlist: https://www.youtube.com/playlist?list=PLlLR7EXXYZ0bZl0azi5-OelwdpHxFYX5G Written Guide: https://phazertech.com/tutorials/rpi-gpio.html PWM Python Documentation with examples: https://sourceforge.net/p/raspberry-gpio-python/wiki/PWM/ Purchase a Raspberry Pi on Amazon Raspberry Pi 5 8GB: https://amzn.to/4gb1ceq Raspberry Pi 5 4GB: https://amzn.to/4igE404 Raspberry Pi 4 Model B 4GB: https://amzn.to/4252Xnr Raspberry Pi 3 Model B+: https://amzn.to/424PegC Raspberry Pi Zero 2 W: https://amzn.to/3UQhmSD Raspberry Pi Zero WH: https://amzn.to/4aZLlNU 100pcs 2N7000 MOSFET: https://amzn.to/49luRQ5 This transistor is easy to work with and ideal for low power applications such as LEDs. These are affiliate links where I earn a small commission for purchases at no extra cost to you. This is the easiest way to help the channel, thank you! Amazon: https://amzn.to/484HUnU Website: https://phazertech.com/ Donations Buy me a coffee: https://www.buymeacoffee.com/phazertech Chapters 00:00 Intro 01:37 Review of transistor circuit 03:31 Simple example 09:01 Second example ramping the brightness up and down 12:27 Power vs apparent brightness 14:42 RGB LEDs 16:25 Digital LED Strips 17:54 Outro
Download
0 formatsNo download links available.