Pages: [1]   Go Down
Author Topic: arduino mega PWM.  (Read 250 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 137
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 137
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

UK
Offline Offline
Shannon Member
****
Karma: 183
Posts: 11154
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Pages: [1]   Go Up
Jump to: