Things used in this project

Hardware components:
11113 01
SparkFun Arduino Pro Mini 328 - 5V/16MHz
×5
5 Ultrasonic sensor
×5
Perfboard
×5
Vibrating motor
×5
Adafruit industries ada1536 image
Buzzer
×5
Kingbright wp7113srd d image
5 mm LED: Red
×5
E switch eg1218 image 75px
Slide Switch
×5
Pppc081lfbn rc sml
Female Header 8 Position 1 Row (0.1")
×2
Te connectivity 4 103741 0 image 75px
Male Header 40 Position 1 Row (0.1")
×2
11026 02
Jumper wires (generic)
×4
Power bank
×1
Gus 1719
C.H.I.P. C.H.I.P. Approved 3.7 V LiPo Battery
×1
Some elastics and stickers
(to make it as a band for wearing)
×1
Software apps and online services:
Ide web
Arduino Arduino IDE
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)
Hy gluegun
Hot glue gun (generic)

Schematics

Circuit diagram 1
Circuit diagram wsif9h0rwf

Code

Code used in the arduinoC/C++
  //VISIT : www.robotechmaker.com

  const int pingTrigPin = 12; //Trigger connected to PIN 7   
  const int pingEchoPin = 10; //Echo connected yo PIN 8   
  int buz=5; //Buzzer to PIN 4   
  void setup() {   
  Serial.begin(9600);   
  pinMode(buz, OUTPUT);   
  }   
  void loop()   
  {   
  long duration, cm;   
  pinMode(pingTrigPin, OUTPUT);   
  digitalWrite(pingTrigPin, LOW);   
  delayMicroseconds(2);   
  digitalWrite(pingTrigPin, HIGH);   
  delayMicroseconds(5);   
  digitalWrite(pingTrigPin, LOW);   
  pinMode(pingEchoPin, INPUT);   
  duration = pulseIn(pingEchoPin, HIGH);   
  cm = microsecondsToCentimeters(duration);   
  if(cm<=50 && cm>0)   
  {   
  int d= map(cm, 1, 100, 20, 2000);   
  digitalWrite(buz, HIGH);   
  delay(100);   
  digitalWrite(buz, LOW);   
  delay(d);  
  }   
  Serial.print(cm);    
  Serial.print("cm");   
  Serial.println();   
  delay(100);   
  }   
  long microsecondsToCentimeters(long microseconds)   
  {   
  return microseconds / 29 / 2;   
  }   
   

Credits

Azhar xep7zlhcqk
Muhammed Azhar

I am Muhammed Azhar a 17 y/o maker from India. Visit my blog for more projects- robotechmaker.com

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

Similar projects you might like

Sigfox Forest Fire Detector
Intermediate
  • 524
  • 4

Full instructions

How to prevent forest from burning? A small Sigfox signal can prevent natural disasters. We will use an Arduino MKRFOX + a flame detector

Control the Injection of a Liquid
Intermediate
  • 283
  • 2

Protip

Control the injection of a liquid with GOBLIN 2 from anywhere via Ubidots platform.

How to build a text to speech IOT speaker
Intermediate
  • 115
  • 1

Full instructions

In this project we'll be building a speaker that has text to speech ability and will expose a secure API for remote control.

Otto DIY+ Arduino Bluetooth robot easy to 3dprint
Intermediate
  • 12,223
  • 58

Work in progress

"Otto DIY with steroids" + Bluetooth + APP + switch + sensors + strength +...

C.H.I.P.py Ruxpin ʕ•ᴥ•ʔ
Intermediate
  • 48,567
  • 73

Full instructions

Bring Teddy Ruxpin back to life, but on your own terms! Make him say whatever you want, or have him search twitter to read tweets!

Spideruino
Intermediate
  • 12,334
  • 54

A Lego arachnid controlled by your smartphone.

Add projectSign up / Login