Загрузка страницы

OLED Displays with Arduino - I2C & SPI OLEDs

OLED (Organic Light Emitting Diode) displays have a lot of advantages over LCD and traditional LED displays. Today we will learn how to use OLED displays with our Arduino projects. We’ll also build an OLED Temperature and Humidity Meter.

Article with code: https://dbot.ws/oled
More tutorials and projects at https://dronebotworkshop.com
Get the Newsletter to let me know what videos YOU want - https://dbot.ws/dbnews

OLED displays a bright, lightweight and easy to read in almost any lighting condition. They come in all sizes, from huge wall-sized OLED televisions to thumbnail-sized status displays.

Today we will work with three small OLED displays:

- A 128x32 monochrome display that uses I2C
- A 128x64 dual-color display that also uses I2C
- A Waveshare 1.5 inch 128x128 monochrome display that can use either I2C or SPI

I’ll explain how an OLED differs from a regular LED and how it is ‘organic”. It doesn’t have anything to do with growing OLEDs without pesticides!

Next, we’ll look at some I2C OLEDs and experiment with them, using some excellent libraries from Adafruit.

After that, we will look at a very nice OLED display from Waveshare. It’s the largest display we’ll examine today and it can be used with either I2C or SPI. I will demo it in SPI mode using demo code provided by Waveshare.

The example sketches provided with the libraries do a nice job of showing off the display's capabilities but they can be a little overwhelming to reverse-engineer for your own scripts. So to help I‘ve put together a very simple project to display simple text on the display, you can use it as the basis for your own Arduino OLED display projects.

The project is a temperature and humidity meter that uses the 128 x 64 dual-color OLED as a display. It uses an I2C temperature and humidity sensor so the wiring is super-easy. I'll go over the code for that in detail so you can see how it writes values to the OLED display.

Here is the Table of Contents for today's video:

How OLEDs Work - 2:20
Look at OLED Displays - 6:19
OLEDs to Arduino with I2C - 8:50
Adafruit OLED Library - 11:45
I2C OLED Demos - 18:22
Waveshare OLED to Arduino with SPI - 24:27
OLED Temp & Humidity Meter - 31:38

As always there is a detailed article on the DroneBot Workshop website that accompanies this video, you can find it at https://dbot.ws/oled. It covers everything in the video and you can also download the code for the temperature and humidity meter from the Resources box a the bottom of the article.

While you are there please sign up for the DroneBot Workshop Newsletter. It’s not a sales letter, it’s my way of keeping in touch with you to let you know about what's coming up in the workshop and to get your opinion on the content I’m making for you. You can sign up at https://dbot.ws/dbnews.

Lot’s of changes coming up in the workshop soon so if you haven’t subscribed to the YouTube channel yet please do so you don’t miss out on anything.

Hope you enjoy the video!

Bill

Видео OLED Displays with Arduino - I2C & SPI OLEDs канала DroneBot Workshop
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
17 февраля 2019 г. 1:32:11
00:41:41
Яндекс.Метрика