Go Down

Topic: 2 ultra sonic sensor questions (Read 320 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