Pratik Mistri

BroomBot
BroomBot is a garbage cleaner for the campus seeing the amount of effort put in by the cleaning staff.

Balloon Orchestra - Sound of Nature
Basic musical installation - watch video here

Gesture Browse
Browse photograph in your computer with your body.
<Video will be uploaded soon>

Servo control with hand
With the use of basic distance sensor and arduino connected with the servo, with the value recieved from the sensor is given to the servo with a angle mapping to control the angle of the servo.

#include <Servo.h> 

Servo myservo;  

int sensorpin = 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(sensorpin);           // 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                           // waits for the servo to get there 
}

Sound with hands
With the use of basic distance sensor and arduino connected with the speaker, a tone generator that generates rhythmic tone on basis of hand movement on the distance sensor.

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

void setup() 
{ 

} 

void loop() 
{ 
  val = analogRead(sensorpin);     
  val = map(val, 0, 1023, 0, 255);  
  tone(8,val*44*1.059);            
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License