12-19-2015 05:55 PM - edited 12-19-2015 05:56 PM
I have to make a code that should recognize shapes placed in front of a lego robot using two ultrasonic sensors placed vertically ;D. I think both sensors should send the signals at the same time and based on the time reception of the echos, it should be possible for the program to choose different cases. I hope my drawing helps somewhat ;D so the three object will have a different shape. Can anyone give me some clue how to start to write such code? I really have to do this, any advice, beg you.
12-19-2015 11:30 PM
12-20-2015 05:48 AM
12-25-2015 12:02 PM - edited 12-25-2015 12:04 PM
Hello, So I managed to write a code which recognizes two shapes, (and I need 3) , these two I can below:
I did the comparison of the signals from two ultrasonic sensors, with two cases, by simple comparison block. Like this:
Can I create a third case for the flat shape. It would be when sensors detect echo from both sensors at the same time (more or less). Or maybe there is another way. For example when the echo doesnt return,( I could create something that absorbs ultrasound maybe) Can anyone help me?