RSS

Social Distancing Monitor, Arduino NANO and I2C OLED Display | Maker, MakerED, Maker Spaces, Coding

11 Apr
Social Distancing Monitor, Arduino NANO and I2C OLED Display | Maker, MakerED, Maker Spaces, Coding

.

.


Social Distancing Monitor, Arduino NANO and I2C OLED Display

In times of the Coronavirus-Crisis (Covid_19), it might be GOOD to respect the 2 meters distance to avoid getting infected!!! But not everybody can estimate distances, nor are ALL persons respecting the 2 meters rule!!! So came the idea to build an easy to realize gadget, which measures the distance when the 2 meters are not respected.

First of all, like usual, I was searching the internet to find out if there isn’t already such a project around. And YES, there is one; I found a tutorial with an Arduino UNO with provided code as well. Please check below:

In a previous tutorial WE were already using a “Social Distancing Monitor with Alarm, Arduino NANO and I2C LCD1602 Display“, check below please for revision:


Connecting the HC-SR04 Ultrasonic Sensor:

 

Connections to the Arduino NANO:

Vcc+ gets connected to + 5V

GND to GND

ECHO gets connected to PIN 10

TRIGGER gets connected to PIN 9

.


Connecting the 128×64 SSD1306 OLED Display

Click the image, please, to access the source of the image and tutorials.

Click the image, please, to access the tutorials.


THE Code

For the code (Sketch), with theory explications, please check below:

All you need NOW is to put everything into a case… Have fun and stay safe!!

.

 

128 x 64 Pixel 0.96 Inch I2C OLED Display

 

Click image, please, to enlarge.

Arduino NANO

ARDUINO NANO

Click image, please, to enlarge.

 

Click image, please, to enlarge.

 

 
.

L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure)..


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).


.

Stay tuned for next blog post(s) 😉

.

.

.

.

.

.

 

 

Advertisement
 

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: