Updates from November, 2013 Toggle Comment Threads | Keyboard Shortcuts
-
gaboratparsons
-
gaboratparsons
Piano Coffin Game
Video will be converted in 40 minutes. That’s the price to pay for not paying for Vimeo…
-
lauriewaxman
-
Yury Gitman
Control Servo with parseInt Command [Code Correction]
// Servo Control ParseInt
#include <Servo.h>Servo servo1; // declare a servo control object
void setup(){
Serial.begin(9600);
servo1.attach(9);}
void loop(){
static int position =0;if(Serial.available()){
position = Serial.parseInt();
Serial.print(“position is:”);
Serial.println(position);Serial.flush() ;
}
servo1.write(position);
}
-
Siwen Li
-
Yury Gitman
“The Working with Servo Motors Class”
Read: http://arduino.cc/en/Guide/Libraries
Read: http://arduino.cc/en/reference/servo
Read & Do: SparkFun Inventor Kit, Circuit #8.
Run Code: http://arduino.cc/en/Tutorial/Sweep
Run Code: http://arduino.cc/en/Tutorial/Knob
Rune Code: Servo parseInt (from class).
Home Work: Make a creative project/prototype that moves something with the motor. The motor can be pre-programmed to move in a pattern, a POT, FlexSensor, Soft POT [Exercise 9 & 10 in Sparkfun Book]. Be creative think of what interesting effects you can get when one motor. You can also use found object, control the trigger of a bubble gun for example.
-
sabotai
-
xinhe feng
-
Tim Xiaofeng Lin
Reply