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


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.


Pages: [1]   Go Up
Jump to: