loading

Step 1: Applet

#include <Servo.h>

Servo servomano;
Servo servobraccio;
Servo servofire;
void setup()
{
  pinMode(9,OUTPUT);
    pinMode(10,OUTPUT);
    pinMode(11,OUTPUT);
servomano.attach(9);
servobraccio.attach(10);
servofire.attach(11);
delay(100);
}

void loop()
{
  servofire.write(3);       //accendino primo movimento
  delay(200);
servomano.write(40);
delay(1000);
servobraccio.write(90);
delay(60);
servobraccio.write(87.5);
delay(60);
servobraccio.write(85);
delay(60);
servobraccio.write(82.5);
delay(60);
servobraccio.write(80);
delay(60);
servobraccio.write(77.5);
delay(60);
servobraccio.write(75);
delay(60);
servobraccio.write(72.5);
delay(60);
servobraccio.write(70);
delay(60);
servobraccio.write(67.5);
delay(60);
servobraccio.write(65);
delay(60);
servomano.write(67);
delay(1000);
servobraccio.write(66);
delay(60);
servobraccio.write(67);
delay(60);
servobraccio.write(74);
delay(200);
servomano.write(97);          //prende la sigaretta
delay(1000);
servobraccio.write(77);
delay(60);
servobraccio.write(80);
delay(60);
servobraccio.write(83);
delay(60);
servobraccio.write(86);
delay(60);
servobraccio.write(89);
delay(60);
servobraccio.write(92);
delay(60);
servobraccio.write(95);
delay(60);
servobraccio.write(98);
delay(60);
servobraccio.write(101);
delay(60);
servobraccio.write(104);
delay(60);
servobraccio.write(107);
delay(60);
servobraccio.write(110);
delay(60);
servobraccio.write(113);
delay(60);
servobraccio.write(116);
delay(60);
servobraccio.write(119);
delay(60);
servobraccio.write(122);
delay(60);
servobraccio.write(125);
delay(60);
servobraccio.write(128);
delay(60);
servobraccio.write(132);
delay(60);
servobraccio.write(136);
delay(1000);
servofire.write(3);          //avvio accendino
delay(40);
servofire.write(5);        
delay(40);
servofire.write(7.7);        
delay(40);
servofire.write(10);        
delay(40);
servofire.write(12.5);        
delay(40);
servofire.write(15);        
delay(40);
servofire.write(17.5);        
delay(40);
servofire.write(20);        
delay(40);
servofire.write(22.5);       
delay(40);
servofire.write(25);        
delay(40);
servofire.write(27.7);        
delay(40);
servofire.write(30);        
delay(40);
servofire.write(32.5);        
delay(40);
servofire.write(35);        
delay(40);
servofire.write(37.5);        
delay(40);
servofire.write(40);        
delay(40);
servofire.write(42.5);        
delay(40);
servofire.write(45);        
delay(40);
servofire.write(47.7);        
delay(40);
servofire.write(50);        
delay(40);
servofire.write(52.5);        
delay(40);
servofire.write(55);        
delay(40);
servofire.write(57.5);        
delay(40);
servofire.write(60);        
delay(40);
servofire.write(62.5);        
delay(40);
servofire.write(65);        
delay(40);
servofire.write(67.5);        
delay(40);
servofire.write(70);        
delay(40);
servofire.write(72.5);        
delay(40);
servofire.write(75);        
delay(40);
servofire.write(77.5);        
delay(40);
servofire.write(80);        
delay(40);
servofire.write(82.5);        
delay(40);
servofire.write(85);        
delay(40);
servofire.write(87.5);        
delay(40);
servofire.write(90);        
delay(40);
servofire.write(92.5);        
delay(40);
servofire.write(95);        
delay(40);
servofire.write(97.5);        
delay(40);
servofire.write(100);        
delay(40);
servofire.write(102.5);        
delay(40);
servofire.write(105);        
delay(40);
servofire.write(107.5);        
delay(40);
servofire.write(110);        
delay(40);
servofire.write(112.5);        
delay(40);
servofire.write(115);        
delay(40);
servofire.write(123);        //accende la sigaretta e la spinge in bocca
delay(12000);
servofire.write(3);        //accendino torna in posizione sandby
delay(200);
servomano.write(80);
delay(65000);
servomano.write(0);
delay(1000);
servobraccio.write(115);
delay(500);
servobraccio.write(112.5);
delay(70);
servobraccio.write(110);
delay(70);
servobraccio.write(107.5);
delay(70);
servobraccio.write(105);
delay(70);
servobraccio.write(102.5);
delay(70);
servobraccio.write(100);
delay(70);
servobraccio.write(97.5);
delay(70);
servobraccio.write(95);
delay(70);
servobraccio.write(92.5);
delay(70);
servobraccio.write(90);
delay(900000);
}
Remember - Don't operate this closer than 20 feet from any public exit door.
great reason to quit smoking,check also this version 2.0 <br> <br>http://www.youtube.com/watch?v=pNu8qB04lfo
This is way better than that box that turns itself off.
That machine's going to get cancer.
The father of bender!!!!
Amazing.... (Y)
a &quot;love&quot; machine <br>
so ... it's a machine that smokes cigarettes ?
Looks like : wow ...
Unbeliavable!! Couldn't know what to say :)

About This Instructable

17,982views

37favorites

License:

More by faustofalchi:Bored Machine FOOF FOR FISH EXPERIMENT 
Add instructable to: