Make Sparki go faster by changing speed parameter?

The Easy Robot for Everyone!

Make Sparki go faster by changing speed parameter?

Postby TrnsltLife » Fri Dec 08, 2017 8:20 pm

I wanted Sparki to move faster and so I've used:

Code: Select all
sparki.speed(160);

to increase its speed. And that works. Anything above 160 seems to just freeze the wheel motors though.

Also, the gripper doesn't work above a speed of 100, so I use the lower level calls:

Code: Select all
//limits.h defines ULONG_MAX
#include <limits.h>

//close gripper
sparki.motorRotate(MOTOR_GRIPPER, DIR_CW, 100, ULONG_MAX);

//open gripper
sparki.motorRotate(MOTOR_GRIPPER, DIR_CCW, 100, ULONG_MAX);


Is there any danger of damaging the wheel motors by running them at this higher speed?
TrnsltLife
 
Posts: 2
Joined: Mon May 01, 2017 4:00 pm

Re: Make Sparki go faster by changing speed parameter?

Postby roboalchemist » Mon Dec 11, 2017 10:50 pm

Increasing speed won't damage the motors. Turning them faster will make them weaker, though, especially as the batteries get weaker. As you discovered, you can make them get so weak they won't even turn any more.
---
Joseph Schlesinger - ArcBotics Co-Founder/CTO
roboalchemist
Site Admin
 
Posts: 674
Joined: Mon Jul 16, 2012 3:02 am


Return to Sparki

Who is online

Users browsing this forum: No registered users and 7 guests

cron