An Arduino library, that allows you to control bots created using DC motors
Branch: master
Clone or download
Latest commit a7f3837 Feb 28, 2016


DC Motor Bot is an Arduino library that allows you control bots created with 2 DC motors and H-Bridge IC like L293D.

##Features The library supports the following operations

  • Move Up
  • Move Down
  • Move Left
  • Move Right
  • Start
  • Stop


The library has an example sketch under the /examples folder which explains how to control the bot.

BasicBot.ino – Shows the normal way of using the library


This library does not require any other library to work.


After downloading place the DCMotorBot folder inside your Arduino's library folder

Connect the DC motors to Arduino using H-Bridge IC like L293D.

You can find a copy of L293D's datasheet and pin out diagram inside in the /datasheet directory

The following is the pin out diagram of the IC.

TODO: Add more details and schematics.


The library and the example are released under released under BeerWare license.

I would, however, consider it a great courtesy if you could email me and tell me about your project and how this code was used, just for my own continued personal gratification

You can also find other ways to make me happy, if you liked this project ;)


If you would like to contribute to this project, then just fork it in github and send a pull request.


More details about this project and the support for this project can be found at its homepage.


  • Add detailed schematics
  • Add more examples
  • Add speed control through PWM
  • Add keywords file