Controlling an RGB LED using Six Push-buttons and PWM (Pulse Width Modulation) on a Raspberry Pi

preview_player
Показать описание
This project uses six push-buttons to control an RGB LED. PWM is used to vary the brightness of each color. The six buttons (two for each color - one to decrease and one to increase ) change the brightness a specified amount for each press of the button, The user can input the number of presses they want to go from off to fully on. The brightness is changed on a nonlinear scale to make each press of button change the perceived brightness the same amount. The nonlinear relationship between perceived brightness and duty cycle is discussed.

Song: Atch - This Feeling
Music provided by Vlog No Copyright Music.
Creative Commons - Attribution 3.0 Unported
Рекомендации по теме
Комментарии
Автор

Nice clear code and comments. Really like your explanation and video.

keithlohmeyer
join shbcf.ru