Go Down

Topic: working of pulsein function.......????? (Read 412 times) previous topic - next topic

ambuj

hi all,
       can anyone tell me about pulsein function how it work???. i read about this function but have some confusion about this.
http://arduino.cc/en/Reference/PulseIn

problem is i can't understand when we called pulsein() function so which values it read and what is the mean of pulse length which it read(Read by pulsein function).


i want make a pules counter. which count the pules from input pin.

WizenedEE

pulseIn counts the length of a pulse. So if you hooked up a switch and used pulseIn on the pin, then you pressed the switch down for 283 milliseconds, that would be its return value.

Counting pulses is a completely different thing.

AWOL

Quote
So if you hooked up a switch and used pulseIn on the pin, then you pressed the switch down for 283 milliseconds, that would be its return value.

...but expressed in microseconds.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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