feostech / vehicle-alcohol-detection

0 stars 0 forks source link

Test PWM output using LED in microbit #20

Open raashidmuhammed opened 7 months ago

Jothiprasath0014 commented 6 months ago

PWM Test using LED in microbit is completed

Light glowing in low

WhatsApp Image 2024-03-13 at 6 19 03 PM

Light glowing in High

WhatsApp Image 2024-03-13 at 6 16 45 PM

Block code for PWM

WhatsApp Image 2024-03-13 at 6 13 21 PM

Video For PWM Test

https://github.com/feostech/vehicle-alcohol-detection/assets/153628643/b4251802-4054-4382-aa42-a3178d4fbfa1

Jothiprasath0014 commented 6 months ago

PWM (Pulse-Width Modulation)

However, to control the brightness of LEDs by switching that voltage on and off, and controlling the LEDs. This technique is called Pulse-Width Modulation (PWM).

raashidmuhammed commented 6 months ago

Instead of buttons, try to read commands from serial port. "increase\n" command should increase the duty cycle by 100. "decrease\n" command should decrease the duty cycle by 100. Test by giving commands via minicom.

Jothiprasath0014 commented 6 months ago

Screenshot from 2024-03-26 16-16-08