-------------------------
📌Introduction
-------------------------
This topic shows how to interface Arduino UNO board with SSD1306 OLED display (128×64 pixel). The SSD1306 is a monochrome display which means it has only one color (white, blue, yellow …).
The SSD1306 display contains a driver chip with the same name (SSD1306), it can communicate with the master deviceover I2C protocol, SPI protocol or 8-bit parallel protocol. In this topic I’m going to show how to use I2C and SPI protocols with this display.
The I2C protocol needs only 2 lines: SDA (serial data) and SCK (serial clock), an additional line is required which is a reset line (RST). The SPI protocol is faster than the I2C protocol but it uses more pins: SCK, SDA, CS (chip select: active low), D/C (data/command) and a rest pin (RST).
-------------------------
📌Interfacing Mode
-------------------------
📌 Using SSD1306 with SPI mode (4-wire SPI):
Example circuit connections are shown below where:
1] GND goes to GND (ground)
2] VDD to 5V
3] SDA (serial data) to digital pin 9
4] SCK (serial clock) to digital pin 10
5] DC (data/command) to digital pin 11
6] CS (chip select) to digital pin 12
7] RES (reset) to digital pin 13
📌Using SSD1306 OLED with I2C mode:
Example circuit connections are shown below where:
1] GND goes to GND (ground)
2] VDD to 5V
3] SDA (serial data) to pin A4 (Arduino UNO I2C SDA pin)
4] SCK (serial clock) to pin A5 (Arduino UNO I2C SCL pin)
5] RES (reset) to digital pin 4
-------------------------
📌 Tags
-------------------------
#arduino #OLED #I2C #SPI
-------------------------
📌 SSD1306 OLED driver for Arduino
-------------------------
Adafruit Industries provides a library for the SSD1306 OLED, it can be easily installed using Arduino library manager (Sketch / Include Library /Library Manager), or manually by downloading it from the link below and adding it to Arduino libraries folder (C:\Program Files\Arduino\libraries):
Adafruit SSD1306 OLED library
-------------------------
📌 The Code
-------------------------
Given Comment Section
📌 Tune With us so you never miss any update
-------------------------------------------------------------------------------------------------------------------------------------------------------------
🏷️Telegram : https://t.me/electronicsdeveloper
🏷️Facebook : / electronicsdeveloper
🏷️Instagram : / electronics_developer
🏷️Tweeter : https://twitter.com/Electronics_Dev?s=09
🏷️LinkedIn : / electronics-with-shreyash
🏷️Pinterest : / electronics_developer
Copyright Disclaimer under Section 107 of the copyright act 1976
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use.
---------------------------------------------------------------------------------------------------------------------------------------------------------------
About Electronics Developer : YouTube certified creative essentials and asset monetization
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Music in this video
1] Artist :Elektronomia, JJD
Licensed to YouTube by : AEI (on behalf of NCS); Featherstone Music (publishing), and 1 Music Rights Societies
2] Artist : Elektronomia
Licensed to YouTube by : AEI (on behalf of NCS); Featherstone Music (publishing)