# Week 5 motor testing – auto destructive piece

For this homework (because of the lack of materials to use)  I focused on how to control a motor with a potentiometer. I used few tools available and  in the end I made a self destructive robot.  I don’t know why but everything I make tend to the auto-destruction, which is kinda fascinating because this small robot reminded me the human nature.  So I started to do some research about it and I discovered that in the 1966 there has been the first Destruction in Art Symposium, the Symposium brought together many artists engaged in destruction in their work.

Gustav Metzger painting with hydrochloric
acid on nylon. South Bank, London, 1961/1966.

I think that in the ‘Maker” era the concept of “destruction” or “self-destrucion” can have a deep meaning. I am really interested in investigating it. Not only for the interesting outcome in terms of projects, but also for the deep political message that contains and the philosophical implications. the auto-destructive art in fact  is primarily a form of public art for industrial societies.

Auto-Destructive art Manifesto: http://radicalart.info/destruction/metzger.html

Can the auto-destructive behavior make robots more close to humans?

Lesson learned: even a small prototype about servo motors can blow your mind.

// Controlling a servo position using a potentiometer (variable resistor)

#include <Servo.h>

Servo myservo; // create servo object to control a servo

int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin

void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}

void loop()
{
val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023)
val = map(val, 0, 1023, 0, 179); // scale it to use it with the servo (value between 0 and 180)
myservo.write(val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
}