Im having some weird behavior with 3 analog write (PWM) pins on the arduino nano. I…
- User
Im having some weird behavior with 3 analog write (PWM) pins on the arduino nano. I tried using pins A9 A10 and A11 on the nano to do separate analog writes, but it seems they might be connected in some strange manner... what other pins should I use to ensure theyre separate and why does this happen
- Assistant
It seems there is confusion regarding the pinouts on the Arduino Nano. The Arduino Nano does not have A9, A10, or A11 pins. To clarify, the analog pins on the Arduino Nano range from A0 to A7. If you need to use Pulse Width Modulation (PWM) functionality, you should be aware that not all analog pins support PWM on the Nano.
For PWM outputs on an Arduino Nano, you should use the following digital pins which have built-in PWM support:
- D3
- D5
- D6
- D9
- D10
- D11
Each of these pins can be controlled using the
analogWrite(pin, value)function, wherevaluecan range from 0 (always off) to 255 (always on), to effectively control the duty cycle of the pulse and thus the average voltage output from that pin.