Sensors and failed tests.

13/9/18

Today, we decided to exchange the second touch sensor with the ultrasonic sensor, after it was concluded that this would be more suitable to the desired outdoors operating environment. It is envisaged that the robot will be able to negate an outdoors course, comprised of bushes and other natural elements. The ultrasonic sensor will enable us to complete this objective. We modified the front sensor rig to include the ultrasonic sensor, with the omission of the second touch sensor. This modification to the design and front structure took about 15 minutes, including disassembly, reassembly and wiring.

Following the successful integration of this new sensor, we then began researching how the sensor worked and how we could code the operation of this. The intention is that the robot will drive forwards at full power, but upon the detection of objects within a 5cm length, stop, reverse, and turn 90 degrees before continuing again. Initially, we attempted some basic code to make the sensor stop the robot. This was unsuccessful, with the robot wheels moving forward slightly, but then stopping, with no further action from the robot seen. A few more attempts later, we finally worked out how to enable feedback from the sensor, and also make it perform the desired task. This was achieved at the end of the lesson, following about 30 mins of research, failed attempts and testing. The achieved program was still in the earlier stages however, with some fine tuning required. We concluded that we would make further changes in tomorrow's lesson (Friday, 14/9).

Comments