Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Week 6 - Timer

Software PWM

PWM is available on PORT that has Timer. In Uno, it is pins 3, 5, 6, 9, 10, 11. But, we can also turn any pins to PWM. We can emulate the PWM signal by turning ON (HIGH) & OFF (LOW) real quick. In this activity, I used Software PWM to control the brightness of the LED.

image

The PWM is 10%, so the LED is dimmed

Servo PWM

Most of the time, we used Servo library to interact with Servo. We just supply the angle and the Servo moves to the position. But, what 'message' exactly did Arduino send to the Servo so that it moved?

Turns out, the servo can be controlled via a PWM signal.

VID_20221114_165515.mp4

not really sure how does he goes 360 there 🤷