Go Down

Topic: arduino mega PWM. (Read 342 times) previous topic - next topic

gc9n

i am trying to find where exactly is all the Analog pins from digital side.

i can send PWM to pin 44 , 46  does anybody  know the other analog pins?

PaulS

Quote
i can send PWM to pin 44 , 46  does anybody  know the other analog pins?

You don't send PWM to analog pins. You can use the inappropriately named analogWrite to PWM any pin with a ~ in front of the number printed on the board. On the Mega, that is pins 0 to 13 on the digital side.

gc9n

Could you please explain to me how to talk to those 15pins?
thanks paul


[font=Verdana]Summary
Microcontroller   ATmega2560
Operating Voltage   5V
Input Voltage (recommended)   7-12V
Input Voltage (limits)   6-20V
Digital I/O Pins   54 (of which 15 provide PWM output)
Analog Input Pins   16
DC Current per I/O Pin   40 mA
DC Current for 3.3V Pin   50 mA
Flash Memory   256 KB of which 8 KB used by bootloader
SRAM   8 KB
EEPROM   4 KB
Clock Speed   16 MHz[/font]

PaulS

Quote
Could you please explain to me how to talk to those 15pins?

Nicely, very nicely. Use a calming tone of voice.

Or, perhaps the analogWrite() function I mentioned earlier.

PeterH


i am trying to find where exactly is all the Analog pins from digital side.


You would need to look at the specification for your particular Arduino to know how many pwm-capable outputs it provided,and which physical pins these outputs were connected to. Often the pwm-capable outputs are identified with a '~' label on the PCB, but that's down to the individual PCB designer and not universal.
I only provide help via the forum - please do not contact me for private consultancy.

Go Up