Skill Dev IV

Made by Felicia Luo

This prototype is meant to explore how to frame an indication using as simple as two sticks.

Created: December 17th, 2022

0

Outcome

0

Process

  • I was going to use four servos to make a paper art consisting of two rotating half circles. But limited to the available servos, I unscale to two and start exploring other ideas.
  • I came up with the idea of using sticks to indicate something inspired by the clock needles. As two sticks is about to form an arrow pointing to something, or frame a corner surrounding something, this prototype can have adaptable use. 

0

Reflection

  • As a rather straightforward prototype, it could be expanded further if I set up a relationship between the positions of the two servos, so that they are interrelated by different, such that the prototype could be used as a timer/clock. Or I could provide more context, for example, use it as a busy/available indicator, and connect it to the calendar.

0
// define servo
Servo servo0;
Servo servo1;

int servoPos = 0;


void setup() {
    // attaches the servo on the A2-5 pins to the servo objects
    servo0.attach( A2 );
    servo1.attach( A3 );
  
    //Register our Particle to control the servo
    Particle.function("servo", servoControl);
    
    // Keep a cloud variable for the current position
    Particle.variable(  "servoPos" , &servoPos , INT );
}

void loop() {
}

int servoControl(String command)
{
    // Convert
   int newPos = command.toInt();
   // Make sure it is in the right range
   // And set the position
   servoPos = constrain( newPos, 0 , 270);

   // Set the servo
   servo0.write( servoPos );
   servo1.write( servoPos );

   // done
   return 1;
}
Click to Expand
x
Share this Project

Courses

About

This prototype is meant to explore how to frame an indication using as simple as two sticks.