One goal for my AutoMove robotic arm is automatic object detection. Here are the inital tests to see if the sonar sensor can see a few objects. A 'COMP444 feature', an eraser, and a bottle of Wite-Out are put under the sensor and measurements are sent to serial. The sonar echo time measurements are filtered by the Arduino. I used Excel to plot the results so you could see how it worked for yourself.
Here are the results:
It worked really well! The 'feature' wasn't detected, but that's okay. (It was a long shot, anyway.)
I made a short video of the measurements being performed: [Sonar Object Detection Experiment #1 - YouTube.com]
Here's a link to the relevant code: [GitHub permalink to line 327 of AutoMove.cpp, git commit #5befc96]
while (1)
{
Serial.print(F("Sonar sum: "));
delay(500);
int count = 0;
uint32_t sum = 0;
do {
sum += sonar.getMeasurement();
delay(25);
} while (count++ < 100);
Serial.println(sum);
}
The Landing is a social site for Athabasca University staff, students and invited guests. It is a space where they can share, communicate and connect with anyone or everyone.
Unless you are logged in, you will only be able to see the fraction of posts on the site that have been made public. Right now you are not logged in.
If you have an Athabasca University login ID, use your standard username and password to access this site.
We welcome comments on public posts from members of the public. Please note, however, that all comments made on public posts must be moderated by their owners before they become visible on the site. The owner of the post (and no one else) has to do that.
If you want the full range of features and you have a login ID, log in using the links at the top of the page or at https://landing.athabascau.ca/login (logins are secure and encrypted)
Posts made here are the responsibility of their owners and may not reflect the views of Athabasca University.
Comments
Nice video Tyler. Why did the graph peak for the whiteout object? And what software did you use to graph your chart? Thanks very much.
Each object is a different height and volume, so the echo time is different for each, which is what I was hoping. I used Excel to graph the data.