How to Use a 1.3 Inch I2C OLED Display With Arduino

by timothyong16 in Circuits > Arduino

2779 Views, 0 Favorites, 0 Comments

How to Use a 1.3 Inch I2C OLED Display With Arduino

IMG_8396.jpg

reference: https://www.instructables.com/Monochrome-096-i2c-O...

https://create.arduino.cc/projecthub/najad/interfa...

In this instructable, I'm going to teach you how to use your i2C with your Arduino. Also, teaching you how to display images on the display.

Supplies

You will need an Arduino board, four wires, and an OLED display.

Connecting Your Display

Wiring-Fritzing-Connecting-128x64-OLED-Display-Module-With-Arduino.png

The OLED display should be connecting to the Arduino like the included picture.

Identifying What Kind of Your Display Is

Screen Shot 2021-01-03 at 5.49.14 PM.png

The types of displays may affect the codes that are uploaded to. So after connecting the display to your Arduino, you might need to run a code. Which is included.

https://playground.arduino.cc/Main/I2cScanner/

If the display is connected and the codes are uploaded, open up serial monitor, it should show something like the picture.

Installing Libraries

Testing Your Display

Screen Shot 2021-01-03 at 5.52.00 PM.png
Screen Shot 2021-01-03 at 5.53.59 PM.png

To test your display, there are testing files that can be reached by following the picture.

After opening, make sure you change the highlighted part to the result that the scanner scanned. In my case, is 0X3C.

Uploading Your Own Picture

screen_shot_2019-02-25_at_5_08_41_pm_50QU91xzvE.jpeg
screen_shot_2019-02-25_at_5_50_49_pm_23KqrDvGRf.jpeg

Till this point, your OLED display should glow up and display the example file. If not, head back and check if you are following the right instructions.

So first find a picture that you would like to display to your OLED.

Next, head to https://diyusthad.com/image2cpp and follow the steps on the picture.

Then, copy the code and paste it into the part that writes " //Paste your bitmap here". Example file is also included.

https://create.arduino.cc/editor/timothyong16/2167...

Enjoy Your OLED Display!

If the tutorial does not work for you or isn't clear enough, the reference link might be easier to understand than mine. Or you can comment down below so I can solve your problem!