Question #268819

What scale value would you use with analogWrite() to generate a average vlotage of 3V on PWM pin 10 ?

Expert's answer

Writes an analog value to a pin (PWM wave). It can be used to control the brightness of an LED or the speed of a motor. The pin will generate a constant rectangular wave of the given duty cycle after a call to analogWrite() until the next call to analogWrite(). Write() (or a call to digital) is a method for writing data to a file. On the same pin, use Read() or digitalWrite(). The scale value can be 40.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS