ULTRASONIC Patent

Alternative use of 2 hc-sr04

Transmitter the one and receiver the other

Alternative-to-electromagnetic-switch-ULTRASOUND-TRIGGER

Alternative to electromagnetic signal-ULTRASOUND TRIGGER THAT ACTIVATE THE LIGHTS-ALARM OR WHATEVER YOU WANT.

Link: https://github.com/nektarios25ma/Alternative-to-electromagnetic-signal-ULTRASOUND-TRIGGER- Trying to activate a lights or alarm, wireless with the basic arduino kit, we make a specific ultrasound signal with HC-SR04 that activate another HC-SR04 who act as receiver only , so the first will act as transmitter and the other as receiver. This was used to a school project as a part of smart city miniature and "priority" to ambulance of blocked roads with traffic lights, link to school project : https://github.com/nektarios25ma/GYMNASIO-BRYSWN2 (greece)

Supplies:

1) Arduino uno : https://grobotronics.com/funduino-uno-rev3-arduin...

2) 2 Hc-sr04 : https://grobotronics.com/ultrasonic-sensor-sr04.h...

3) Leds : 2 green ,2 red,1 yellow

https://grobotronics.com/led-diffused-5mm-prasino....

4) 1 Buzzer : https://grobotronics.com/buzzer-5v.html

5)Breadboard : https://grobotronics.com/breadboard-mini-transluc...

6)wires

7) 5 220 ohm resistors

1 Teacher Note

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Presentation to a Class

LESSON PLAN

Student age (13-17)

Stem class

Previous knowledge (basic physics -waves, electicity- and basic experience with arduino projects)

A.BE AN INVENTER (THE ART OF AN INVENTOR)

Talk about characteristics of an inventor (20 minutes)

Link: https://www.invention-info.com/characteristics-of-the-best-inventors

B. HOW TO MAKE A “PATENT”-ULTRASONIC REMOTE CONTROL - BY A MODIFIED ELECTRONIC DEVICE

1) UNDERSTANTING THE HC-SR04-MAKING THE BASIC DISTUNCE DETECTION CIRCUIT (1-2 HOURS)

TUTORIAL: https://create.arduino.cc/projecthub/Isaac100/getting-started-with-the-hc-sr04-ultrasonic-sensor-036380 OR https://www.instructables.com/id/Distance-Detector-1/

OPTIONAL USE THE PRESENTATION (POWER POINT)

2) UNDERSTANTING OUR NEEDS-ACTIONS

First we need a transmitter that produces a signal constantly-see this instructable (20 minutes)

Second we need a receiver. Talk about the modification of hc sr04, covering the receiver module in order to receive only and not transmit, and construction-code etc -see this instructable (1 hour)

Possibilities i.e. –next project https://github.com/nektarios25ma/GYMNASIO-BRYSWN2

Step 2: Transmitter

First the code of transmitter:

#define TRIGGERPIN 8

#define ECHOPIN 9

void setup()

{ pinMode(TRIGGERPIN,OUTPUT); pinMode(ECHOPIN,INPUT);

}

void loop()

{ digitalWrite(TRIGGERPIN,LOW); delayMicroseconds(1); digitalWrite(TRIGGERPIN,HIGH); delayMicroseconds(10); digitalWrite(TRIGGERPIN,LOW); delayMicroseconds(1);

}

Step 3:

Then the code of receiver:

#define echo 12

#define trigger 13

//leds and buzzers that will activate after the //signal

int ledRed = 2;

int ledOrange = 10;

int ledGreen = 9;

const int buzzer = 7;

long RECEIVER()

// THE TRIGGER SEND A SIGNAL TO ACTUALLY TURN ON THE leds and buzzer via RECEIVER

{

digitalWrite(trigger,LOW);

delayMicroseconds(2);

digitalWrite(trigger,HIGH); //trick to enable the receiver

delayMicroseconds(2);

digitalWrite(trigger,LOW);

delayMicroseconds(2);

long microseconds=pulseIn(echo,HIGH,100000);

return microseconds / 10;

}

void setup()

{

pinMode(echo,INPUT); \

pinMode(trigger,OUTPUT);

pinMode(ledRed, OUTPUT);

pinMode(ledOrange, OUTPUT);

pinMode(ledGreen, OUTPUT);

pinMode(buzzer,OUTPUT);

Serial.begin(9600);

}

void loop(){

delay(50);

Serial.println(RECEIVER()); //TEST ....IF IS WORKING-SEE THE SERIAL IF THE SENDER-TRANSMITTER //WORKS(OF COURSE ACTIVATE THE TRANSMITTER)

// IF THIS PARTICULAR ULTRASOUND DETECT WHILE TURN ON THE LEDS AND BUZZER OR WHATEVER //YOU WANT

if ( RECEIVER()>= 5 && RECEIVER()<= 29930)

{

digitalWrite(ledOrange, HIGH);

digitalWrite(ledGreen, HIGH);

digitalWrite(ledRed, HIGH);

tone(buzzer,1000);

delay(400);

}

else

{

digitalWrite(ledRed, LOW);

digitalWrite(ledOrange, LOW);

digitalWrite(ledGreen, LOW);

noTone(buzzer);

} //WITH NO SIGNAL THE RECEIVER WRITES ZERO

if ( RECEIVER()<= 5 )

{

digitalWrite(ledOrange, LOW);

digitalWrite(ledGreen, LOW);

digitalWrite(ledRed, LOW);

noTone(buzzer);

}

}

Step 4: One Possible Aplication That Took Place to a Greek School

link to github : https://github.com/nektarios25ma/GYMNASIO-BRYSWN2

Sensors Contest

Participated in the
Sensors Contest

Be the First to Share

    Recommendations

    • Teacher Notes Challenge

      Teacher Notes Challenge
    • Teacher Contest

      Teacher Contest
    • Maps Challenge

      Maps Challenge

    Discussions