Friday, November 6, 2015

October Blog

We've been working on the robots and making them able to have precision steering and lots of other stuff.

Today we worked on the robot a little more and added precision steering and precision distance traveling. With these features you can make the robot turn anywhere between 0 and 360 degrees and with the distance you can put in a distance in feet and the robot will move forward that many feet. This is accomplished with the map function that takes your input of an angle or distance and turns that into milliseconds to make the robot understand how to do things precisely.

The map function translating degrees into milliseconds:

int angleTime = map(angle,0,360,0,3070);

The map function converting distance in feet to milliseconds:

counterFinal = map(distanceForward,0,1,0,2286);

The entire code is available here

Picture:

Projects like this reinforce how robotics can de very precise things in the real world and can solve a ton of problems. Things that I used to make this robot are things that I can use in the future of this class and in life to make cool and effective things using the Arduino.

No comments:

Post a Comment