OHMYARD

DISCOVER · EXPERIMENT · BUILD

TRACK 9 · MAKER PITFALLS & SENSORS46/52
NOV 27, 2026
14:20:00
I2C MASTER3.3V / 5VGNDSCL (D22/A5)SDA (D21/A4)GNDVCCSCLSDAOHMYARD OLED 0x3CTEMP: 24.6 °C128×64 I2C OK ✓ADDR JUMPER: 0x3C · PIN1=GND✅ SSD1306 OLED ACTIVE (0x3C · 4 WIRES)
Drag or WASD to pan · Q / E to rotate · Scroll to zoom

0.96" OLED SSD1306 I2C Wiring, Pin-Order Trap & 0x3C/0x3D Address Lab

✓ Reviewed by Jason Guo (OhmYard Lab)· IEC & Datasheet Verified· Updated Nov 27, 2026
QUICK ENGINEERING ANSWER (TL;DR)

A 0.96" SSD1306 OLED display needs only 4 wires (VCC, GND, SCL, SDA) over I2C — yet two classic traps catch makers every day: some modules swap Pin 1 and Pin 2 (GND-VCC vs VCC-GND), and code configured for 0x3D stays completely blank on a 0x3C display!

7-Bit Code Address = 8-Bit Silkscreen ÷ 2 ⇒ 0x78 >> 1 = 0x3C | 0x7A >> 1 = 0x3D

Standard I2C pins: ESP32 uses GPIO21 (SDA) / GPIO22 (SCL); Arduino Uno uses A4 (SDA) / A5 (SCL); Raspberry Pi uses Pin 3 (SDA) / Pin 5 (SCL).

SymbolComponentReal-World Engineering Tip
DISP1SSD1306 128×64 I2C OLED ModuleRun an I2C Scanner sketch first whenever an OLED stays blank — it immediately prints 0x3C or 0x3D.

Real-World Bench Scenario: Dual OLED Displays on One I2C Bus: Move the tiny 0 Ω resistor on the back of the second OLED from 0x78 to 0x7A so one responds to 0x3C and the second to 0x3D on the exact same 2 wires!

Bench Challenge: Test mismatched I2C address (0x3D vs 0x3C) and the swapped VCC/GND pin-order trap, then restore clean 0x3C communication.

Frequently Asked Questions

Why does the back of my SSD1306 OLED say 0x78 when Arduino and ESP32 code uses 0x3C?

The silkscreen value 0x78 on an SSD1306 OLED PCB is the 8-bit I2C write address (which includes the trailing R/W bit), whereas Arduino Wire and ESP32 libraries expect the 7-bit address. Shifting 0x78 right by 1 bit (0x78 ÷ 2) equals 0x3C, and 0x7A equals 0x3D.

Continue Exploring Related 2.5D Labs
← All 52 Labs Hub21. I2C Pull-Up Bus →18. ESP32 Pinout Guide →19. Arduino Uno Pinout →

OHMYARD · ALL 52 INTERACTIVE LABS & SIMULATORS

1. Closed Loop & Faults
/closed-loop
2. Ohm's Law & Thermal
/ohm-law
3. Series vs Parallel
/series-parallel
4. X-Ray Breadboard
/breadboard-simulator
5. LED Resistor & E24
/led-resistor-calculator
6. Voltage Divider & Load
/voltage-divider
7. Multimeter Trainer
/multimeter-simulator
8. RC & Oscilloscope
/rc-oscilloscope
9. 555 Timer Pulse Lab
/555-timer
10. Diode & Rectifier
/diode-rectifier
11. Transistor & Flyback
/transistor-switch
12. PWM Dimmer & Fan
/pwm-dimmer
13. Op-Amp Comparator
/opamp-comparator
14. H-Bridge & Shoot-Through
/h-bridge-motor
15. Buck vs LDO Power
/buck-converter
16. Digital Logic Gates
/logic-gates
17. Resistor Color Code
/resistor-color-code
18. ESP32 Pinout Guide
/esp32-pinout
19. Arduino Uno Pinout
/arduino-uno-pinout
20. Zener Voltage Clamp
/zener-diode-regulator
21. I2C Pull-Up Bus
/i2c-pullup-bus
22. Battery Life & Sleep
/battery-life-calculator
23. PCB Trace Width
/pcb-trace-width
24. Wheatstone Bridge
/wheatstone-bridge
25. Raspberry Pi GPIO
/raspberry-pi-pinout
26. WS2812B LED Strip
/ws2812b-led-strip
27. SG90 Servo PWM
/servo-pwm-control
28. HC-SR04 Ultrasonic
/ultrasonic-hcsr04
29. Opto Relay Module
/relay-optocoupler
30. 3.3V ⇄ 5V Shifter
/logic-level-shifter
31. 2N2222 Pinout
/2n2222-pinout
32. SMD Resistor Code
/smd-resistor-code-calculator
33. Distribution Board
/inside-distribution-board
34. Wire a 3-Pin Plug
/wire-a-three-pin-plug
35. Power Strip Overload
/power-strip-overload
36. RCD & Earthing Safety
/rcd-gfci-earth-leakage
37. Live & Neutral Wires
/mains-live-neutral
38. Inside an MCB Breaker
/mcb-trip-breaker-anatomy
39. Why Did It Trip?
/why-did-it-trip
40. Two-Way Staircase Switch
/two-way-staircase-switch
41. AC Transformer Core
/ac-transformer-step-down
42. Induction Hob & Eddies
/induction-cooktop-eddy
43. Kettle Bimetal Thermostat
/thermostat-bimetal-kettle
44. Rooftop Solar & Grid
/home-solar-inverter-grid
45. Common Ground Pitfall
/floating-ground-common-gnd
46. OLED SSD1306 I2C Lab
/oled-ssd1306-i2c-wiring
47. Stepper A4988 Vref Lab
/stepper-a4988-vref-calculator
48. 18650 & TP4056 Lab
/lipo-18650-tp4056-protection
49. DHT22 vs BME280 Lab
/dht22-bme280-sensor-wiring
50. Rotary Encoder & Bounce
/rotary-encoder-debouncing
51. Soil Moisture & Corrosion
/capacitive-soil-moisture-adc
52. ESP32 vs S3 vs C3 Lab
/esp32-s3-c3-pinout-comparison