Sparki angle correction

The Easy Robot for Everyone!

Sparki angle correction

Postby OrnCalvin » Thu Dec 01, 2016 10:31 am

Hey everyone,

We have a project with friends using Sparki.
We are trying to make Sparki traversing an empty room avoiding wall.
Our code is good, Sparki traverses it. But we are trying to get the position back.

And we notice an error when he turns with the function sparki.moveRight or sparki.moveLeft. In fact, in the code we put sparki.moveRight(90) or sparki.moveLeft(90) and in reality it turns 93° or 87°, we would like him to be more accurate and do exactly 90°. I think maybe there might be a problem with the stepper.

We looked into sparki.cpp, and we were not able to find how to get him more precised.
We take a picture of what it should have done (orange) and what he really do using the pen(black).


If someone had the same problem and found a solution, we will be glad to hear about it.

Cheers guys
Attachments
15302345_10211346999375343_1534217390_o.jpg
Sparki movement
OrnCalvin
 
Posts: 1
Joined: Thu Dec 01, 2016 10:09 am

Return to Sparki

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests

cron