How to use PWM for Arduino Due and make an LED blinking

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
henrimontreal
 
Posts: 1
Joined: Sat Mar 30, 2013 3:40 pm

How to use PWM for Arduino Due and make an LED blinking

Post by henrimontreal »

Hi folks,

I have a question for you and wonder if you can kindly guide me.

I don't know why the data sheet of Arduino Due is difficult to me to understand.

I just want to use PWM to make some LEDs blink. I found some register such as PWM_ENA to enable the PWM and the others to
do this purpose but don't know how to make it work and change the frequency.

By any chance, has anyone done this job before?

This is really urgent and I am so frustrated!

I really appreciate if you can give me some hints.

Due is totally different from Uno to use PWM stuff.

Thank you in advance.

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: How to use PWM for Arduino Due and make an LED blinking

Post by Franklin97355 »

Using PWM you probably will not see the LED blink because the rate is too high to see. You need to turn the oin on, wait a bit (500ms or so) and then turn the pin off and wait. This will be visible to humans.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”