Keywish Hummer-Bot-2.0 Instruction Manual page 45

Table of Contents

Advertisement

Figure.3.2.8 L298N and Arduino Expansion Board Connection Diagram
After the connection, we do not know whether the motor can work normally or not, so we need to do a
simple test by copying the following code (You can also open the program in the CD directly.) into the IDE
development environment and downloading to the development board. And turning on the power (power
connection is introduced the tenth and eleventh steps in 3.1.2) to observe the wheels rotation, if "going
forward 5s----stopping 1s---- going back 5s---- stopping 1s----turning left 3s----stop 1s----turning right 3s"
are normal, the connection is correct, otherwise the polarities of the motor may be reversed, then you need to
adjust slightly.
Program flow chart is as follows:
L298N
IN1
IN2
IN3
IN4
42
Arduino Uno
D6
D10
D5
D9

Advertisement

Table of Contents
loading

Related Products for Keywish Hummer-Bot-2.0

Table of Contents