PWM Output on Arduino mega 2560

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
trisbillers
Posts: 13
Joined: Wed Aug 29, 2012 8:49 pm
Has thanked: 3 times

PWM Output on Arduino mega 2560

Post by trisbillers »

Hi, All,

I am struggling to get my PWM outputs to work.

I can get a pwm output on Digital Pin 4 (PWM 2).
But when I tire and get any of others to work I am unable to see a pwm output.
I have tried all different PWM channels/ pins and as you can see with the program attached I should be getting the PWM on both Digital Pin 4 and pin 2,

But i am only seeing the pwm on pin4.


I have tried different pins/PWM channels and the only one I can get to work is PWM channel 2 on Digital pin 4.

Could anyone Help?

Thanks

Tristan
Attachments
PWMTEST.fcf_avr
(9.5 KiB) Downloaded 263 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: PWM Output on Arduino mega 2560

Post by dazz »

Hi
I've attached a flowchart that will switch fade an led via pwm ,all channels are set to work at the same time, so connect a bunch of led's to the arduino pwms and all should work

Regards
Dazz
PWMTEST all channels.fcf_avr
(35.05 KiB) Downloaded 324 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

trisbillers
Posts: 13
Joined: Wed Aug 29, 2012 8:49 pm
Has thanked: 3 times

Re: PWM Output on Arduino mega 2560

Post by trisbillers »

HI, Dazz,

Thanks for the replie,
I have tested your program on 3 diffrent boards, and the only pins that are giving me a PWM output are digital pins, 4, 9, 10, 11, 12, & 13,

Any idears?

Thanks

Tristan

Post Reply