Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO I2C LCD Display Tester with 12V Battery and Step-Down Converter

View and Edit Project In Cirkit DesignerImage of Arduino UNO I2C LCD Display Tester with 12V Battery and Step-Down Converter

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, a 12V to 5V step-down power converter, a 12V battery, and an I2C LCD 16x2 screen. The Arduino UNO is the central processing unit of the circuit, interfacing with the LCD screen via the I2C communication protocol. The step-down converter is used to regulate the 12V battery voltage down to 5V, which powers the Arduino UNO and the LCD screen. The battery provides the power source for the entire circuit.

Component List

Arduino UNO

12V to 5V Step Down Power Converter

Battery 12V

I2C LCD 16x2 Screen

Wiring Details

Arduino UNO

12V to 5V Step Down Power Converter

Battery 12V

I2C LCD 16x2 Screen

Documented Code

Arduino UNO Code (sketch.ino)

#include <Wire.h>

void setup() {
  Wire.begin();
  Serial.begin(9600);
  Serial.println("I2C Scanner Scanning...");
  
  for (byte i = 1; i < 127; i++) {
    Wire.beginTransmission(i);
    if (Wire.endTransmission() == 0) {
      Serial.print("I2C device found at address 0x");
      if (i < 16) Serial.print("0");
      Serial.println(i, HEX);
    }
  }
}

void loop() {
  // No need to repeat anything in the loop for this example
}

This code is used to scan for I2C devices connected to the Arduino UNO. It initializes the I2C communication and serial communication, then iterates through possible I2C addresses to find connected devices, printing the addresses of those found to the serial monitor.