Priya Jain - skills dev 4

Made by Priya Jain

The goal of this project is to set up a servo and give it a physical form to conduct an action. Inspiration comes from Google Paper Signals.

Created: November 27th, 2021

0

I first made the circuit by following the diagram of how to connect the servo. The servo has 3 wire to connect. 

0
// This #include statement was automatically added by the Particle IDE.
#include <Adafruit_PWMServoDriver.h>

int servoPin = A3;
Servo myServo;
int servoPos = 0;

void setup() {
     myServo.attach( A3 );
     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 , 180);

   // Set the servo
   myServo.write( servoPos );

   // done
   return 1;
}
Click to Expand
0

I had to connect it is VUSB instead of 3V3 because the servo needed more power to work. Here is the video below of the servo connected to a particle function!

0
Skill dev 4 part 1
Priya Jain - https://youtu.be/wbNjOW2owLo
0

To give this servo movement meaning, I took inspiration from Google's Paper Signals project and wanted to recreate an object that signifies whether a stock has gone up or down. This would be helpful if a trader is waiting on when to buy a stock. If they see that it keeps going down in value they may get ready to buy.  

I had a foam core box made for a different project and decided to reuse it to give the servo form. This is a very low fidelity prototype. See the video below!!

0
Final skills dev 4
Priya Jain - https://youtu.be/icvfJJHf0kk
0
Reflection

I enjoyed doing this exercise. I really like the meaning behind Google's Paper Signals. It is a very nice way to give tangible form to information. I'd love to take more classes where I do more work with servos and motors in general. 

x
Share this Project

Courses

About

The goal of this project is to set up a servo and give it a physical form to conduct an action. Inspiration comes from Google Paper Signals.