Skip to main content

OLED 128x64 0.96" I2C as Arduino display

This display is really small but has nice contrast. The display still perform very well even with different viewing angle, not like LCD or TFT. It also has only 4 pin using I2C interface. Very easy to configure.





Wiring:

GND <----> GND
VDD <----> 3.3V
SCK/SCL <----> A5(analog pin 5)
SDA <----> A4(analog pin 4)

Libraries:

Install Adafruit GFX library



Install Adafruit SSD1306

Notes:

  • This display I2C address is 0x3C
  • Modify Adafruit_SSD1306.h to use correct type. See screenshot below.



Sketch:

Download and upload : https://github.com/satujamsaja/Arduino/tree/master/oledi2c to Arduino.

Result:




Good luck.

Comments

Popular posts from this blog

Using LCD 2004a I2C on project with Arduino

On previous post measurement sensor results displayed on serial monitor. This is good when we are on development stage. When we want something more independent we need external display. I have purchased a few type of display. For now we will use LCD 2004 for external display.

Arduino : Controlling PL9823-F8 RGB LED

I have great passion about electronics since I was in middle school then high school. With some of my school friend that has same passion in electronics, we built radio transmitter so we can communicate each other at anytime. It was so cool back then. Thats why I took study on electrical Engineering. Instead of working on Electrical engineering field, I end up become web programmer. Something I found interesting when i was in college. That's old story. But lately I get bored and try to get another hobby. I have many hobbies and creating electronics stuff is one of it. So I bought my self Arduino Uno and few electronic components to get started learning Arduino programming. So my first project is controlling RGB Led. Here what you need: Arduino Uno with usb data cable and Arduino IDE Install Adafruit Neopixel library 3 PL9823 RGB led Breadboard Jumper cables (mostly male to male) First you need to install Arduino IDE. You can download it here .  That would depend

Read temperature and barometric pressure from GY BMP 280 using Arduino

This sensor based on BMP 280 digital pressure sensor made by Bosch. You can find the complete datasheet here . This small sensor is quite impressive with it's accuracy. It claimed to be ±1 hPa in measuring barometric pressure, ±1.0°C in temperature measurement and ±1 meter in altitude accuracy. Pretty impressive right ?