To control the OLED display you’ll need the "adafruit_GFX.h" library and the "adafruit_SSD1306.h" library. ![]() So, I am going to use the AdaFruit library in this tutorial. In past I have used the "u8glib library" but I find the AdaFruit library very easy to understand and use in our projects. There are several libraries available to control theseĭisplays. Even though they are small they can be very useful in any electronic projects. Just have a look at this and see how small it is. They are made of 128 x 32/64 individual OLED pixels and do not require any back-light. We will talk about it in depth when we hook up multiple displays to an Arduino in the later section of this tutorial. Just by unsoldering the 0Ohm resistor from one side and hoking it up to the other side or just by putting a global solder we can change the address. This unit has a configurable address between 0x78 and 0x7A. The trick is to have a configurable address on your display. Sometimes we need to use 2 displays in our projects. Operation voltage is between 3v to 5v but, it is best to use the guidance from the manufacturer's datasheet. ![]() The on-board pins can be in different order, so always triple check before hooking it up to your project. The data connection is I2C (I☬, IIC or Inter-Integrated Circuit) and this interface is also called TWI (Two Wire Interface). Serial data SDA), making the wiring very simple. The display connects to Arduino using only four wires – two for power (VCC and GND) and two for data (serial clock SCL and Lets have a closer at these two displays.Īt the back of these displays there are heaps of SMD capacitors and resistors soldered on-board but, since its an I2C device we only care about these 2 pins (SCL and SDA)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |