Go Down

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

KaoShihChi

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?

KaoShihChi

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

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

Go Up