@@ -38,6 +38,12 @@ To solve this issue, we rebuilt the robot to extend the sound sensor further awa
We see that the build solves our problem extremely well, as the robot accurately slows down once we stop making sounds, instead of constantly driving forward as a result of its own
Next, we modified our program to receive raw values directly from the sensor port instead of using *readValue()* from the sound sensor. We did this because we want an accurately known interval of measured values in order to map to any range that we desire. The sensor measures a raw value between 0 and 1023, where a high raw value means a low sound level. We simply convert the measured value to a percentage of possible maximum value, then invert this percentage, and pass it along as a motor power parameter. As can be seen in video [Insert next video, one from corner to middle in 3 bursts (Nicolai knows wtf this means)], this modifications still works perfectly fine, and allows for more precise and easier mapping to any ranges we want.