Keyestudio Ks0428 Manual page 77

Table of Contents

Advertisement

www.keyestudio.com
effect.
PWM is a means of controlling the analog output via digital means.
Digital control is used to generate square waves with different duty
cycles (a signal that constantly switches between high and low
levels) to control the analog output.In general, the input voltage of
port are 0V and 5V. What if the 3V is required? Or what if switch
among 1V, 3V and 3.5V? We can't change resistor constantly. For
this situation, we need to control by PWM.
For the Arduino digital port voltage output, there are only LOW and
HIGH, which correspond to the voltage output of 0V and 5V. You
can define LOW as 0 and HIGH as 1, and let the Arduino output five
hundred 0 or 1 signals within 1 second.
If output five hundred 1, that is 5V; if all of which is 1, that is 0V. If
output 010101010101 in this way then the output port is 2.5V,
which is like showing movie. The movie we watch are not
77

Advertisement

Table of Contents
loading

Table of Contents