Ardublock Gripper examples don't work

The Easy Robot for Everyone!

Ardublock Gripper examples don't work

Postby lawrence_jeff » Fri Mar 10, 2017 3:48 am

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()
{
}
lawrence_jeff
 
Posts: 5
Joined: Fri Mar 10, 2017 3:39 am

Re: Ardublock Gripper examples don't work

Postby lawrence_jeff » Fri Mar 10, 2017 3:58 am

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

}
lawrence_jeff
 
Posts: 5
Joined: Fri Mar 10, 2017 3:39 am

Re: Ardublock Gripper examples don't work

Postby lawrence_jeff » Sat Mar 18, 2017 2:55 pm

bump
lawrence_jeff
 
Posts: 5
Joined: Fri Mar 10, 2017 3:39 am

Re: Ardublock Gripper examples don't work

Postby lawrence_jeff » Sun Apr 09, 2017 1:04 am

Anyone
lawrence_jeff
 
Posts: 5
Joined: Fri Mar 10, 2017 3:39 am


Return to Sparki

Who is online

Users browsing this forum: Bing [Bot] and 17 guests

cron