Go Down

Topic: 2 ultra sonic sensor questions (Read 344 times) previous topic - next topic

GapZaa

Hey all, I'm a beginner at this arduino course.

I have a few question to ask.

If I have 2 ultra sonic sensors, I want 2 use this sensors to measure how fast people are walking. What code do I need to calculate the time when someone walk pass my first sensor to my second sensors

Thanks

AWOL

You need code to note what time it was when they walked past the first sensor (millis ()), then the time when they walked past the second.
You need a constant to let your software know what the distance between your sesnors is.
How you figure out if it's the same person is your problem   ;)
"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