Bukit Mertajam, Penang

How to Display on I2C OLED with Arduino

In this tutorial, I’ll share with you on how to display on I2C OLED using Arduino. The video will cover on :

  1. Installing library for OLED.
  2. Testing the OLED with example provided.
  3. How to custom an image to display on the OLED.
  4. Display an output on the OLED.

Hardware Preparation

This tutorial use :

  1. Maker UNO
  2. Temperature Sensor (Celcius)
  3. OLED I2C 
  4. Breadboard 8.5×5.5cm (400 holes)
  5. Acrylic Base Plate For Arduino UNO
  6. Jumper Wires

You can make the hardware connection based on the diagram and table below.

Connection
OLED : VCC Maker UNO: 3.3V
OLED : GND Maker UNO: GND
OLED : SCL Maker UNO: SCL
OLED : SDA Maker UNO: SDA
LM35 : GND Maker UNO: GND
LM35 : VOut Maker UNO: Pin A0
LM35 : VCC Maker UNO: 5V
Figure 1 : Hardware connection

Sample Code

This is the sample code used for this tutorial. Try it!

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

Leave a comment