Skip to content

Robot, walking on the freedom of direction (north, south, west, east). .NET Micro Framework & I2C Protocol are used.

Notifications You must be signed in to change notification settings

yuryf1/CompassRobot

Repository files navigation

CompassRobot

Robot, walking on the freedom of direction (north, south, west, east). .NET Micro Framework & I2C Protocol are used.

Programm.cs: The robot goes in the right direction the right time. Klichko.Go(x,y) //x - angle of motion (0-360 degree), y - time of motion;

Robot.cs: The Go () method calculates the speed of the left and right axes, if the left goes to the full (1), and the right one stands (0), then the robot simply turns to the right. The Compass class is used to communicate with the compass via the I2C protocol. To calibrate the compass so that 0 is straight, and 90 is right, the CurrentDegree () method is written, the Calibration enumeration is added to the beginning of the code for convenience;

Hardware: Netduino2, 4 motors, 4 transistors (or motordriver), I2C Compass.

About

Robot, walking on the freedom of direction (north, south, west, east). .NET Micro Framework & I2C Protocol are used.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages