Everyone has days where they feel a variety of mixed emotions. My project shows those emotions and how randomly they change in the moment. People can go from being really happy to being afraid and from being cool to feeling like their head will explode within minutes or seconds.
Materials Used:
Servo
Command Strip
Printed Objects on Paper
Uno R3
Arduino
Trifold Science Board
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
Servo myservo; // create servo object to control a servo | |
// twelve servo objects can be created on most boards\\ | |
void setup() { | |
myservo.attach(9); // attaches the servo on pin 9 to the servo object | |
} | |
void loop() { | |
myservo.write(random(0, 180)); | |
delay(3000); | |
} |
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.