Go Down

Topic: [Question] How to generate finite number pulses?  (Read 130 times) previous topic - next topic

Hi everyone,

I want to generate exactly 10 pulses.
If i just use simple analogWrite function, sometimes it couldn't generate complete pulse like the attached graph.
If i use timer1 lib, i have no idea to generate number of pulses i want.

Is there any easy way to generate finite number of pulse?

I found the solution to use FastWrite to creat pulse train.

http://forum.arduino.cc/index.php?topic=41228.0

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy