![]() ![]() You’ll learn basic to advanced Arduino programming and circuit building techniques that will prepare you to build any project. If you want to learn more about the Arduino, check out our Ultimate Guide to the Arduino video course. Let’s build an example project that will make a DC motor spin in one direction for two seconds, stop, then spin in the opposite direction for two seconds. ![]() To build the example projects, you’ll need the following parts:Ĭonnect the DC Motor and L293D to the Arduino In this tutorial, we’re going to build a few example projects to demonstrate how to use the L293D to control DC motors on the Arduino. To turn the motor OFF, send a LOW signal to the input 2 pin. To make the motor spin in the opposite direction, send a LOW signal to the input 1 pin, and a HIGH signal to the input 2 pin. This will cause the motor to spin in one direction. To turn the H-bridge 1 motor ON, send a HIGH signal to the input 1 pin, and LOW signal to the input 2 pin. Input 4: motor control signal for H-bridge 2.Input 3: motor control signal for H-bridge 2.Input 2: motor control signal for H-bridge 1.Input 1: motor control signal for H-bridge 1.Enable 3, 4: turns ON/OFF H-bridge 2 (HIGH enables, LOW disables). ![]()
0 Comments
Leave a Reply. |