EasyManua.ls Logo

Eckstein komponente KS0530 - Page 96

Default Icon
160 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
96
In the above figure, the green line represents a period, and value of
analogWrite() corresponds to a percentage which is called Duty Cycle as
well. Duty cycle implies that high-level duration is divided by low-level
duration in a cycle. From top to bottom, the duty cycle of first square wave
is 0% and its corresponding value is 0. The LED brightness is lowest, that is,
turn off. The more time high level lasts, the brighter the LED. Therefore, the
last duty cycle is 100%, which correspond to 255, LED is brightest. 25%
means darker.
PWM mostly is used for adjusting the LED brightness or rotation speed of
motor.
It plays vital role in controlling smart robot car. I believe that you cant wait
to enter next project.