Giter VIP home page Giter VIP logo

drv8711's People

Contributors

marktillotson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

drv8711's Issues

Power Level / Torque / etc

Good day

Thank you for a really awesome library, I got my boost pack spinning using your library off an Arduino quicker than I could download Code Composer studio (so that was a $9.99 waste lol)

Anyway, my use for your library will be primarilly to init the DRV8711, I tried figuring it out by looking at the .h and .cpp files but I must admit I am a little clueless.

Let me elaborate.

I'd create my object as DRV8711 xmotor(CSpin) ; (final version will have 4 devices on the SPI bus, thus each with their own CS pin. Easy enough

Next I need to init the driver, now using your example I got it spinning in no time at all:

xmotor.begin (60, 8, 2, 0, 1, 0) ;

From the .cpp I gathered:

void DRV8711::begin (byte drive,
unsigned int microsteps,
byte decay_mode,
byte gate_speed,
byte gate_drive,
byte deadtime)

Can you elaborate on what I need to make said values ?

I played with the 2nd byte for example, setting it to 16 and 4 in turn. In 4 the motor stalls (so my step rate is probably too high for 1/4 step, in 16 it seems to run slower (more steps per rotation as expected), so it looks like thats easy enough, should be 16 for 1/16th microstep, and maybe 256 for 1/256 microsteps?

Decay mode

I see in the .h:

define DRV8711DEC_SLOW_DECAY 0x000

define DRV8711DEC_SLOW_MIXED 0x100

define DRV8711DEC_FAST_DECAY 0x200

define DRV8711DEC_MIXED_DECAY 0x300

define DRV8711DEC_SLOW_AUTOMIX 0x400

define DRV8711DEC_AUTOMIX 0x500

So in your example

xmotor. stepper.begin (60, 8, 2, 0, 1, 0) ;

the 3rd byte is 2, is that read as from the table in drv8711.h that 2 = FAST DECAY? And thus if I want Automix instead for example I set the 3rd byte to 5?

The default dead time, gate drive and gate speed should stay the same since I am using the same mosfets as the boost pack....

So my last question is the first byte: DRIVE - set to 60 in your example. Is that 60% torque? I.e. 60% of the 5A setting?

Sorry about the stupididy of the questions. I will update the example sketch with comments and submit a pull request once I figured it out a little better with your answers' help.

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.