-3

I have explored the web looking for controlling my 2 dc motors without l293d or something like that..

I couldn't understand why I need it and couln't find project without it or something familiar..

Therefore I have few questions:

  1. What is it and what it does?
  2. Can I run motor on PI 3 without it?
  3. I have 1538HXL no idea what is it but can he replace l293d (cause it look the same as l293d) and if so someone have project for example?

closed as off-topic by joan, techraf, Aurora0001, Dmitry Grigoryev, Milliways Mar 22 '18 at 3:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – joan, techraf, Milliways
If this question can be reworded to fit the rules in the help center, please edit the question.

  • L293D are called motor drivers, they drive the current to the Motor and RPi cannot provide current enough directly to drive the motors. – MaNyYaCk Mar 13 '18 at 17:00
  • @MaNyYaCk This is why I use external power source – barsaar Mar 13 '18 at 17:03
  • Can you please provide a link to the 1538HXL? I can't seem to find one. – NomadMaker Mar 13 '18 at 17:26
  • How is your external power source connected if not through some sort of external chip? You provided the external power but then also need to control the current flowing from that source into the motor with something external. – Brick Mar 13 '18 at 18:38
2

Controlling a DC motor takes more power than the GPIO pins of a Raspberry Pi can directly source. In other words, if you try to connect a GPIO pin of a Raspberry Pi directly to a motor you will burn out the Pi.

You can control a DC motor in one direction with a transistor. Here is an example. This example uses an Arduino rather than a Raspberry Pi, but the electronics are the same.

That is the easiest version of a motor controller. I tend to use prebuilt motor controller. Adafruit carries a couple Hats for the Pi. This one controls up to 4 DC motors or 2 stepper motors. This one controls up to 2 DC motors.

If you need to control a larger motor, there is an excellent group of motor controllers at Servo City. I use the RoboClaw series of controllers for my robots.

  • 1
    The Pi pins can probably source the power, the GPIO can not. – joan Mar 13 '18 at 17:59
  • The power pins might be able to source the power for a small motor, but the controllable pins (the GPIO) cannot. Most of the Pi pins are GPIO, are they not? I will edit my answer to make that clear. – NomadMaker Mar 13 '18 at 18:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.