Upload
gary-chang
View
215
Download
0
Embed Size (px)
DESCRIPTION
[Technical Study]: For developing basic kinetic or interactive design projects, participants will need to learn basic interactive techniques from simulation to physical computing. Arduino, a well-known microcontroller, will be heavily experimented in this workshop. During the workshop, participants will get the general idea about the basic electronic engineering knowledge and how to use micro-controllers and embed sensing and actuation systems to build the physical prototype. However, they can start experiment the kinetic mechanism by studying physical model as well as virtual simulation through 3D modeling software (Rhino, Maya, Grasshopper...etc). The idea of cellular component and self-organized logics should lead the final projects to an emergent morphological body via collective decision making. Laser-cutting as a digital fabrication technique will also be utilized under the constraint of "using sheet material" for producing the physical prototypes.
Citation preview
A shape-memory alloy (SMA, smart metal, memory metal, memory alloy, muscle wire, smart alloy) is an alloy that "remembers" its original shape and that when deformed returns to its pre-deformed shape when heated.
/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ // Pin 13 has an LED connected on most Arduino boards.// give it a name:
int led = 9;
// the setup routine runs once when you press reset:void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); }
// the loop routine runs over and over again forever:void loop() { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(3000); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(3000); // wait for a second}
Change it to 9, otherwise you will burn it
Change the time longer
Basically, the same code as: Ardiuno/Example/Basic/Blink
#include <Servo.h> Servo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created int inPin = 0; int pos = 0; // variable to store the servo position int newPos; //position for remap void setup() {
myservo.attach( 9 ); // attaches the servo on pin 9 to the servo object } void loop() { pos = analogRead(inPin); newPos = map(pos,0,1023,0,179); myservo.write(newPos); delay(15);}
Read the data from “A0”Remap the data from 0-180
Output data
Upload the code: File > Examples > Servo> Knob.