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

Roomba Dashboard - A CLI Dashboard for iRobot Create 2
Intermediate
  • 165
  • 1

Roomba-Dash is a CLI dashboard for the iRobot Create 2 platform written in Golang. It is cross-platform compatible.

FAM
Intermediate
  • 1,338
  • 7

Work in progress

Super Secret Messaging with PocketCHIP!

Push for Pizza Using Proximus Public LoRaWAN Connectivity
Intermediate
  • 145
  • 0

A simple push button using Proximus public LPWAN connectivity. Optimized for power consumption (<30 microAmps) and long distance (>15km!).

C.H.I.P.py Ruxpin ʕ•ᴥ•ʔ
Intermediate
  • 47,264
  • 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!

Otto DIY +
Intermediate
  • 7,721
  • 50

Work in progress

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

Otto DIY +

Team Otto builders

El Wire T-shirt: Connected to a LightBlue Bean
Intermediate
  • 177
  • 6

Work in progress

A custom Internet connected shirt using a LightBlue Bean to light up the shirt's El Wire graphics.

Add projectSign up / Login