ULTRASONIC Patent

Introduction: ULTRASONIC Patent

Alternative use of 2 hc-sr04

Transmitter the one and receiver the other

Alternative to electromagnetic wireless switch with ULTRASOUND TRIGGER.

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

Link to my acount in Github: https://github.com/nektarios25ma/Alternative-to-electromagnetic-signal-ULTRASOUND-TRIGGER-. Trying to activate lights or alarm, wireless with the basic arduino kit, we made 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 -AND I WAS THE SUPERVISOR- as a part of smart city miniature THAT PROVIDES "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

Step 1: Presentation to a Class

LESSON PLAN

Student age (13-15)

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.UNDERSTANTING SOUND AND ULTRASOUND- USE THE PRESENTATION (POWER POINT)

C. 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/

3) UNDERSTANTING OUR NEEDS-ACTIONS-see this instructable.

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:The application of this “patent” by the student (13-15 years old,Gymnasio Vryswn): Smart city with clever traffic lights and clever gates that give priority to ambulance and more like city alerts of high or too low temp.

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

Step 2: Transmitter

The transmitter need only to transmit , so we dont need the echo (receiver), thus its optional to cover it but i recomend to let it free to check the functionality of HSR04.

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: RECEIVER

We must cover (with cotton and tape) the trigger becouse we want only to receive . If by mistake dont cover it you will have signal from trigger so the wireless switch will faile.

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

Possibilities
i.e. –next project:The application of this “patent” by the student (13-15 years old,Gymnasio Vryswn): Smart city with clever traffic lights and clever gates that give priority to ambulance and more like city alerts of high or too low temp.

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

Sensors Contest

Participated in the
Sensors Contest

Be the First to Share

    Recommendations

    • Block Code Contest

      Block Code Contest
    • Battery Powered Contest

      Battery Powered Contest
    • Plywood Challenge

      Plywood Challenge

    Discussions

    A.FIRST follow the doc instuctions.
    B.SECOND show the power point.
    C.POSSIBILITIES (https://github.com/nektarios25ma/GYMNASIO-BRYSWN2)
    PRESENTATION AND APPLY OF THIS "PATENT" :by the
    student (13-15 years old,Gymnasio Vryswn): Smart city with clever traffic
    lights and clever gates that give priority to ambulance and more like city alerts
    of high or too low temp.
    https://www.youtube.com/watch?v=jfiOYmjc7f0https://www.youtube.com/watch?v=UQ0LskqQZeMhttps://www.youtube.com/watch?v=sbNdtB8n2A0&t=1shttps://www.youtube.com/watch?v=ya6-lv3dAWA&t=13s