INTRO
hey everyone,
so you bought one of these very popular 0.96-inch OLED display from the internet, and having some issues to get them to work or you don't know where to start.
let me show you guys how you can use these OLED display with an Arduino board in a few easy steps.
Thanks UTSOURCE.net to offer electronic components for this project! you can check UTSOURCE.net, they deal in all kinds of electronics components like the OLED display I've used in this project!
BASICS
The organic light-emitting diode or OLED is a light-emitting diode
(LED) in which the emissive electroluminescent layer is a film of
an organic compound that emits light in response to an electric current.
basically its display, yeah a display, a very small one.
so in this tutorial, I'm gonna be using SSD1306 Oled display and an Arduino Nano
SSD1306 model is a mono-color, 0.96-inch display with 128×64 pixels
it only four pins and communicates with the Arduino using the I2C communication protocol
WIRING
To connect the display to your Arduino in according to this pin diagram.
now you gonna need to download adafruit's ssd1306 library,
and for that, you can either do two things,
and download its zip file and then unzip into the library folder or the "easy route."
you can search ssd1306 in the library manager and download it from there.
after downloading the library, restart the IDE.
TESTING and Uploading the Sketch
open the ssd1306 128x64 i2c example sketch from adafruit ssd1306 example menu which just been added a few moments ago.
upload this sketch to your Arduino board and your setup will display the hello world sketch of OLED DISPLAY.
If your OLED doesn't work
- Check that the OLED display is properly wired to the Arduino
- Or change the OLED address in below line
it's generally 0x3D, change it to 0x3c.
If your display is working, then let's move onto another great and easy thing,
which is- SCROLLING text!
upload the Scrolling sketch to your OLED setup.
change the text in the code if you want.
you can change the text size, its position, and also its fonts.
also, you can display your own image on the OLED display. bitmap image which has been resized to 128x64 pixels.