{"product_id":"l293d-dual-h-bridge-motor-driver","title":"L293D Dual H-Bridge Motor Driver","description":"\u003cp\u003e\u003cspan\u003eGeneral purpose driver handles 4.5 – 36V @ 600mA\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe L293D Dual H-Bridge Motor Driver is a general purpose high voltage \/ high current driver that can handle 4.5 – 36V @ 600mA continuous per channel\u003c\/p\u003e\n\u003ch2\u003ePACKAGE INCLUDES:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eL293D Dual H-Bridge Motor Driver\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF L293D DUAL H-BRIDGE MOTOR DRIVER:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eContains four half H-Bridges that can operate as two full H-Bridges\u003c\/li\u003e\n\u003cli\u003eOperate 2 motors with direction and speed control or 4 motors with speed control only\u003c\/li\u003e\n\u003cli\u003eCan supply 600mA current per channel continuous and 1.2A peak\u003c\/li\u003e\n\u003cli\u003e4.5 to 36V motor voltage\u003c\/li\u003e\n\u003cli\u003e5V compatible on logic pins\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe L293D is a general purpose high voltage \/ high current driver  that can handle up to 600mA per channel (1.2A peak non-repetitive) and can operate over the range of 4.5 – 36V.  The chip includes built-in kick-back diodes to prevent damage when the motor is de-energized.\u003c\/p\u003e\n\u003cp\u003eThese devices are most often used to drive motors, but they can also be used to drive any inductive load such as relay solenoids or used to drive large switching power transistors.\u003c\/p\u003e\n\u003ch3\u003eHalf-Bridge vs Full-Bridge\u003c\/h3\u003e\n\u003cp\u003eThe chip contains four half H-Bridges that can be operated that way or can also be operated as two full H-Bridges.  They are capable of driving up to 4 solenoids, 4 uni-directional DC motors, 2 bi-directional DC motors or 1 stepper motor.\u003cimg decoding=\"async\" class=\"alignright size-full wp-image-5528 entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout.jpg\" alt=\"L293D Pinout\" width=\"344\" height=\"197\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout.jpg 344w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout-200x115.jpg 200w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout-300x172.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout-280x160.jpg 280w\" data-lazy-sizes=\"(max-width: 344px) 100vw, 344px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 344px) 100vw, 344px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout.jpg 344w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout-200x115.jpg 200w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout-300x172.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Pinout-280x160.jpg 280w\"\u003e\u003c\/p\u003e\n\u003cp\u003eA half H-Bridge configuration allows a motor to be operated in one direction.  the Enable pins allow the motor to be turned ON\/OFF or speed regulated by applying a PWM signal to these pins.  The Enable pins are shared between channels 1\u0026amp;2 and 3\u0026amp;4 which limits the usefulness of this mode.\u003c\/p\u003e\n\u003cp\u003eA full H-Bridge configuration allows a DC motor to be run in both directions by reversing the current flow through the motor.  The Enable pins allow the motors to be turned ON\/OFF or speed regulated by applying a PWM signal to these pins.  This is the most common mode of operation.\u003c\/p\u003e\n\u003cp\u003eIf higher output current is required, the outputs can be run in parallel to get drive currents of up to 1.2A.  When paralleling outputs, channel 1 \u0026amp; 4 should be paralleled and channel 2 \u0026amp; 3 should be paralleled.  It is also possible to piggy-back a second chip on top of the first and solder the pins together to maintain full two H-Bridge functionality while also doubling the current handling to 1.2A.\u003c\/p\u003e\n\u003ch3\u003eUnidirectional DC Motor Control (using half H-Bridge)\u003c\/h3\u003e\n\u003cp\u003eThis table covers 1 of the 4 half H-Bridges in the device.  1A channel is shown but all 4 channels (1A\/2A\/3A\/4A) behave the same.  Note that the EN pins are shared between Channels 1\u0026amp;2 and 3\u0026amp;4.\u003c\/p\u003e\n\u003cp\u003eAlso, note that is in this half bridge configuration, one side of the motor will be connected directly to power or ground, so the direction control pins (1A in this case) will have the opposite effect depending on how the motor is wired.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ctable class=\"table table-bordered\" width=\"1029\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003e\u003cstrong\u003eEN\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"95\"\u003e\u003cstrong\u003e1A\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"203\"\u003e\u003cstrong\u003eFunction (Motor connected to VCC2)\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"203\"\u003e\u003cstrong\u003eFunction (Motor connected to Ground)\u003c\/strong\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eL\u003c\/td\u003e\n\u003ctd width=\"203\"\u003eMotor Run\u003c\/td\u003e\n\u003ctd width=\"203\"\u003eFast Motor Stop\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"203\"\u003eFast Motor Stop\u003c\/td\u003e\n\u003ctd width=\"203\"\u003eMotor Run\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003eL\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eX\u003c\/td\u003e\n\u003ctd width=\"203\"\u003eFree-running Motor Stop\u003c\/td\u003e\n\u003ctd width=\"203\"\u003eFree-running Motor Stop\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch3\u003eBidirectional DC Motor Control (using full H-Bridge)\u003c\/h3\u003e\n\u003cp\u003eThis truth table covers the left half of the chip which forms one full H-Bridge.  The right side is a duplicate with 1A and 2A replaced with 3A and 4A.\u003c\/p\u003e\n\u003ctable class=\"table table-bordered\" width=\"661\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003e\u003cstrong\u003eEN\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"95\"\u003e\u003cstrong\u003e1A\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"95\"\u003e\u003cstrong\u003e2A\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"191\"\u003e\u003cstrong\u003eFunction\u003c\/strong\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eL\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"191\"\u003eMotor Turn Right\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eL\u003c\/td\u003e\n\u003ctd width=\"191\"\u003eMotor Turn Left\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eL\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eL\u003c\/td\u003e\n\u003ctd width=\"191\"\u003eFast Motor Stop\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eH\u003c\/td\u003e\n\u003ctd width=\"191\"\u003eFast Motor Stop\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"95\"\u003eL\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eX\u003c\/td\u003e\n\u003ctd width=\"95\"\u003eX\u003c\/td\u003e\n\u003ctd width=\"191\"\u003eFree-Running Motor Stop\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch3\u003eConnecting Power\u003c\/h3\u003e\n\u003cp\u003eTake note that there are two power pins which are marked various ways depending on what datasheet you are looking at.  The important thing to remember is that pin 16 is the logic power and needs to be connected to 5V which can come from the uC or separate power supply.   Pin 8 is the motor power and can vary between 4.5 and 36V.\u003c\/p\u003e\n\u003cp\u003eThe IC package has 4 ground pins.  These are all connected internally and are used to help heat sink the chip when soldered to a PCB ground plane and handle the current under high load conditions.  For experimenting under light loads, only one needs to be connected.\u003c\/p\u003e\n\u003chr\u003e\n\u003ch2\u003eOUR EVALUATION RESULTS:\u003c\/h2\u003e\n\u003cp\u003eThese are old school devices, but they are easy to use, inexpensive, robust and get the job done when working with motors that don’t require a lot of current.\u003c\/p\u003e\n\u003ch3\u003eQuick Breadboard Control Example\u003c\/h3\u003e\n\u003cp\u003eTo get a feel for how the IC works in the full H-Bridge arrangement that allows for DC motor operation in both directions, do the following exercise:\u003cimg decoding=\"async\" class=\"size-full wp-image-4726 alignright entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic.jpg\" alt=\"L293D Schematic\" width=\"495\" height=\"248\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic.jpg 495w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic-400x200.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic-350x175.jpg 350w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic-300x150.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic-280x140.jpg 280w\" data-lazy-sizes=\"(max-width: 495px) 100vw, 495px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 495px) 100vw, 495px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic.jpg 495w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic-400x200.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic-350x175.jpg 350w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic-300x150.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/L293D-Schematic-280x140.jpg 280w\"\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003eConnect 5V to  both pins 8 and 16. These are the motor and digital power pins respectively.\u003c\/li\u003e\n\u003cli\u003eConnect one of the ground pins (like pin 4) to ground. There are 4 pins, but only one needs to be connected for this exercise.\u003c\/li\u003e\n\u003cli\u003eConnect a smaller DC motor that draws less than 600mA to pins 3 and 6 (\u003cstrong\u003e1Y\/2Y\u003c\/strong\u003e).  These are the two motor driver outputs for one of the channels.\u003c\/li\u003e\n\u003cli\u003eApply 5V power and nothing will happen because we haven’t told the motor which direction to turn yet.\u003c\/li\u003e\n\u003cli\u003eConnect jumper wires to pins 2 \u0026amp; 7 which are the\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003e1A\/2A\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003econtrol pins for this full-bridge.\u003c\/li\u003e\n\u003cli\u003eConnect the other end of one of the wires to ground and the other wire to 5V.  The motor should start turning.\u003c\/li\u003e\n\u003cli\u003eNow swap the power and ground connections to these 2 wires and the motor should start turning in the opposite direction,\u003c\/li\u003e\n\u003cli\u003eFrom this we learn that we can control the motor direction using logic levels on these two pins as per the logic truth table above.\u003c\/li\u003e\n\u003cli\u003eNow connect a jumper wire to pin 1 (\u003cstrong\u003e1\u0026amp;2 EN\u003c\/strong\u003e). This pin is active HIGH.  If this jumper is connected to ground, the motor should stop.  If it is connected to 5V or simply left floating, the motor should run.  If you were quick enough you could plug this jumper in and out of the ground connection really fast and control the speed of the motor by momentarily enabling\/disabling the drive to it.   Using a PWM pin on a uC automates this process and allows us to control the speed of the motor under program control which we’ll do below.\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003ch3\u003eHooking the L293D up to a uC\u003c\/h3\u003e\n\u003cp\u003eTo take our simple setup to the next level, the program below automates the control of the basic setup above using an Arduino or similar uC and gives you control of the motor through the Arduino IDE Serial Monitor window by entering commands.  Your just need to connect the 1A\/2A and EN control pins on the IC to pins 9, 8 and 10 on an uC.  You can use other digital pins, just make sure that you redefine them in the program.  The EN pin does need to be connected to a PWM capable pin.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eThe valid commands to type into the Serial Monitor Window include:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eF\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Motor FORWARD\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eR\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Motor REVERSE\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eS\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Motor STOP\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eP\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Short for PWM, it sets or gets the motor speed.  P by itself does nothing.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e     P?\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Get the current speed setting from the uC\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e     P1\u003c\/strong\u003e –\u003cstrong\u003eP255\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Sets the PWM value which controls the speed of the motor.  This needs to all be typed on the same line before hitting ‘Send’ or the RETURN key to transmit  the command to the uC.\u003c\/p\u003e\n\u003cp\u003eNote that at low value speed settings like\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eP5\u003c\/strong\u003e, the motor will not turn because it is not getting enough power, but you may hear it whining a bit.  This varies by motor and the voltage that your are driving it at.   If 5V is too low for your motor, you can change the voltage on pin 8 to a higher value or just stick with higher PWM values.  You may have to use values in the range of\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eP25-50\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eto get things moving.\u003c\/p\u003e\n\u003cp\u003eThe directions of ‘\u003cstrong\u003eF\u003c\/strong\u003e‘orward and ‘\u003cstrong\u003eR\u003c\/strong\u003e‘everse are relative to how the motor is wired to the L293D.  The wires to the motor can be swapped if it is desired to reverse the direction relative to the commands being given.\u003c\/p\u003e\n\u003cp\u003eThe program is somewhat simplistic to keep it reasonably short.  If the PWM value is zero, it assumes this is because the number given could not be converted to an integer and ignores it.  This means you can’t send the command ‘\u003cstrong\u003eP0\u003c\/strong\u003e‘ to stop the motor because it will be ignored.  Use the ‘\u003cstrong\u003eS\u003c\/strong\u003e‘ command instead.\u003c\/p\u003e\n\u003ch3\u003eUsing The Serial Monitor Window To Send Commands\u003c\/h3\u003e\n\u003cp\u003eUsually the Serial Monitor window is used only for displaying returned characters from the Arduino.  Since we are using it also for input, it is worth noting a few things.\u003c\/p\u003e\n\u003cp\u003eWhen using the Serial Monitor window for input, the commands need to be typed into the small top window, not the main window.  A carriage return or hitting the ‘\u003cstrong\u003eSend\u003c\/strong\u003e‘ button sends the command typed into this window to the Arduino.\u003c\/p\u003e\n\u003cp\u003eThe program echos the command (like ‘\u003cstrong\u003eR\u003c\/strong\u003e‘) back to the main window.  This is confirmation that the command was received by the Arduino.  It then sends a string of what it is doing with that command (like ‘\u003cstrong\u003eMotor Reverse\u003c\/strong\u003e‘)  as confirmation that it not only received the command but also understood and executed the command.\u003c\/p\u003e\n\u003cp\u003eMake sure the baud rate is set to the rate you have set in the program.   Program sets it to a default of\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003e9600\u003c\/strong\u003e.\u003c\/p\u003e\n\u003cp\u003eOn my setup I find that if the default ‘\u003cstrong\u003eBoth NL \u0026amp; CR\u003c\/strong\u003e‘ setting is used at the bottom of the Serial Monitor window, the window tends to hang intermittently.  Commands are still be sent and acted on by the Arduino, but the output from the Arduino stops being shown.  Closing and reopening the windows temporarily clears the problem.  Using ‘\u003cstrong\u003eCarriage return\u003c\/strong\u003e‘ seems to work fine.  I am not sure why that is.\u003c\/p\u003e\n\u003ch3\u003eL293D Dual H-Bridge Motor Driver Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eExercise L293 Motor Driver IC\u003c\/span\u003e\n\u003cspan\u003eUses Serial Monitor window to issue commands for controlling a DC motor \u003c\/span\u003e\n\u003cspan\u003econnected to channels 1 \u0026amp; 2 on an L293D chip.\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eEN_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e10\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Must be PWM pin.  Connect to Pin 1 on L293\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eA1_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e9\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Can by any digital pin.  Connect to pin 2 on L293\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eA2_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e8\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Can by any digital pin.  Connect to pin 7 on L293\u003c\/span\u003e\n\n\u003cspan\u003echar\u003c\/span\u003e \u003cspan\u003ereadString\u003c\/span\u003e\u003cspan\u003e[\u003c\/span\u003e\u003cspan\u003e4\u003c\/span\u003e\u003cspan\u003e]\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ String array to hold PWM value typed in on keyboard\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003ePWM_Value\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e   \u003cspan\u003e\/\/ Our current PWM motor speed value\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eEN_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Initialize output pins\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eA1_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eA2_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e       \u003cspan\u003e\/\/ Initialize serial monitor\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n\u003cspan\u003e\/\/ Basically just loop while monitoring the serial port and then jump to DoSerial to\u003c\/span\u003e\n\u003cspan\u003e\/\/ handle incoming characters and act on them\u003c\/span\u003e\n\u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eavailable\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003eDoSerial\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Subroutine to handle characters typed via Serial Monitor Window\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eDoSerial\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eindex\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003ePWM_Test_Value\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003echar\u003c\/span\u003e \u003cspan\u003ech\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eread\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Read the character we know we have\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003ech\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e       \u003cspan\u003e\/\/ Echo character typed to show we got it\u003c\/span\u003e\n\n  \u003cspan\u003e\/\/ Use Switch\/Case statement to handle the different commands\u003c\/span\u003e\n  \u003cspan\u003eswitch\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003ech\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003ecase\u003c\/span\u003e \u003cspan\u003e'f'\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e   \u003cspan\u003e\/\/ Motor FORWARD command\u003c\/span\u003e\n  \u003cspan\u003ecase\u003c\/span\u003e \u003cspan\u003e'F'\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e   \u003cspan\u003e\/\/ This fall-through case statement accepts upper and lower case\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eA1_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eA2_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Motor Forward\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003ebreak\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\n  \u003cspan\u003ecase\u003c\/span\u003e \u003cspan\u003e'r'\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e   \u003cspan\u003e\/\/ Motor REVERSE command\u003c\/span\u003e\n  \u003cspan\u003ecase\u003c\/span\u003e \u003cspan\u003e'R'\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eA1_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eA2_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Motor Reverse\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003ebreak\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\n   \u003cspan\u003ecase\u003c\/span\u003e \u003cspan\u003e's'\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e   \u003cspan\u003e\/\/ Motor STOP command\u003c\/span\u003e\n   \u003cspan\u003ecase\u003c\/span\u003e \u003cspan\u003e'S'\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e\n    \u003cspan\u003e\/\/digitalWrite(EN_PIN, LOW);\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eA1_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eA2_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Motor Stop\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003ebreak\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\n  \u003cspan\u003ecase\u003c\/span\u003e \u003cspan\u003e'p'\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e  \u003cspan\u003e\/\/ Motor SPEED command\u003c\/span\u003e\n  \u003cspan\u003ecase\u003c\/span\u003e \u003cspan\u003e'P'\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e\n    \u003cspan\u003e\/\/ This command is a little trickier.  We are looking for a number from 0-255\u003c\/span\u003e\n    \u003cspan\u003e\/\/ to follow this command so we can set the PWM speed.  If we see a '?'\u003c\/span\u003e\n    \u003cspan\u003e\/\/ we will report our current speed setting, otherwise we start collecting chars\u003c\/span\u003e\n    \u003cspan\u003e\/\/ into the readString array.\u003c\/span\u003e\n    \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e2\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Give time for more characters to arrive.\u003c\/span\u003e\n    \u003cspan\u003efor\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003ei\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003ei\u003c\/span\u003e\u003cspan\u003e\u0026lt;\u003c\/span\u003e\u003cspan\u003e4\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003ei\u003c\/span\u003e\u003cspan\u003e++\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003ereadString\u003c\/span\u003e\u003cspan\u003e[\u003c\/span\u003e\u003cspan\u003ei\u003c\/span\u003e\u003cspan\u003e]\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e' '\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Clear buffer\u003c\/span\u003e\n    \u003cspan\u003ewhile\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eavailable\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e  \u003cspan\u003e\/\/ Read what we get and put into the string array\u003c\/span\u003e\n    \u003cspan\u003e{\u003c\/span\u003e\n      \u003cspan\u003echar\u003c\/span\u003e \u003cspan\u003ec\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eread\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n      \u003cspan\u003ereadString\u003c\/span\u003e\u003cspan\u003e[\u003c\/span\u003e\u003cspan\u003eindex\u003c\/span\u003e\u003cspan\u003e]\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003ec\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n      \u003cspan\u003eindex\u003c\/span\u003e\u003cspan\u003e++\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n      \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e2\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003e}\u003c\/span\u003e\n    \u003cspan\u003ereadString\u003c\/span\u003e\u003cspan\u003e[\u003c\/span\u003e\u003cspan\u003e3\u003c\/span\u003e\u003cspan\u003e]\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e''\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Append null to end of string array to make it a valid string\u003c\/span\u003e\n    \u003cspan\u003eindex\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e            \u003cspan\u003e\/\/ Reset our index back to the start of the string\u003c\/span\u003e\n    \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003ereadString\u003c\/span\u003e\u003cspan\u003e[\u003c\/span\u003e\u003cspan\u003eindex\u003c\/span\u003e\u003cspan\u003e]\u003c\/span\u003e \u003cspan\u003e==\u003c\/span\u003e \u003cspan\u003e'?'\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e   \u003cspan\u003e\/\/ ? means report our current speed setting and exit.\u003c\/span\u003e\n    \u003cspan\u003e{\u003c\/span\u003e\n      \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Current PWM Setting: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n      \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003ePWM_Value\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n      \u003cspan\u003ebreak\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003e}\u003c\/span\u003e\n    \u003cspan\u003ePWM_Test_Value\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eatoi\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003ereadString\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Try to convert string into integer\u003c\/span\u003e\n    \u003cspan\u003e\/\/ We assume a 0 value is because of a non-valid input and ignore the command\u003c\/span\u003e\n    \u003cspan\u003eif\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003ePWM_Test_Value\u003c\/span\u003e\u003cspan\u003e!=\u003c\/span\u003e\u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e   \n      \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003ePWM_Test_Value\u003c\/span\u003e \u003cspan\u003e\u0026gt;\u003c\/span\u003e \u003cspan\u003e255\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003ePWM_Value\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e255\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Cap WPM setting at 255\u003c\/span\u003e\n      \u003cspan\u003eelse\u003c\/span\u003e \u003cspan\u003ePWM_Value\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003ePWM_Test_Value\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n      \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003ePWM_Value\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e        \u003cspan\u003e\/\/ Echo what we end up with to confirm we got it\u003c\/span\u003e\n      \u003cspan\u003eanalogWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eEN_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003ePWM_Value\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e   \u003cspan\u003e\/\/ Set new speed on PWM pin.\u003c\/span\u003e\n    \u003cspan\u003e}\u003c\/span\u003e\n    \u003cspan\u003ebreak\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \n  \u003cspan\u003edefault\u003c\/span\u003e\u003cspan\u003e:\u003c\/span\u003e\n    \u003cspan\u003ebreak\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e10\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"703\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003e Operational Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eVcc2 (Motor)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e4.5-36V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eVcc1 (Internal Logic)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMax Current\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e600mA  (per channel)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMax Current  (non-repetitive)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e1.2A   (per Channel)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eVcc1 Max Current\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e60mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eDIP-16\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage Type\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePlastic, thru-hole\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMfr\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eTI \/ ST\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"http:\/\/www.ti.com\/lit\/ds\/symlink\/l293.pdf\" rel=\"noopener\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eL293D\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45674462970091,"sku":"","price":4.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/L293D-Motor-Driver-IC-1.jpg?v=1723007439","url":"https:\/\/keszooxstore.com\/products\/l293d-dual-h-bridge-motor-driver","provider":"Keszoox","version":"1.0","type":"link"}