Connect L293D Motor Shield to ESP32

Hi. I am wondering if it is possible to connect the L293D Motor Shield to ESP32Cam? I am working on a project with ESP32Cam mounted on a DC Car with Pan/Tilt using 2 servos and I have only the L293D MotorShield which is stackable and easy to connect with Arduino Uno. And I don't see any tutorial regarding this. .Does anyone successfully have done that? IF POSSIBLE . Thanks
images (4)

Look at the features of both parts.

L293 has inputs
ESP32 has outputs

therefore

connect ESP32 to L293 using those inputs and outputs, after studying the characteristics of both.

About research:

Suppose I want to use a camel to pull a car. All the hits I get on Google I find are jokes and hoaxes, nothing...
But if I search on "pulling a car" and "using a camel" I can get enough information to steer me in the right direction.

1 Like

yes I think its possible with the IC L239D..but I am talking about the motor shield

What research have you done? Have you compared the connections on the board you want to use? Does the shield not use the chip you mentioned? Sure it does, so what is your doubt?

1 Like

Im in the process of programming a library for the Esp32.
My research so far:

  • the motor direction is stored in a 8bit shift register (74hc595) 2bit for each motor.
  • the direction bit logic is 0-1 = clockwise 1-0 = anti-clockwise 0-0 or 1-1 = stop
  • speed is controlled by applying a PWM signal to the EN-pins of the l293d

The pinout: GPIOs of my D1 R32 clone
/*
D3 PWM2B M2 | GPIO25
D4 Dir_CLK | GPIO17
D5 PWM0B M3 | GPIO16
D6 PWM0A M4 | GPIO27
D7 Dir_EN | GPIO14
D8 DIR_SER | GPIO12
D9 PWM1A Servo1 | GPIO13
D10 PWM1B Servo2 | GPIO5
D11 PWM2A M1 | GPIO23
D12 DIR_Latch | GPIO19
*/

The shift registry:
QA/0 = M3A LSB
QB/1 = M2A
QC/2 = M1A
QD/3 = M1B
QE/4 = M2B
QF/5 = M4A
QG/6 = M3B
QH/7= M4B MSB
QH/7S = not connected

1 Like

okay.. and??? What is your need or question?

Good Day @tntkenner. I am also new to microcontrollers and I wondering if I can use this pinout for a ESP32 DevKitC? What library did you use? Should I still use the Adafruit Motor Shield Library V1? And what is the purpose of the shift registry, should I put it in my code (if possible can I get an example) ? Thank you so much!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.