More Dual Motor Board Software Questions

Started by jgavlik, October 20, 2020, 06:35:41 PM

Previous topic - Next topic

jgavlik

****
Sr. Member
Posts: 68
Logged
Are there a (complete) set of motor commands as hinted in the "TinyCircuits Dual Motor Driver Basic Example"

for example...
  motor.setFailsafe(1000);
    motor.setMotor(1,i);
    motor.setMotor(2,i);

Are there any more like this??

Thanks,
John

lennevia

Administrator
*****
Hero Member
Posts: 437
Logged
John,

There is also an alternative setMotor() function with a third useBrakes input of true or false for stopping the motors.

There is also a sleep() function that will power down the motors.

You can look in the library for the functions: https://github.com/TinyCircuits/TinyCircuits-ATtiny841-Library/blob/master/MotorDriver.cpp

Réna

jgavlik

****
Sr. Member
Posts: 68
Logged

SMF spam blocked by CleanTalk