8. SPRINT 1 - e-division-2019-2020-odd/Repo-06 GitHub Wiki
The fabrication of the subsystem involves the usage of one servo motor, 3 mm acrylic sheet. The acrylic sheet is cut using laser cutter.
interaction | power supply | giving instructions | sensing | |
---|---|---|---|---|
Movement and oscillation | data | - | yes | yes |
energy | yes | yes | yes | |
spatial | - | yes | yes |
#include<Servo.h> Servo S1,S2,S3,S4; int servoPos=0;
void setup() { // put your setup code here, to run once:
S1.attach(6); Serial.begin(9600); }
void loop() { // put your main code here, to run repeatedly: for(servoPos=0; servoPos<40; servoPos++) { S1.write(servoPos); delay(20); } for(servoPos=40; servoPos>0; servoPos--) { S1.write(servoPos);
delay(20);
}
}