Natively Pluggable Module

    motor-controller

    0.0.1 • Public • Published

    Motor Controller (Pololu TB9051FTG Dual)

    General

    Code to run motors using Pololu TB9051FTG Dual and Raspberry Pi

    Pinout

    • Left Motor negative pole -> M1A

    • Left Motor positive pole -> M1B

    • Right Motor negative pole -> M2B

    • Right Motor positive pole -> M2A

    • Battery Positive -> VIN

    • Battery GND ->GND

    • No need to make any changes between controller hat and raspberry pi, pins may vary between other brands and controllers which can be changed in motorDriver.js

    Installation

    • get the latest node:
    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
    sudo apt-get install -y nodejs
    • cd inside the motor-driver folder and run: npm install
    • To run the program: npm start or sudo node index.js (sudo is needed to control pins of Paspberry Pi)

    Install

    npm i motor-controller

    DownloadsWeekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    7.17 kB

    Total Files

    5

    Last publish

    Collaborators

    • tumeiesi