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

Arduino UNO Controlled OLED Display with 9V Battery and Step-Down Converter

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled OLED Display with 9V Battery and Step-Down Converter

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, a 9V battery, a 128x64 OLED display with I2C communication, and a 12V to 5V step-down power converter. The Arduino UNO is used as the central processing unit, controlling the OLED display and managing the input/output operations. The 9V battery provides power to the circuit, which is regulated to 5V by the step-down converter to power the Arduino and the OLED display. The OLED display is interfaced with the Arduino via I2C communication protocol for displaying data.

Component List

Arduino UNO

9V Battery

128x64 OLED Display (I2C IIC SPI Serial)

12v to 5v Step Down Power Converter

Wiring Details

Arduino UNO

9V Battery

128x64 OLED Display (I2C IIC SPI Serial)

12v to 5v Step Down Power Converter

Documented Code

Arduino UNO Code: sketch.ino

void setup() 
{
  // Initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

void loop() 
{
  // Turn the LED on (HIGH is the voltage level)
  delay(1000);               // Wait for a second
  digitalWrite(13, HIGH);    // Turn the LED on by making the voltage HIGH
  
  // Turn the LED off by making the voltage LOW
  delay(1000);               // Wait for a second
  digitalWrite(13, LOW);     // Turn the LED off by making the voltage LOW
}

This code is designed to run on the Arduino UNO microcontroller. It sets up digital pin 13 as an output and then continuously toggles this pin between HIGH and LOW states, creating a blinking LED effect with a period of 2 seconds.