Giter Site home page Giter Site logo

qub1750ul / arduino_l293 Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 5.0 180 KB

Arduino library that allows to control electric motors with the L293x and L298x compatible modules

License: Creative Commons Attribution Share Alike 4.0 International

C++ 93.21% C 6.79%
arduino arduino-library bidirectional-motors l293 l298 motor

arduino_l293's Introduction

Hi there ๐Ÿ‘‹

arduino_l293's People

Contributors

njh avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

arduino_l293's Issues

Can this be used to run IC with two PWM inputs

Hi qub1750ul,

Is it possible to use this library to run two DC motor drivers (such as the DRV8870) that use two PWM inputs to control speed and direction?

I assume it could work with the 3 wire setup and just ignore the enable input.

Regards and have a great day.
George

Won't compile, Arduino IDE 1.8.5

The examples won't compile. Installed via library manager in Arduino IDE 1.8.5.

Error Code:
Arduino: 1.8.5 (Windows 10), Board: "Arduino Nano, ATmega328P"

In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293.h:15:0,

from C:\Users\MrX\Documents\Arduino\libraries\L293\examples\MotorControl_Demo\MotorControl_Demo.ino:44:

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:20:16: warning: inline function 'virtual void L293::forward(uint8_t)' used but never defined

inline void forward( uint8_t _PWMDC = 0 ) override ; ///< Makes the motor to go forward and sets a new speed value

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:21:16: warning: inline function 'virtual void L293::back(uint8_t)' used but never defined

inline void back( uint8_t _PWMDC = 0 ) override ; ///< Makes the motor to go reverse and sets a new speed value

In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:3:0,

from C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293.h:15,

from C:\Users\MrX\Documents\Arduino\libraries\L293\examples\MotorControl_Demo\MotorControl_Demo.ino:44:

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_base.hpp:19:18: warning: inline function 'void L293_base::stop() const' used but never defined

inline void stop() const ; ///< Stops the motor by power reduction

In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293.h:15:0,

from C:\Users\MrX\Documents\Arduino\libraries\L293\examples\MotorControl_Demo\MotorControl_Demo.ino:44:

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:22:16: warning: inline function 'virtual bool L293::isForward() const' used but never defined

inline bool isForward() const override ; ///< Tells the information about the motor that the name says

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:23:16: warning: inline function 'virtual bool L293::isReverse() const' used but never defined

inline bool isReverse() const override ; ///< Tells the information about the motor that the name says

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:24:16: warning: inline function 'virtual bool L293::isStopped() const' used but never defined

inline bool isStopped() const override ; ///< Tells the information about the motor that the name says

In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_std.hpp:3:0,

from C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_std.cpp:1:

C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_base.hpp:19:18: warning: inline function 'void L293_base::stop() const' used but never defined

inline void stop() const ; ///< Stops the motor by power reduction

C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_base.hpp:21:19: warning: inline function 'uint8_t L293_base::getPWMDC() const' used but never defined

inline uint8_t getPWMDC() const ; ///< Return the effective last set speed value

In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_twoWire.hpp:3:0,

from C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_twoWire.cpp:1:

C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_base.hpp:19:18: warning: inline function 'void L293_base::stop() const' used but never defined

inline void stop() const ; ///< Stops the motor by power reduction

C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_base.hpp:21:19: warning: inline function 'uint8_t L293_base::getPWMDC() const' used but never defined

inline uint8_t getPWMDC() const ; ///< Return the effective last set speed value

Archiving built core (caching) in: C:\Users\MrX\AppData\Local\Temp\arduino_cache_986469\core\core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.a
C:\Users\MrX\AppData\Local\Temp\ccJ1F5xU.ltrans0.ltrans.o: In function `L293::back(unsigned char)':

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.cpp:39: undefined reference to `L293_base::stop() const'

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.cpp:42: undefined reference to `L293_base::getPWMDC() const'

C:\Users\MrX\AppData\Local\Temp\ccJ1F5xU.ltrans0.ltrans.o: In function `L293::forward(unsigned char)':

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.cpp:29: undefined reference to `L293_base::stop() const'

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.cpp:32: undefined reference to `L293_base::getPWMDC() const'

C:\Users\MrX\AppData\Local\Temp\ccJ1F5xU.ltrans0.ltrans.o: In function `L293::~L293()':

C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:11: undefined reference to `L293_base::~L293_base()'

C:\Users\MrX\AppData\Local\Temp\ccJ1F5xU.ltrans0.ltrans.o: In function `loop':

C:\Users\MrX\Documents\Arduino\libraries\L293\examples\MotorControl_Demo/MotorControl_Demo.ino:76: undefined reference to `L293_base::stop() const'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Nano.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.