Skip to content

aaron-is-the-best2114/OLED_Ultrasonic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OLED Ultrasonic

1: Wire The HC-SR04 Ultrasonic Sensor

  • Connect the VCC and GND to the 5V and GND on the Arduino Nano Respectivly
  • Connect the Trig to the D12 pin on the Arduino Nano
  • Connect the Echo to the D11 pin on the Arduino Nano

2: Wire the OLED LCD Module via i2c

  • Connect the VCC and GND to the 5v and GND pins on the Arduino Respectivly
  • Connect the SCL to pin A5 on the Arduino
  • Connect the SDA to pin A4 on the Arduino

3: Download and Open Code

  • Download and Extract this repository to any folder on your PC

  • Download and Open Arduino IDE

  • In the IDE go to Sketch, Include Library, then Add .ZIP Library

    image

  • Locate the Folder you downloaded and extracted this repository to, and load all the libraries in the libraries folder

    image

  • Load all 4 Libraries in the IDE

    image

  • Then Location the Code in the OLED_Ultrasonic Folder, and double click to open it or go to File, Open in the IDE

    image

4: Run the code

  • Plug in Your Arduino Nano into your PC

  • Go to Select Board and Select the Port

    image

  • Then Select Arduino Nano and Choose the correct port, Then Press Ok

    image

  • Then You'll need to Click the Upload Button and it should all work

    image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages