Ardublock Gripper examples don't work


#1

I’m finding that the Ardublock examples on this page don’t work
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()
{
}


#2

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);

}


#3

bump


#4

Anyone