Raspberry Pi Pico using MicroPython - Tutorial #4: Interfacing an OLED Display

preview_player
Показать описание
The Raspberry Pi Pico is a new flexible microcontroller board from Raspberry Pi. It is a tiny, fast, and versatile board built using RP2040, a brand new microcontroller chip designed by Raspberry Pi.

In this video, we explain how to interface an OLED display with the Pico using an I2C interface. We also display data read from a potentiometer and a counter which increments every time you press a button. The IDE used is Thonny.

Chapters:
00:00 - Introduction
00:45 - Circuit Setup
01:59 - I2C Scanner and OLED Library
04:09 - Printing text on OLED
07:10 - Printing variables on the OLED
09:09 - Potentiometer values on the OLED
11:35 - Adding a button to the circuit
15:52 - Button debouncing inside IRQ
19:17 - Outro
Рекомендации по теме
Комментарии
Автор

Protect this man! Have been trying to get it working. I found out that it is using sh1106 but no one seemed to show me where to download the library and how to send it to the raspberry pi. Thank you a lot buddy.

matyasfiedor
Автор

These Raspberry Pi Pico series have been so helpful 💯🙏

amanskishan
Автор

Clear, thorough, good stuff. But even better if you zoom in to the coding window - text is hard to read. Thanks.

john-r-edge
Автор

Thonny gets stuck when creating the oled object. When aborting with crtl D or pressing stop I get into an error loop (Unable to connect to COM6: could not open port
'COM6': PermissionError (13,
'Permission denied', None, 5) )
I have to pull the cable to stop it.
I thought it might be a windows problem but on linux, I get a similar error.
Any help would be super helpfull🙏🏻

Michi-wdly
Автор

My Pico detect the i2c device, but when I run the code nothing shows on the screen. have tried 4 4 different SH1106 OLED modules now and not one of them will display anything???

PigeonPrint
Автор

can i use the same code to connect with PIC W ?

sreesreejuks
Автор

Hey man, have you done this on a display with user control like buttons or touchscreen ?

warandv
visit shbcf.ru