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
508 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
508
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)
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
Remove
It looks like you have not written anything. Please add a comment and try again.
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
-
IoT Indoor system with ESP32 to monitor Temperature, Humidity, Pressure, and Air Quality
291 0 1 -
Naruto Multi-color PCB printed with UV technology
114 2 1 -
-
-
-
-