Skip to content

shelleywu/TestDrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

TestDrive

TestDrive is a starter project to run Adafruit motor shields and Arduino Microcontroller Board. Since Adafruit and Arduino are different manufacturers, the motor shields are not compatitable with Arduino thus a library must be installed. TestDrive is a good starter to complete a semi-autonomous, obstacle-avoiding robot prototype using Arduino ultrasonic sensors and a robot smart car chassis.

Getting Started

All items can be bought on Amazon.

  1. Adafruit motor shields
  2. Arduino Microcontroller Board
  3. Wires
  4. Scotch tape
  5. Smart Car Robot Chassis Kit

Prerequisites

Software Installation: Arduino IDE (https://www.arduino.cc/en/Guide/ArduinoUno) AFMotor.h file (https://learn.adafruit.com/adafruit-motor-shield/library-install)

Installing

The links above has step-by-step instructions on how to install the Arduino IDE and Adafruit library has installation steps. Copy and paste TestDrive.ino code to the IDE.

Running the tests

Plug in the Arduino microcontroller to the board. Use wires to attach to the microcontroller and motors to run the wheels of the kit. Scotch tape is fine for this tester, as long as the wires are securely touching.

Turn off wifi of the robot if any, or else, uploading the code will not run it.

Editing Code

Optional to change the speed and direction of the wheels based on the comments.

Coding Style

TestDrive.ino uses comments as directions on how to edit the speed and direction of the wheels, and explanation on reasons behind each line. Otherwise, TestDrive.ino is fairly easy to read.

Deployment

Detach the wire from arduino, and put in batteries then let it run!

This is how a semi-autonmous, obstacle-avoiding robot would look with TestDrive.ino:

This is how it looks when using TestDrive to create a semi-autonmous, obstacle-avoiding robot.

Built With

*Arduino *Adafruit

Authors

Acknowledgments

  • Hat tip to anyone who tries to use this code in any way. Please credit me in any usage.