Pages: [1]   Go Down
Author Topic: analogRead and pulseIn  (Read 443 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi.

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.
Thanks

Logged

Pages: [1]   Go Up
Jump to: