Pages: [1]   Go Down
Author Topic: 2 ultra sonic sensor questions  (Read 301 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Global Moderator
Offline Offline
Brattain Member
Karma: 309
Posts: 26538
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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   smiley-wink

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

Pages: [1]   Go Up
Jump to: