When we tested moving 10 feet with the motor encoder we found out that is it not every consistent due to the wonky path of the SciBorg, it would vary from ending 6 inches away from the 10 ft mark to right on top.
Touch Switch using this was very straightforward, although a good note to self is to always check what the code is printing in because we thought our circuit was somehow wrong because we were not using the right baud to read the print. We played with the delay a little because the 10 millisecond delay was printing out the input really fast, but concluded that 10 millisecond delay is probably the most effective.
When we tried the touch sensor on the car, it was very effective but not particularly useful because it had to be touching the surface.
Light Sensor: Using the light sensor was more tricky because there are a lot of shadows which are all dependent on the light source so it is challenging to get a perfect precise distance to put it at. We tested out the optimum reading for a white surface is around 90, for black surface 0, for brown surface around 30-40. The highest we have seen it read is 97, which we got by shining our phone light on the light sensor. When we put the sensor really close to a surface the numbers near 0. We also tried putting on the LED which did not help at all, it instead made the range of inputs way smaller, almost reading the tan desk as 0. Finally after much trial and error we measured the ideal distance to be 1.5 cm
Surprisingly when we tested out the sensor worked pretty well, although it was definitely not very precise because it did not stop at exactly where we wrote it to in the code.
Drive Straight: While driving straight seems like a very simple task this actually was one of the harder tasks for our group. Our SciBorg was very erratic, as things in real life often are, while we got a code in the end that runs pretty well on the lab floor it wouldn't work on the carpet because of the high friction. We were able top get the car down the wood ramp, but it had difficulty getting up due to the force of gravity. We tried our SciBorg on the ground by the Leaky Beaker too because it was difficult to find a high friction low friction floor that wouldn't interfere with the ball, the carpeted area by leaky beaker with a sticker on it was the most effective. This high friction and low friction combo made the car drive off the high friction surface.
No comments:
Post a Comment