Thursday, October 31, 2024

How to find the I2C address of SSD1306 OLED display using Arduino Uno Rev 3 SMD

How to find the I2C address of SSD1306 OLED display using Arduino Uno Rev 3 SMD

Hardware

1. SSD1306 OLED Display
- Using ELEGOO model EL-SM-008
2. Arduino Uno Rev 3 SMD

Software

Arduino IDE, tested using version 2.3.3

Wiring

Table below shows how the Arduino Uno is wired to SDC1306 OLED display
Arduino Uno SSD1306
PIN# Function SSD1306 pin
5 +5V VCC
6 GND GND
14 A5/SCL SCL
13 A4/SDA SDA
Below shows a drawing how they are physically connected

Getting the address of I2C device

Pre-Requesite

Follow Hello World/Blinking LED turorial to verify Arduino Uno hardware is working.

Load I2C scanner

Create scanner sketch File | Examples | Wire | i2c_scanner

Upload sketch to Arduino Uno

Do Sketch | Upload or Ctrl+U or use the Upload button in the menu bar.

Serial Monitor

Bring up Serial Monitor to view Arduino serial output. Using main menu, do Tools | Serial Monitor or Ctrl+Shift+M. Below shows an example of the output. This shows that the device is on 0x3c.

How to create blinkly application for Cora Z7-07S from PL/FPGA

How to create blinkly application for Cora Z7-07S from PL/FPGA Goal: Create bare bones blinky application running on Cora Z7-07S dev board ...