Kasun Gamlath

PWM and Brightness Level

Following the my adventure with capturing the RF signal with IR sensor, I had two ways to proceed. Go back to the shop and buy RF sensor. But the community cases(covid19) of Singapore is getting high again. Didn't feel like going out.

Thankfully there is another way to adjust the brightness of a LED. Pulse width modulation. I had a hunch that's how the existing light adjustments worked too(via RF remote) And I already have the necessary circuit items with me.

Adjusting the LED brightness via raspberry pi part 2.

Even though the end goal is to adjust the brightness of LED set with external power source, I set up to adjust the brightness of a single LED powered via raspberry pi GPIO pin it selt.

I configured the new circuit in bread board. It was just one resistor and one LED connected with jumping wires to GPIO pins.

It worked the first time!!!