1.3 inch OLED

Interfacing 1.3 inch OLED

Hardware Required

  1. 1.3 inch OLED
  2. Arduino Nano
  3. Jumper wires
 About OLED

The term OLED stands for 'Organic Light Emitting Diode'. By now if you must have interfaced a 16x2  I2C LCD, but there were very limited options for the text whereas in an OLED there are multiple options like setting the text size, text colour, background colour. But this all depends upon the type of OLED you are using. OLEDs are very cool LCDs and are mostly recommended for their good graphics support. The difference between different OLEDs is: Size, Resolution, Interface and colour. 
  Size
The difference is just that the OLEDs vary in sizes and then so does there resolution of pixels. There are  different sizes for OLEDs like: 0.91 inch OLED, 0.95 inch OLED, 0.96 inch OLED, 1.3 inch OLED, 1.5 inch OLED.
error1.5 inch OLED
1.3 inch OLED
error0.96 inch OLED
0.91 inch OLED


Colour
OLEDs have different colours like some OLEDs have HD colour, some have a multicolour, some just have white and black colour, or just blue and black colour or blue , yellow and black colour

Interface

There are two types of interface for LCDs: SPI and I2C

What is I2C?

I2C is a serial communication protocol. It provides the good support to the slow devices, for example, EEPROM, ADC, and RTC etc.I2c are not only used with the single board but also used with the other external components which have connected with boards through the cables.
I2C is basically a two-wire communication protocol. It uses only two wire for the communication. In which one wire is used for the data (SDA) and other wire is used for the clock (SCL).

What is SPI?

The serial peripheral interface is four wire-based full duplex communication protocol these wire generally known as MOSI (master out slave in), MISO (master in slave out), SCL (a serial clock which produces by the master) and SS (slave select line which use to select specific slave during the communication).
SPI follows the master and slave architecture and communication is always started by the master. It is also an synchronous communication protocol because the clock is shared by master and slave.
SPI is supported only multi-slave does not support multi-master and slave are selected by the slave select signal. In SPI during the communication data is shifted out from the master and shifted into the slave vice- versa through the shift register.

Links for buying the Components

Library Used

In this tutorial I have used 1.3 inch OLED and an I2C interface and so the library I have used is SSH106.h which is used to for defining the use of an 1.3 inch OLED. And GFX.h for the graphics and shapes. And if you are using a SPI interface then you will have to define the SPI.h library. and a common library that has to be defined is Wire.h

Drawing Shapes








No comments:

Post a Comment