can L293D Motor Driver/Servo Shield for Arduino be used with the pyboard?

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
booboo
Posts: 3
Joined: Tue Oct 30, 2018 2:58 pm

can L293D Motor Driver/Servo Shield for Arduino be used with the pyboard?

Post by booboo » Tue Oct 30, 2018 3:11 pm

i am trying to make a project using a pyboard for which i require to use a motor driver as my board cannot draw the required current. I want to ask if the L293D Motor Driver/Servo Shield for Arduino can be used with pyboardand if so how? If not please recommend me a compatible one.

Thanks

OutoftheBOTS_
Posts: 420
Joined: Mon Nov 20, 2017 10:18 am

Re: can L293D Motor Driver/Servo Shield for Arduino be used with the pyboard?

Post by OutoftheBOTS_ » Tue Oct 30, 2018 8:37 pm

You will more than likely be able to use it.

U will have to post the exact board you have for people to be able to give advice on it as there is many L293D boards.

I mainly use a L9110 as a H-bridge for driving motors as it has a very small forward voltage and is compact and cheap see https://www.aliexpress.com/item/L9110S- ... st=ae803_5

booboo
Posts: 3
Joined: Tue Oct 30, 2018 2:58 pm

Re: can L293D Motor Driver/Servo Shield for Arduino be used with the pyboard?

Post by booboo » Wed Oct 31, 2018 3:18 pm

I am using the following one:
https://www.amazon.in/Robotbanao-L293D- ... iver&psc=1

P.S. Can tyo guide me on how to se it

User avatar
dhylands
Posts: 2881
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: can L293D Motor Driver/Servo Shield for Arduino be used with the pyboard?

Post by dhylands » Wed Oct 31, 2018 4:32 pm

This looks the same as the adafruit one and they have schematics here:
https://github.com/adafruit/Adafruit-Mo ... or-Arduino

It looks like they use a shift register to control the direction lines and use PWM to control the speed. So you'll need to hook up the appropriate lines and generate the right kinds of signals.

Adafruit has the Arduino libraries available here: https://github.com/adafruit/Adafruit-Mo ... ld-library which you can use as reference.

booboo
Posts: 3
Joined: Tue Oct 30, 2018 2:58 pm

Re: can L293D Motor Driver/Servo Shield for Arduino be used with the pyboard?

Post by booboo » Fri Nov 02, 2018 2:14 pm

what do you mean by the right kinds of signals? Plz guide me!

User avatar
dhylands
Posts: 2881
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: can L293D Motor Driver/Servo Shield for Arduino be used with the pyboard?

Post by dhylands » Fri Nov 02, 2018 4:36 pm

Well you need to generate a PWM signal on the PWM0A, PWM0B, PWM2A, and PWM2B lines (those names came from the schematics).

And then you need to control the M1A, M1B, M2A, M2B, M3A, and M3B signals (see the L293D datasheet for details) to control the behaviour of the H-Bridge. These signals connect up to a shift register and you need to control it using a shift register (74HCT595N) using the DIR_SER, DIR_CLK, DIR_LATCH, and DIR_EN signals. Again, refer to the datasheet for details.

Post Reply