hiletgo 1.3 spi 128x64 ssh1106 oled lcd display lcd module free sample
Let"s get the four-stars out of the way first. My small gripe is with the LCD panel mounting to the PCB. The top face of the LCD is below the top level of the four I2C pins so it is impossible to 3D print an enclosure that doesn"t look too Frankenstein to cover those pins. I cut what I could off the pins, but still very close. The LCD face needs to be about 2mm (at least) higher than it"s surroundings so it can be nicely mounted within a window in the box. OR the pins need to be surface-mounted on the back and parallel to the PCB.
The Examples are a little confusing but the big thing here is that the u8x8 (old) Library also emulates a lot of the standard 2x20 and 4x20 LCD Library.
BUT -- there are two libraries within that u8g2 installation and the u8x8 is the old version and better suited to the Arduino as it uses a LOT LESS memory than the u8g2 Fonts etc. It doesn"t have as many Functions and Fonts available as u8g2, but it is pretty much a direct replacement for the 2x20 and 4x20 LCDs. The only things I had to change were the total width from 20-characters down to 15 and I double spaced the Rows. The single spacing looked a little cramped and I only needed 4-lines anyway.
This small module consists of a 128×64 white OLED (organic light-emitting diode) display and all the electronics needed to control it over SPI using a standard SH1106 interface (1MB pdf). The LEDs can be individually turned on or off to show monochrome graphics and text. Despite its compact size, the OLED display has good contrast because each pixel lights up individually, and since there is no backlight, unlit pixels can be very dark.
This display module has seven pins on a row of 0.1″-pitch through holes, which work with standard 0.1″ (2.54 mm) male headers and 0.1″ female headers (available separately). It also has four mounting holes designed for use with #4 or M3 screws.
The module is powered through its GND and VCC pins, and it includes an on-board regulator that lets it work with VCC supply voltages from 3.1 V to 5.5 V. The rest of the pins are not 5V tolerant, so level shifters or voltage dividers are required when interfacing with 5 V systems.
The driver/controller IC on this OLED screen is an SH1106 configured to operate in “4-wire SPI” mode. Four control inputs—CLK, MOS, DC, and CS—are used in normal operation, and a fifth pin, RES, can be used to reset the display. For more information, see the SH1106 datasheet (1MB pdf).
Sample code and libraries are widely available for interfacing the SH1106 with a variety of microcontrollers. One library that we recommend is U8g2, which works with Arduino and has also been ported to other platforms. As an example, you can use the U8g2 constructor U8G2_SH1106_128X64_NONAME_1_4W_SW_SPI to control the display with a one-page buffer and software SPI; see the U8g2 documentation for other options.
desertcart is the best online shopping platform where you can buy HiLetgo 1.3" SPI 128x64 SSH1106 OLED LCD Display LCD Module for Arduino AVR STM32 from renowned brand(s). desertcart delivers the most unique and largest selection of products from across the world especially from the US, UK and India at best prices and the fastest delivery time.
desertcart ships the HiLetgo 1.3" SPI 128x64 SSH1106 OLED LCD Display LCD Module for Arduino AVR STM32 to and more cities in INDIA. Get unlimited free shipping in 164+ countries with desertcart Plus membership. We can deliver the HiLetgo 1.3" SPI 128x64 SSH1106 OLED LCD Display LCD Module for Arduino AVR STM32 speedily without the hassle of shipping, customs or duties.
desertcart buys HiLetgo 1.3" SPI 128x64 SSH1106 OLED LCD Display LCD Module for Arduino AVR STM32 directly from the authorized agents and verifies the authenticity of all the products. We have a dedicated team who specialize in quality control and efficient delivery. We also provide a free 14 days return policy along with 24/7 customer support experience.
Yes, it is absolutely safe to buy HiLetgo 1.3" SPI 128x64 SSH1106 OLED LCD Display LCD Module for Arduino AVR STM32 from desertcart, which is a 100% legitimate site operating in 164 countries. Since 2014, desertcart has been delivering a wide range of products to customers and fulfilling their desires. You will find several positive reviews by desertcart customers on portals like Trustpilot, etc. The website uses an HTTPS system to safeguard all customers and protect financial details and transactions done online. The company uses the latest upgraded technologies and software systems to ensure a fair and safe shopping experience for all customers. Your details are highly secure and guarded by the company using encryption and other latest softwares and technologies.
The SSD1306/SSH1106 are a single-chip CMOS OLED/PLED driver with controllers for organic/polymer light emitting diode dot-matrix graphic display system. It consists of 128 segments and 64 commons. This IC is designed for Common Cathode type OLED panel.
This article shows how to use the SSD1306 0.96 inch I2C OLED display with the Arduino. We’ll show you some features of the OLED display, how to connect it to the Arduino board, and how to write text, draw shapes and display bitmap images. Lastly, we’ll build a project example that displays temperature and humidity readings.
The organic light-emitting diode(OLED) display that we’ll use in this tutorial is the SSD1306 model: a monocolor, 0.96-inch display with 128×64 pixels as shown in the following figure.
The OLED display doesn’t require backlight, which results in a very nice contrast in dark environments. Additionally, its pixels consume energy only when they are on, so the OLED display consumes less power when compared with other displays.
The model we’re using here has only four pins and communicates with the Arduino using I2C communication protocol. There are models that come with an extra RESET pin. There are also other OLED displays that communicate using SPI communication.
Because the OLED display uses I2C communication protocol, wiring is very simple. You just need to connect to the Arduino Uno I2C pins as shown in the table below.
To control the OLED display you need the adafruit_SSD1306.h and the adafruit_GFX.h libraries. Follow the next instructions to install those libraries.
After wiring the OLED display to the Arduino and installing all required libraries, you can use one example from the library to see if everything is working properly.
This is an example for our Monochrome OLEDs based on SSD1306 drivers. Pick one up today in the adafruit shop! ------> http://www.adafruit.com/category/63_98
The Adafruit library for the OLED display comes with several functions to write text. In this section, you’ll learn how to write and scroll text using the library functions.
First, you need to import the necessary libraries. The Wire library to use I2C and the Adafruit libraries to write to the display: Adafruit_GFX and Adafruit_SSD1306.
Then, you define your OLED width and height. In this example, we’re using a 128×64 OLED display. If you’re using other sizes, you can change that in the SCREEN_WIDTH, and SCREEN_HEIGHT variables.
The (-1) parameter means that your OLED display doesn’t have a RESET pin. If your OLED display does have a RESET pin, it should be connected to a GPIO. In that case, you should pass the GPIO number as a parameter.
To draw a pixel in the OLED display, you can use the drawPixel(x, y, color) method that accepts as arguments the x and y coordinates where the pixel appears, and color. For example:
The library also provides methods to displays rectangles with round corners: drawRoundRect() and fillRoundRect(). These methods accepts the same arguments as previous methods plus the radius of the corner. For example:
The library provides an additional method that you can use with shapes or text: the invertDisplay() method. Pass true as argument to invert the colors of the screen or false to get back to the original colors.
Copy your array to the sketch. Then, to display the array, use the drawBitmap() method that accepts the following arguments (x, y, image array, image width, image height, rotation). The (x, y) coordinates define where the image starts to be displayed.
In this section we’ll build a project that displays temperature and humidity readings on the OLED display. We’ll get temperature and humidity using the DHT11 temperature and humidity sensor. If you’re not familiar with the DHT11 sensor, read the following article:
Note:if you’re using a module with a DHT sensor, it normally comes with only three pins. The pins should be labeled so that you know how to wire them. Additionally, many of these modules already come with an internal pull up resistor, so you don’t need to add one to the circuit.
The code starts by including the necessary libraries. The Wire, Adafruit_GFX and Adafruit_SSD1306 are used to interface with the OLED display. The Adafruit_Sensor and the DHT libraries are used to interface with the DHT22 or DHT11 sensors.
The (-1) parameter means that your OLED display doesn’t have a RESET pin. If your OLED display does have a RESET pin, it should be connected to a GPIO. In that case, you should pass the GPIO number as a parameter.
In this case, the address of the OLED display we’re using is 0x3C. If this address doesn’t work, you can run an I2C scanner sketch to find your OLED address. You can find the I2C scanner sketch here.
We use the setTextSize() method to define the font size, the setCursor() sets where the text should start being displayed and the print() method is used to write something on the display.
After wiring the circuit and uploading the code, the OLED display shows the temperature and humidity readings. The sensor readings are updated every five seconds.
The I2C address for the OLED display we are using is 0x3C. However, yours may be different. So, make sure you check your display I2C address using an I2C scanner sketch.
The OLED display provides an easy and inexpensive way to display text or graphics using an Arduino. We hope you’ve found this guide and the project example useful.