
.
.
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
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. |
Click image, please, to enlarge. |
|
Click image, please, to enlarge.
|
||
![]() 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) 😉
.
.
.
.
.
.