Forwarded from Satish Raut
Join special class today 6.45pm with special surprise for Robotics lovers😎😎😎😎
Use my code satish_10
Use my code satish_10
Forwarded from Satish Raut
Today we make Third Eye join everyone this is free special class 6.45pm today
SR Robotics™ pinned «https://unacademy.com/course/how-to-make-third-eye-for-blind-person/BQKEBHIG»
const int pingTrigPin = A4; //Trigger connected to PIN
const int pingEchoPin = A5; //Echo connected yo PIN
int led=13; //Buzzer to PIN 4
int buz1=9;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
pinMode(buz1, 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, 300, 10, 1000);
digitalWrite(led, HIGH);
digitalWrite(buz1, HIGH);
delay(50);
digitalWrite(led, LOW);
digitalWrite(buz1, LOW);
delay(d);
}
Serial.print(cm);
Serial.print("cm");
Serial.println();
delay(40);
}
long microsecondsToCentimeters(long microseconds)
{
return microseconds / 29 / 2;
}
const int pingEchoPin = A5; //Echo connected yo PIN
int led=13; //Buzzer to PIN 4
int buz1=9;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
pinMode(buz1, 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, 300, 10, 1000);
digitalWrite(led, HIGH);
digitalWrite(buz1, HIGH);
delay(50);
digitalWrite(led, LOW);
digitalWrite(buz1, LOW);
delay(d);
}
Serial.print(cm);
Serial.print("cm");
Serial.println();
delay(40);
}
long microsecondsToCentimeters(long microseconds)
{
return microseconds / 29 / 2;
}
Forwarded from Satish Raut
🔊🔊 *IMPORTANT ANNOUNCEMENT*📢📢
Dear learners,
⚡⚡We are excited to inform that
*Creative Corner Subscription is now at a price like never before!!*⚡⚡
Grab this amazing opportunity using my code *SATISH_10*
Take advantage of the *New Prices* and make your learning experience creative.
Don't forget to use *SATISH_10*
Let's Crack It
Team Unacademy
Dear learners,
⚡⚡We are excited to inform that
*Creative Corner Subscription is now at a price like never before!!*⚡⚡
Grab this amazing opportunity using my code *SATISH_10*
Take advantage of the *New Prices* and make your learning experience creative.
Don't forget to use *SATISH_10*
Let's Crack It
Team Unacademy
Forwarded from Satish Raut
Special class tomorrow 6.45pm join everyone and share with your Friends Now
Use my code satish_10
😃😃😃😃😃😃😃😃
Use my code satish_10
😃😃😃😃😃😃😃😃