l293d | Python module to drive DC motors

 by   jmsv Python Version: 0.3.4 License: MIT

kandi X-RAY | l293d Summary

kandi X-RAY | l293d Summary

l293d is a Python library typically used in Internet of Things (IoT), Raspberry Pi applications. l293d has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install l293d' or download it from GitHub, PyPI.

Python module to drive DC motors from a Raspberry Pi using the L293D chip
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              l293d has a low active ecosystem.
              It has 16 star(s) with 15 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 58 have been closed. On average issues are closed in 73 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of l293d is 0.3.4

            kandi-Quality Quality

              l293d has 0 bugs and 0 code smells.

            kandi-Security Security

              l293d has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              l293d code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              l293d is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              l293d releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed l293d and discovered the below as its top functions. This is intended to give you an instant insight into l293d implemented functionality, and help decide if they suit your requirements.
            • Move the motor clockwise
            • Drive the motor
            • Drive motor
            • Check that this motor has been removed
            • Stop the motor
            • Returns the string representation of the motor pins
            • Cleanup GPIO
            • Print a human readable string
            • Print the given string
            • Make the robot motion
            Get all kandi verified functions for this library.

            l293d Key Features

            No Key Features are available at this moment for l293d.

            l293d Examples and Code Snippets

            No Code Snippets are available at this moment for l293d.

            Community Discussions

            QUESTION

            Error in code. Lua on NodeMCU
            Asked 2020-Apr-22 at 11:08

            I have a motorized roller blind project. I am following this instructable: https://www.instructables.com/id/Motorized-WiFi-IKEA-Roller-Blind/ .

            I am using the code in the instructable, but I suspect tha fault is in one of these codes:

            config.lua

            ...

            ANSWER

            Answered 2017-Sep-19 at 07:18

            Let's parse the error message one by one:

            Source https://stackoverflow.com/questions/46287888

            QUESTION

            Programming in Python: Controlling Stepper Motor + Raspberry Pi Zero + L293D IC
            Asked 2018-Nov-23 at 09:52

            (Warning! I am not educated on this topic)

            Hey folks. I'm posting here because I have a friend who desperately needs help with her project. I'm familiar with scripting, but not too much with programming. I do work in IT, so I'll do my best to provide the necessary information. She's trying to program a Raspberry Pi Zero to control a stepper motor using Python 3. Simple as that.

            She followed these tutorials. Looks like she used the parts and wiring from #1 and the code from #2:

            1. https://tutorials-raspberrypi.com/how-to-control-a-stepper-motor-with-raspberry-pi-and-l293d-uln2003a/

            2. https://www.raspberrypi.org/forums/viewtopic.php?f=49&t=55580

            Helpful pictures here. This is her actual setup: https://photos.app.goo.gl/WJbCo4UU3wAdo8913

            Helpful notes: She mentioned she is not using a resistor between the power source and the L293D Driver IC.

            Parts Used:

            -Raspberry Pi Zero (Pi 2 or 3 was recommended, but the Zero has the same pin-out as the 2 & 3. She just had to solder on her own double-header)

            -12V DC Power Bank

            -Nema 17 Stepper Motor (https://www.amazon.com/STEPPERONLINE-17HS13-0404S1-Stepper-Motor-Printer/dp/B00PNEQ9T4)

            -L293D Motor Driver IC (https://www.amazon.com/NDRTJM-SHOMPFL1045-L293D-Stepper-Driver/dp/B008XCGLNM)

            -Breadboard w/ jumper cables (Duh!)

            The code that she's using is below. When she attempts to run it, the motor just vibrates. Seems like it's repeatedly taking a step forward and a step back. No error codes are received. She also tried using another Nema 17 Stepper Motor that drawed 2A, but dropped down to the Nema 17 that draws .4A and gets the same result.

            ...

            ANSWER

            Answered 2018-May-15 at 20:52

            It looks like you're most of the way there... but the particular sequence isn't making the stepper step. With the L293D, the IO pin values are essentially what we drive the coil with, and I guess here coil_A and coil_B are the two coils with 1 and 2 being the ends of them (two coils is typical in a bipolar stepper motor). So the states you've applied are:

            Source https://stackoverflow.com/questions/50358413

            QUESTION

            The right motor on my line sensor Arduino robot runs even when the requirements to run it are not met
            Asked 2017-Aug-27 at 03:53

            So in this Arduino code for a line sensor robot using RedBot line sensors, the right motor seems to be running even when both sensors are detecting black (a line). This does not happen on the right motor so I suspect it has something to do with the first "if" statement.

            The motor does stop however when only the right sensor detects black and this makes only the left motor run. I'm not sure what the problem is that is making the right motor run even when its condition isn't met and this is not a problem with the sensor btw. I am using an L293D motor driver to control the motors but I doubt it has anything to do with that.

            ...

            ANSWER

            Answered 2017-Aug-26 at 18:09

            There is something wrong with the order of your tests:

            Source https://stackoverflow.com/questions/45898099

            QUESTION

            Using Arduino and Motor Shield
            Asked 2017-Apr-15 at 23:41

            I am a beginner in Arduino.

            I want to connect 2 motors to Arduino. Why do we require txhe motor shield? And if yes please explain why is it required? Also can I use an amplifier for the same.

            Another question, I have SLAEX039 L293D Motor Shield. Does using this motor shield restrict arduino's pin usage? I mean we can't use the arduino pins if we use the motor shield right, can we?

            Thank a lot

            ...

            ANSWER

            Answered 2017-Apr-15 at 23:41

            The core reason that we require motor shields is because the Arduino, on its own, cannot power a motor with its IO pins.

            The digital IO pins on the AVR based Arduinos (such as the Uno) are only rated to supply up to 40mA of current at 5V - they are designed for signalling hardware, not driving loads such as motors, that can run to several Amps at higher voltages at peak loads.

            Fortunately, there are devices that are designed to control heavy loads such as motors based on these logic level signals - we typically call these drivers. The L293D is such a driver, which connects to a logic device like the Arduino for signalling and then drives a motor from another supply.

            While you can use a cheap, standalone L293D device on its own, it's often more convenient to use one carried on a shield, which correctly connects the driver as well as provides connectors for the external power and motor.

            Ultimately, you don't require a shield, but you do need some form of driver to take the logic level signals from the Arduino, and shields are convenient ways of providing these.

            http://www.ti.com/lit/ds/symlink/l293.pdf is a datasheet for a L293D device from TI, showing the various ways it can drive a motor based on the signals it receives.

            Source https://stackoverflow.com/questions/43432265

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install l293d

            You can install using 'pip install l293d' or download it from GitHub, PyPI.
            You can use l293d like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install l293d

          • CLONE
          • HTTPS

            https://github.com/jmsv/l293d.git

          • CLI

            gh repo clone jmsv/l293d

          • sshUrl

            git@github.com:jmsv/l293d.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link