servo test using potentiometer

#include <Servo.h>

Servo servo; // create servo obj
const int servoPin = 3; //using pin #3 on Arduino

void setup() {
servo.attach(servoPin);
}

void loop() {
// potentiometer controlling servo
int val = analogRead(A0); //initiate val, A0 value assigned to val
val = map(val, 0, 1023, 0, 169); // val range: 0-1023 -> 0-169
servo.write(val);
Serial.println(val);
delay(20);
}

why I wrote a book

a short paragraph from the closing:

…This is just one conventional way of doing a studio, by no means an exhaustive list of procedures or methods of design. It is a sample set of thoughts and the results of design exercises conducted by many students. The works may or may not be fancy but they are produced by beginners. We wanted not to let the examples sleep on our hard drives and servers on the cloud services. Instead we like to deliver it as-is to motivate more beginning students who are curious about how to initiate in either a formal or informal setting design studios for almost all design disciplines that need to deal with three dimensional form-making. Although we couldn’t provide more explanations on real-life materials and model making processes at this time, we hope they can be provided by individual instructors with fresher eyes and newer methods…