The IR sensor we used in the first prototype was good for start but it was time to level up. The range of the IR is only 1/2 of a meter at best and what we need was at least double that. The solution was the next thing on our morphological chart – an ultrasonic sensor. It has a range of 4 meters and works more precisely, which is a double win.
In order to test it, first I had to write a script in the Arduino IDE to make it aware what and where to read. Also in order to have something to read I have to give it a short input first.
After some extensive research on the errors I got along the way, I managed to make the Arduino receive the constanly updated values of the ultrasonic sensor.
Leave a comment