New answers tagged pwm
2
votes
Accepted
PWM on Wemos D1 Mini (esp8266 chip) does not work
At one point analogWrite as it was implemented in the esp8266-core had defaulted to a 10-bit range. This is no longer the case. It defaults to 8-bit range now.
In any case analogWrite is implemented ...
2
votes
Perform Volume Control on arduino speaker
The tone() function generates a 50% duty cycle square wave using a timer and interrupts. 50% duty cycle is basically full volume.
It's possible to reduce the volume by reducing the duty cycle, but the ...
Top 50 recent answers are included
Related Tags
pwm × 467arduino-uno × 161
led × 51
timers × 48
motor × 46
arduino-mega × 42
servo × 38
frequency × 25
analogwrite × 25
arduino-nano × 20
interrupt × 16
atmega328 × 16
programming × 15
pins × 14
power × 12
audio × 12
arduino-ide × 11
analogread × 11
current × 11
c++ × 10
attiny × 10
i2c × 9
arduino-due × 9
adafruit × 9
voltage-level × 8