Pedometer Part 1: 128x32 Monochrome Screen and Arduino

by Flameling01 in Circuits > Arduino

828 Views, 0 Favorites, 0 Comments

Pedometer Part 1: 128x32 Monochrome Screen and Arduino

IMG_1700.jpg

This is a basic tutorial teaching one how to use an OLED screen with their Arduino. I am using a 128x32 screen but you can also use a different resolution oled screen and change the resolution/coordinates as required.

In this part I will show you how to display a pixel, words, and numbers. In the next part I will show you how to use the ADXL335. Then I will move from and Arduino UNO to Pro Micro just for portability and also go over how to make a cheap charger for it.

Stuff Required

IMG_1703.jpg
IMG_1702.jpg
IMG_1704.jpg

1)Arduino (I am using an UNO)

2)128x32 oled screen

3)4x Male to Female Jumper Cables (You can also use Male to Male jumper cables and a breadboard)

Connections

Display=>Arduino

VCC =>5v

GND=>GND

SCL=>A5

SDA=>A4

Libraries

GFX.PNG
SSD1306.PNG

1)Adafruit GFX

2)Adafruit SSD1306

Code

My display is monochrome so it only displays in blue. In the code I use WHITE because that is the current code.

In #define OLED_ADDR 0x3C you have to paste the I2C address instead of 0x3c of your display.You can find it by using an I2C scanner code which can be found easily.

Downloads

Demo and End

My OLED screen tutorial

I hope you liked the tutorial and thanks.