Connecting pins of L293D to pins of inverter 7404

arduinoinvertermicrocontroller

I would like to know the right configuration of pins using a 7404 inverter while the pins are connected to an L293d. When connected for driving DC motors why must an inverter be used? The pins through the inverter are used as pins with PWM. Can the three pins of from the L293d be connected to microprocessor along with the ENABLE pin on the L293d or must the inverter be used?

Here is a diagram:

enter image description here


I'm sorry, but I mean that your answers are very similar to shown diagram above. It seems normal that I understood just like you. But I want to know why is involvement of inverter important? Inverter is for appropriate to increase the voltage? Via this method of connection my robot arm uncontrollably moves after uploading the source code on the Arduino and via serial communication. Here is another diagram shown below, where two inputs of each side L293 are connected to output pins of Arduino. It is done correctly ?

I´m sorry for my grammar mistakes.

Thank you in advance for your help and your time

enter image description here

Here below another diagram is, as far you want to see it. enter image description here Are these inverters recommended for controlling DC motor on the imaginary robot arm? What is the importance of using invertors 7404 on the breadboard? I have ceramic condensators 33pF which they´re lying around two output pins of DC motor. Are these things necessary and why are is used?

Thank you.

Best Answer

If you really must avoid the use of the inverter IC, an alternative is to create your own inversion in software, using more of the Arduino pins:

Each of the outputs generated by your Arduino code is being used to generate a positive and a matching negative signal via the inverter, to drive opposing halves of the H-Bridge in the L293.

To achieve the same result in software, if your code uses something like DigitalWrite(pin1, x) on a given pin, you will have to assign another pin and add another DigitalWrite(pin2, !x) immediately following the previous line of code. This will generate the inverted signal, which you would feed in where the inverter output line goes in your current circuit.

If, however, PWM and AnalogWrite() are used as your method of motor control, some slightly more involved coding will be needed to generate PWM that is exactly opposite in phase to the existing PWM outputs. This may well be within your skills (or not), but I'll refrain from coding it for you in this answer.

If you need help with that, it deserves a separate question.

Related Topic