Things used in this project

Hardware components:
Ard nano
Arduino Nano R3
or the Arduino Pro Mini
×1
51gzz5eu9pl. sx425
Ultrasonic Sensor - HC-SR04 (Generic)
×3
11026 02
Jumper wires (generic)
×1
HC-06 Bluetooth Module
×1
Gus 1719
C.H.I.P. Approved 3.7 V LiPo Battery
×1
Adafruit industries ada1536 image
Buzzer
×1
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)
Hy gluegun
Hot glue gun (generic)

Code

buzzer.inoArduino
int outPin = 5;  // connect buzzer to pin 5
void setup(){
Serial.begin(9600);
pinMode(outPin,OUTPUT);
}
void loop(){
  if (Serial.available()){
  char bt = Serial.read();
  if(bt == 'u'){    // buzzer on       
digitalWrite(outPin,HIGH);
 }
  else if (bt == 's'){    // buzzer off  
digitalWrite(outPin,LOW);
 }
  }
}

Credits

20160807 112326
Niranjan
2 projects • 5 followers
A mechanical graduate passonate about arduino and raspberry pi
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog