Servo Motor Car controlled by Arduino

This is a basic Arduino code to get two wheels to rotate. This project uses continuous rotation servo motors. Although I am using a motor driver board with my Arduino, in actuality a driver board is NOT needed. The pictured BRAIN PAD is not used in this example, so ignore it.

See code below. The important thing to know is that the Write code controls the speed and direction of motor from 0 to 180. The midpoint is 90, which indicates stopped motor.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s