Hello,
Just picked up a Sparki and have had success with the example programs and some original stuff, all except for one: Moving the distance sensor head.
I download the lesson code and uploaded the following - but nothing happens. Any ideas? Straight copy-paste of the code used follows below.
Thanks very much!
- Frank
********************** CODE BELOW ************************
#include <Sparki.h> // include the sparki library
void setup()
{
}
void loop()
{
sparki.servo(SERVO_LEFT); // rotate the servo to is -90 degree postion (left)
delay(1000);
sparki.servo(SERVO_CENTER); // rotate the servo to is 0 degree postion (forward)
delay(1000);
sparki.servo(SERVO_RIGHT); // rotate the servo to is 90 degree postion (right)
delay(1000);
sparki.servo(-90); // rotate the servo to is -90 degree postion (left)
delay(1000);
sparki.servo(0); // rotate the servo to is 0 degree postion (forward)
delay(1000);
sparki.servo(90); // rotate the servo to is 90 degree postion (right)
delay(1000);
}