Skip to content

wontonst/oop-arduino-robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Robot OOP-Styled

Classes included with this project and reference material used.

Robot - central control mechanism

Sensors

Motors

##Sample Code

Here's some simple code to test robot movement. Before this code can run, you must adjust the pin numbers in robot.h to the pins you're using on your Arduino board.

Robot* robot = new Robot();
  robot->forward(2000);
  robot->brakeAll(1500);
  robot->reverse(1500);
  robot->brakeAll(1500);
  robot->turnRight(2000);
  robot->brakeAll(1500);
  robot->turnLeft(1500);
  robot->brakeAll(1500);

About

Arduino robot - OOP style - servo, sonar, infrared, dcmotor, and others

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages