Code Monkey home page Code Monkey logo

Comments (2)

jadonk avatar jadonk commented on July 24, 2024 1

You said "pins 1 or 0", but the connectors label the pins 1 and 2. It is common for hardware to begin indexes at 1 instead of 0.

The hardware design convention is pin 1 gets the square solder pad. You can find the solder pad from the bottom of the board or looking at the board layout.

image

The silkscreen attempts to communicate the clockwise numbering of the motor connectors, starting at the lower-right in your picture.

So, motor 1 pin 1 is the lower-right connector on the upper-most pin within that connector, whereas motor 1 pin 2 is the lower-right connector on the lower-most pin within that connector.

There is a nice TB6612FNG motor driver truth-table on Sparkfun's website. I've mapped the pins to the gpio/pwm numbers as defined in the librobotcontrol motor driver and schematic processor ball numbers below:

Mx In1 In2 PWM Out1 Out2 SW correction
M1 GPIO2.0 T13 GPIO0.31 U17 EHRPWM1A U14 2 1 -1
M2 GPIO1.16 R13 GPIO0.10 U17 EHRPWM1B T14 1 2 1
M3 GPIO2.9 R4 GPIO2.8 R3 EHRPWM2A U10 1 2 1
M4 GPIO2.6 R1 GPIO2.7 R2 EHRPWM2B T10 2 1 -1

Note that the software accounts for when Out1 is connected to pin 2 by performing a correction.

from beaglebone-blue.

dmalawey avatar dmalawey commented on July 24, 2024

This helps very much! Will add this to our robot slides. Thank you.

from beaglebone-blue.

Related Issues (20)

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.