.. note:: Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts. **Why Join?** - **Expert Support**: Solve post-sale issues and technical challenges with help from our community and team. - **Learn & Share**: Exchange tips and tutorials to enhance your skills. - **Exclusive Previews**: Get early access to new product announcements and sneak peeks. - **Special Discounts**: Enjoy exclusive discounts on our newest products. - **Festive Promotions and Giveaways**: Take part in giveaways and holiday promotions. 👉 Ready to explore and create with us? Click [|link_sf_facebook|] and join today! Lesson 12: Create a Dimmable LED in Micropython ========================================================================== This tutorial covers controlling LED brightness using a potentiometer and PWM on the Raspberry Pi Pico W: * **LED Brightness Control**: Explains controlling brightness with PWM and introduces exponential scaling for smoother brightness perception. * **Wiring Diagram and Setup**: Detailed diagram for connecting a potentiometer and LED with a 220 Ohm resistor to the Pico W. * **Code Explanation**: Code setup for PWM, reading analog values from the potentiometer, and converting them to PWM duty cycles. * **Practical Demonstration**: Shows how to visualize PWM signals with an oscilloscope and demonstrates the effect of exponential scaling on brightness transitions. **Video** .. raw:: html