Making a Robot With Arduino Part 1: Intro to Motor Controller
So from the previous post, we already have a base, with all the thing plugged in.
The big idea, arduino control motor, so we just plug a dc motor into arduino? No? Not so fast, a robot don’t just need to move forward, it also need to move backward, in addition, a robot need to rotate to change direction. Not so easy now isn’t it.
Like many stuff in electronics, there is a component for this. Introducing the The Motor Driver, it make it easy for us to move a motor is both direction, and as it stop, the circuit is cut off, and stop the current from the motor from going back to arduino(it is a good thing ). Also it control both dc motor, independently.
The motor driver we used is based on the L298N , which is an IC to control it. But we are lazy, so we just buy a ready made controller. To make things easy for us.
The datasheet for the motor driver have the information we need on how to drive a motor on it.
That’s all for the motor controller. This is essentially the main component of the robot, along with the arduino. Next post will involve wiring the controller to the arduino, and some test code.