Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, a 0.96" OLED display, and a Buzzer Module. The Arduino UNO controls the OLED display and the Buzzer Module. The OLED display is used to show a bitmap image, while the Buzzer Module plays a melody.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
0.96" OLED
- Description: A small OLED display module.
- Pins: GND, VDD, SCK, SDA
Buzzer Module
- Description: A module that produces sound when driven by a microcontroller.
- Pins: GND, Vcc, I/O
Wiring Details
Arduino UNO
- 3.3V connected to Buzzer Module Vcc
- 5V connected to 0.96" OLED VDD
- GND connected to 0.96" OLED GND
- GND connected to Buzzer Module GND
- A4 connected to 0.96" OLED SCK
- A5 connected to 0.96" OLED SDA
- D8 connected to Buzzer Module I/O
0.96" OLED
- GND connected to Arduino UNO GND
- VDD connected to Arduino UNO 5V
- SCK connected to Arduino UNO A4
- SDA connected to Arduino UNO A5
Buzzer Module
- GND connected to Arduino UNO GND
- Vcc connected to Arduino UNO 3.3V
- I/O connected to Arduino UNO D8
Code Documentation
Sketch Code
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
// Bitmap for 'New Project'
// Make sure your bitmap contains proper data, it's a 128x64 monochrome image
const unsigned char epd_bitmap_New_Project [] PROGMEM = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x1c, 0x1c, 0x03, 0x00, 0xe1, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x00, 0x1c, 0x04, 0x01, 0x80, 0x21, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x00, 0x1f, 0x84, 0x31, 0x8c, 0x21, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x1c, 0x04, 0x31, 0x0c, 0x21, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x10, 0x04, 0x31, 0x8c, 0x20, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x10, 0x84, 0x31, 0x8c, 0x38, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x1c, 0x04, 0x03, 0x00, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x3e, 0x1c, 0x04, 0x07, 0x81, 0xf8, 0x3f, 0xff, 0xff, 0xff,
