This past week was spent on the final testing. Stanley Jr and his programs for the most part work fine by themselves but when put together it’s just too much for him to handle. When the compass and GPS programming is by itself he’ll reach his goal but he can only do it without the sensors. Continue reading As far as he’ll go!
In the past week we equipped Stanley with the tools to see the world. Using the GPS code, coded and worked on by Alex and Toby, Stanley knows where to go but not without a few headaches. Continue reading SOOOOOO CLOSE!!!
After a few setbacks caused by the rotary switch and the overheating Pi, everything is finally soldered and in place, and the tic tac toe robot can live up to its name once again. Here are a few pictures of what the new layout looks like. Continue reading It Plays Tic Tac Toe Again
After all of the modifications and fixes of the self driving RC car, Mr. Bahn introduced me into a much more efficient way of coding and programming for the car. It all came down into creating different “if” statements, because my statements were over lapped and the sensors were shooting data back to create two commands at once for the car, and it would cause the car to get stuck in between two commands. The solution to this problem of the car glitching out came down to starting fresh and drawing a chart out with 6 different regions that the sensors can see. With this sketch below it developed a much better understanding of what commands will be needed to have the car avoid obstacles to its possible best doing. The Sensors are related to each other in the if statements now as well, for example if the right sensor is reading the distance is closer than the left, the car will turn left. A delay in the void loop was needed to slow the reaction of the commands down a split second so the car could back up to the left or right rather than getting stuck in between two if statements. There has also been a new sensor mount out on the front of the car now, this will hopefully create a more consistent reading of the distance away from obstacles. The sensors readings are now pulled from an average of 5 readings now to prevent odd crazy numbers being thrown to the car to act upon, this is a program called smoothing under File>Examples>Analog>Smoothing. The motor driver is also powered from a heavier, but more reliable battery giving the motor driver 7.2 V to work with. I’m expecting the car to be avoiding obstacles very consistently by the end of the week.