Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Arshmah Shahkar
Published

An Arduino Enabled PCB Device For Visually Impaired People

It is an obstacle detecting device that helps blind people in walking and doing their tasks efficiently.

IntermediateFull instructions provided2 hours624
An Arduino Enabled PCB Device For Visually Impaired People

Things used in this project

Hardware components

Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Arduino Nano R3
Arduino Nano R3
×1
Buzzer, 4 V to 7 V
Buzzer, 4 V to 7 V
×1
High Brightness LED, Royal Blue
High Brightness LED, Royal Blue
×1
Fixed Network Resistor, Surface Mount
Fixed Network Resistor, Surface Mount
×1
Solar Cockroach Vibrating Disc Motor
Brown Dog Gadgets Solar Cockroach Vibrating Disc Motor
×1
Slide Switch, SPDT-CO
Slide Switch, SPDT-CO
×1

Software apps and online services

Inventhub
Inventhub
Arduino IDE
Arduino IDE

Story

Read more

Schematics

PCB

Code

Arduino Code

Arduino
  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(115200);    
  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

Arshmah Shahkar
28 projects • 35 followers
Electrical Engineer | PCB Design Engineer
Thanks to Rishi.

Comments