Page 1 of 1

Ardublock Gripper examples don't work

PostPosted: Fri Mar 10, 2017 3:48 am
by lawrence_jeff
I'm finding that the Ardublock examples on this page don't work
http://arcbotics.com/lessons/ardublock- ... e-gripper/

Comparing these to the Sparkduino examples it seems the block examples all pass a 0 as an argument (ex sparki.gripperOpen(0)). This causes the gripper to not move, if you remove the 0 from the generated code and call sparki.gripperOpen() the examples work?

Is this expected? Would seem surprising that all the examples are broken...

Also I see odd behavior if I call consecutive open close
For example I would expect this program to open the gripper 2cm and then close it 2cm, but when ran it only closes for 2 cm, the open is skipped.

Any ideas?

#include <sparki.h>

void setup()
{
sparki.gripperOpen(2);
sparki.gripperClose(2);
}

void loop()
{
}

Re: Ardublock Gripper examples don't work

PostPosted: Fri Mar 10, 2017 3:58 am
by lawrence_jeff
Adding to this - it seems if you have consecutive commands only the last one runs. Take this example where you think it would be moving for quite a while, it only runs the last open 3 cm command, all prior are skipped.

Do I possibly have a bad version of the libraries installed- this is a rather fresh install of all the software

void setup()
{
sparki.gripperOpen(2);
sparki.gripperStop();
sparki.gripperClose(2);
sparki.gripperStop();
sparki.gripperOpen(2);
sparki.gripperStop();
sparki.gripperClose(2);
sparki.gripperStop();
sparki.gripperClose(2);
sparki.gripperStop();
sparki.gripperClose(2);
sparki.gripperStop();
sparki.gripperClose(2);
sparki.gripperStop();
sparki.gripperOpen(3);

}

Re: Ardublock Gripper examples don't work

PostPosted: Sat Mar 18, 2017 2:55 pm
by lawrence_jeff
bump