Go Down

Topic: analogRead and pulseIn (Read 809 times) previous topic - next topic



I'm trying to use analogRead to input some sound, and I want to use pulseIn to measure the duration of a certain threshold; but I'm having trouble once I put the pulseIn function into the code, it freezes up the seria.println for some reason.
I've tried to search and seems like pulseIn can only be used for digitalInPuts, is that correct?

Any insights would be much appreciated.

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!

via Egeo 16
Torino, 10131