santhosh reddy
INDIA • + Follow
Edit Project
Components
|
Arduino_UNO_R3 |
x 1 | |
|
CUSA-T80-12-2600-THCUI DEVICES
|
x 1 | |
|
CEM-14R06CTCUI DEVICES
|
x 1 |
Tools, APP Software Used etc.
|
arduino IDEArduino
|
Description
SPECIALIZED SPECTACLES WITH ARDUINO UNO
#define trigPin 13
#define echoPin 12
#define motor 7
#define buzzer 6
void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(motor, OUTPUT);
pinMode(buzzer,OUTPUT);
}
void loop()
{
long duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(15);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (100/2);
if (distance < 100) // This is where checking the distance you can change the value
{
digitalWrite(motor,HIGH); // When the the distance below 100cm
digitalWrite(buzzer,HIGH);
} else
{
digitalWrite(motor,LOW); // when greater than 100cm
digitalWrite(buzzer,LOW);
} delay(500);
}
Code
arduino code
Python
#define trigPin 13
#define echoPin 12
#define motor 7
#define buzzer 6
void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(motor, OUTPUT);
pinMode(buzzer,OUTPUT);
}
void loop()
{
long duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(15);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (100/2);
if (distance < 100) // This is where checking the distance you can change the value
{
digitalWrite(motor,HIGH); // When the the distance below 100cm
digitalWrite(buzzer,HIGH);
} else
{
digitalWrite(motor,LOW); // when greater than 100cm
digitalWrite(buzzer,LOW);
} delay(500);
}
Schematic and Layout
Dec 24,2022
664 views
SPECIALIZED SPECTACLES WITH ARDUINO UNO
My PROJECT helps the BLIND people to walk comfortably on TRAFFIC roads ultra sonic sensor makes sound to detect the objects in front of man
664
0
0
Published: Dec 24,2022
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
File Last Updated: 2022/12/26 (GMT+8)
File update record
2022-12-2615:30:52
CAD or technical drawing file is updated.
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-NonCommercial (CC BY-NC)
License.
Topic
- Comments(0)
- Likes(0)
Upload photo
You can only upload 5 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
View More
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by santhosh reddy
You may also like
-
-
-
DIY Transistor Tester | Build Your Own LCR Meter at Home with Arduino Nano
14 0 0 -
-
-
ESP32-S3 breakout board for motorizing Iron Man helmets
108 0 2 -
Build a Walking Robot: Theo Jansen Style 3D Printed Octopod
193 0 4 -
-