Autonomous Muscat Tire Car

By Nicholas Allen, Ian Muscat, Moe Kawar

basic description:

Our project is a car that moves forwards, backwards, stops, turns left and right all by itself.

How our program works:

the program uses 4 digital pins to control two separate motors which we set as outputs in the setup. In the void loop depending on the high low in the code the motor will either go forward when it is high low, backwards low high, or not move low low. To have it turn right you must have motor A move forwards and motor B backwards. Vice versa for it to turn left. Using shortcuts we can slim the code down to only one line commands instead of rewriting the same code every time we want to move a certain way.

one problem that we encountered when doing our final was the initial wring of the car with the h bridge and where the wires for the motor went which we resolved by researching and finding that we needed to have the H bridge inverted on the other side. Another problem was getting the HIGH and LOW in the proper spot to have the motors work. fixed through trial and error using different combinations till it was right.

Additions:

if we had more time and resources we would have liked to add sensors to sense when it was close to objects and turn around or avoid them. One other thing i would try to do better was to have it turn more accurate.