Arduino Proximity Sensor -Activated OLED Display for Smart & Industrial Automation

by RonFrtek in Circuits > Arduino

72 Views, 1 Favorites, 0 Comments

Arduino Proximity Sensor -Activated OLED Display for Smart & Industrial Automation

Arduino Proximity sensor -Activated OLED Display for Smart & Industrial Automation

Project Description:

A compact and efficient smart display system that uses an IR obstacle sensor to detect motion or presence. When a hand or object is extended towards the sensor, an OLED display automatically turns on, showing useful information such as status updates, sensor readings, or notifications. After 3 seconds of inactivity, the display turns off to conserve power.

Potential Applications:

Smart Home Automation – Display room temperature, security alerts, or appliance statuses only when someone is nearby.

Industrial Use – Hands-free status monitoring in factories, reducing distractions and energy consumption.

Smart Gadgets – Interactive control panels for IoT devices that activate only when needed.

Energy-Saving Display Systems – Reduces power consumption in battery-operated or low-power devices.


Watch the video!

What You Will Need

128x64-Blue-I2C-OLED-Display.jpg
obstacle-ir-sensor.jpg
breadboard.png
FZEK4WBK3XGYAP0.LARGE.jpg
jumper-wires.jpg
VisuinoAdvrtisemenTexasInstruments-768x510.jpg
  1. Arduino UNO (Or any other Arduino)
  2. Breadboard
  3. OLED Display I2C
  4. Obstacle avoidance sensor
  5. Jumper wires
  6. Visuino program: Download Visuino

The Circuit

2025-03-19_19-05-15.png
  1. Connect Obstacle avoidance sensor pin[VCC] to Arduino pin[5V]
  2. Connect Obstacle avoidance sensor pin[GND] to Arduino pin[GND]
  3. Connect Obstacle avoidance sensor pin[D0] to Arduino digital pin[2]
  4. Connect OLED Display pin [SCL] to Arduino pin [SCL]
  5. Connect OLED Display pin [SDA] to Arduino pin [SDA]
  6. Connect OLED Display pin [VCC] to Arduino pin [5v]
  7. Connect OLED Display pin [GND] to Arduino pin [GND]


Start Visuino, and Select the Arduino Board Type

select-board-uno.jpg
Visuino-Select-Board-UNO.jpg

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

In Visuino Add & Set Components

2025-03-19_19-11-40.png
2025-03-19_19-12-22.png
2025-03-19_19-13-16.png
2025-03-19_19-17-31.png
2025-03-19_19-18-15.png
2025-03-19_19-34-26.png
2025-03-19_19-19-22.png
2025-03-19_19-19-44.png
2025-03-19_19-24-57.png
2025-03-19_19-25-15.png
  1. Add "Debounce Button" component
  2. Add "Digital Multi Source" component
  3. Add "Delay" component
  4. Add "Toggle(T) Flip-Flop" component
  5. Add "OLED I2C" component


  1. Select "Button1" and in the properties window set "Debounce Interval (mS)" to 10
  2. Select "Delay1" and in the properties window set "Interval" to 3000000, you can adjust this by setting any other value
  3. Select "DisplayOLED1" and in the properties window select "Power On" and click on the pin icon and select "Boolean SinkPin"
  4. Double click on "DisplayOLED1" and in the Elements window drag "Draw Text" to the left side and in the properties window set "Size" to 3 and "Text" to ARDUINO or any other text

In Visuino Connect Components

2025-03-19_19-32-45.png
ir-obstacle-oled.png
  1. Connect Arduino digital pin[2] to "Button1" pin [In]
  2. Connect "Button1" pin [Out] to "MultiSource1" pin [In]
  3. Connect "MultiSource1" pin [0] to "TFlipFlop1" pin [Set]
  4. Connect "MultiSource1" pin [1] to "Delay1" pin [Start]
  5. Connect "Delay1" pin [Out] to "TFlipFlop1" pin [Reset]
  6. Connect "TFlipFlop1" pin [Out] to "DisplayOLED1" pin [Power On]
  7. Connect "DisplayOLED1" pin [I2C] to Arduino pin [I2C]

Generate, Compile, and Upload the Arduino Code

Visuino-Compile-UNO.jpg

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Play

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this tutorial, you can download it and open it in Visuino: https://www.visuino.eu