Tutorial on I2C OLED Display with Arduino/NodeMCU
Вставка
- Опубліковано 20 сер 2024
- The very first program you write when you start learning a new programming language is : "Hello World!".
The program itself does nothing more than printing a “Hello World” text on the screen.
So, how do we get our Arduino to display the "Hello World!"?
In this video I will be showing you how to get started with the small 0.91 (128x32) and 0.96 (128x64) I2C OLED displays.
There are 100s of tutorials on the web explaining the same thing in different ways, but I couldn't find one that tells me all about the OLED display and how to use it in different scenarios. It took me some time to work it all out. So, I thought I should create a tutorial on what I have learned and combine all the features and ways the OLED displays can be used in our projects.
#OLEDDisplay
Links
---------
- Blog: diyfactory007.b...
- Add Image: javl.github.io/...
- Custom Text: oleddisplay.squ...
- Adafruit display library: github.com/ada...
- Adafruit GFX library: github.com/ada...
- u8glib library: code.google.co... or github.com/oli...
Support My Work
----------------------------
BTC: 35ciN1Z49Y1bReX2U7Etd9hGPWzzzk8TzF
DOGE: DDe7Fws24zf7acZevoT8uERnmisiHwR5st
LTC: MQFkVkWimYngMwp5SMuSbMP4ADStjysstm
ETH: 0x939aa4e13ecb4b46663c8017986abc0d204cde60
TRX: TQJRvEfKc7NibQsuA9nuJhh9irV1CyRmnW
BAT: 0x939aa4e13ecb4b46663c8017986abc0d204cde60
BCH: qrfevmdvmwufpdvh0vpx072z35et2eyefv3fa9fc3z
Best ever tutorial seen recently.... no one can explain more clearer
Thanks 👍
Having worked for one of the largest networking companies on earth, I am very used to writing documentation, and creating video tutorials. This is Very very well done. Very well explained and detailed. Very clear instructions with purpose and no confusing references. If you do get confused pick up some of the free docs for Ardunio to help fill in the blanks. I have worked with MC since I was in school years ago. Kudos on the video very well done! I Look forward to more!.
Thanks a lot for the appreciation
It really helps me in getting motivated
Thanks :)
Now, this is how a tutorial is done!!
Thanks mate
100% ACK. One of the top 10 tutorials.
Thanks
Fantastic tutorial. The closing wrap up with Common Errors was a bonus. Clear concise and informative. Thanks !!
I am glad that I was able to help you
Just dipping into Arduino and NODEMCU world and your very clear explanation was exactly what I needed. Thanks!
Cheers mate
I am happy that I was able to help you
very well explained and in details. i spent numerous hours trying to get my OLED to work , stumbled upon this video and found out my OLED address was incorrect.
Thanks for the appreciation mate, happy to help
This is simply OUTSTANDING! Thank you very much!
Pleasure
This is the video to keep in your library.
Cheers thanks
Really really nice tutorial. Very compact source of information. One small hint: its not a zero (0) Ohm resister. Its 472 printed on, which is 4,2 kOhm
:)
WTF! In these 16 minutes I've learned more about displays and communication than ever before in a few days :-D. Thanks buddy!!! And btw, very good and clear english. Perfect for me as a native german :-)
You are most welcome.
Subscribe for more tutorials and projects that are on its way
OUTSTANDING tutorial. Well done videography too. After hours and hours researching to find the answers, you said it all in less than 17 minutes. Thank you Crazy Couple. Thumbs and new subscriber.
You are most welcome.
Check out my other tutorials if you have some spare time. You may find something interesting in there too
Thanks for the education that the Arduino is limited to the high order 7 bits for the address. That was extremely helpful. Also the usage of the Mux was in great detail. Excellent videos.
Thanks 👍
I have to agree with Laszlo, this is the most inclusive tutorial I've seen Thanks for your work.
Thanks a lot
You did a very good job on this video. It is very clear and complete. When I am about to hook up my OLED I will use your video as my reference. Thanks for the great lesson.
Thanks 👍
I've already figured out the I2C oled thing, but still learned about the 7 bit addressing, font and image converter resources and the multiplexer by watching this - great video, keep up the good work, and thank you.
Your video is simply a breakthrough for me!! I had been struggling with many aspects regarding Arduino including display routine configuration. Thanks SO MUCH :)
I am glad that I was bale to help you.
Stay tuned for more and if you want u can check out my other tutorials :)
Copied from Reddit:
As
someone who is also still learning about electronics and Arduinos I felt the
timing of this being posted was kind of funny and that I should chime in. Now
what's funny about it, for me at least, is that I just finished working with an
OLED on a NodeMCU ESP-12E after not having worked with one for at least a year
(the former being rigged to a Nano). Naturally, I needed a little bit of a
refresher but got it working.
With
that in mind, I saw this post and felt like the timing was right and I'd give
it a quick look since it's still fresh in my mind. To be honest, I didn't
actually expect much - I did my project, I learned plenty about OLEDs and got
them working, and honestly, there are just so many websites and videos out
there already and so much information that what could this video possibly do
for me?
I
was actually really surprised with this. Like I said, the proverbial market is
flooded with information - a plethora of blogs and videos on how to do stuff
like this, and most of them are difficult to read through or unpleasant to
watch. This guy gets it right. His editing and presentation are fantastic, his
video footage is good quality, and he has easy-to-read schematics he walks us
through. Not only that, he goes way above and beyond, showing us how to set up
multiple OLED screens together, how (and why) addresses work, how to use
multiplexers for many OLEDs, and concludes with talking points on the
advantages and disadvantages of using an OLED and common errors in setting them
up.
This
video is really well made and very helpful, and for anyone who is anywhere in
the "just learning" to "needing a refresher" range of skill
level, I couldn't recommended this more. I mean, I just did a project with an
OLED and refreshed myself but still learned some things from this video. This
is honestly the kind of stuff I want to see when I'm looking for refreshers on
something or to learn something new. Great job.
excellent presentation... no nonsense and straight to the point... easy to understand too... good job on the tutorial...
Thanks mate.
The best tutorial I have seen for oled. So thorough. Thanks a bunch. great work Keep it up. I subscribed, It is rare when I do.
Thanks
It is my pleasure
Thanks a million for this! Everything worked perfectly, the first time, including multi-display!
Pleasure
very complete, detail oriented, and concise delivery...thx
Thanks a lot for the appreciation 👍🙏
This is one thorough, clear and very well done video. Thanks a lot.
Thanks for watching :)
hands down best video about oled displays and common display knowledge. Thanks!
Thanks a lot. More tutorials and projects are on its way, so stay tuned
literally the best tutorial ever! Now i know everything i need to know!
Cheers mate.
Happy to help
Thank you, for a very clear guide how to use these Oled displays, it's just what i needed.
You are most welcome.
Subscribe for more tutorials and project.
Have a very happy and prosperous new year
Great! ssd1306_128x64_i2c works!!
I use an Arduino Due .. and the key for me was telling me that - if I was using a *Mega* - then I should use terminals 20 and 21. The penny suddenly dropped. That works on the Due too.
The Due also has terminals SCL1 and SDA1 in the same position as they are on the Uno.. and they don't work for this. Nor does using A4 and A5 as many tutorials show. Need to use terminals 20 and 21 folks.
Also ..I goofed first time on the mixture of underscores and hyphens in the file names. Out of the box they don't match so need to go through those very carefully.
Thank you!!
Good job, keep it up
You convinced me to buy a multiplexer and also a node mcu lol. Great tutorial!
Thanks
I am glad that I was able to help you
The Best explain on UA-cam!
Thanks 😊
Well explained and engaging
The pace is very good and u covered almost everything in this tutorial
Amazing, keep it up
Thnaks mate
Thank you. This is one of the best detailed tutorial I ever watched.
Thanks 🙏
Well done, great thorough inclusive explanation of everything!
Thanks a lot
What a superb instructional video. Thank you and keep them coming
Thanks mate, your word mean a lot to me.
This is gold, just an amazing all in one presentation
Thank you for a great tutorial. Concise and exactly what I needed to know
Cheers 👍👍
Hello from India....Thanks a lot for creating such an informative tutorial with every bit of details...appreciated. Liked Subscribed.
Thanks a lot 👍
Very good explanation. Sufficient for a beginner. Worked for me
You are welcome, stay tuned for more amazing future tutorial and projects
really usefull and clear cut explanation . THANK YOU BRO
You are welcome 🙏
Well done ! Great tutorial for the beginners. I just looked something like that. All The Best !
Thanks a lot for the appreciation mate :)
Thank you very much for the video, very clear. Kind regards from Argentina
Thanks a lot for the appreciation
Ottime spiegazioni che mi hanno fatto proseguire nel mio progetto. Grazie!
Thanks for that, best of luck with your project
respect for your work CRAZY COUPLE, u did this tutorial so well, wow!
Thanks mate
Fantastic!!! One of the best tutorials I've seen.
Thanks. If you have time check out my other tutorials.
I know this is an older video but when running on an Uno R3 you may need to change 0x3D to 3C to get it to work
Best tutorial ever
Thanks
This tutorial is legitimately amazing. Thanks so much!
Thanks mate
Sir thank you for this tutorial, is awesome! thank you for taking the time to do this!! You rock!
Thanks a lot for watching and stay tuned for more tutorials and projects that on its way :)
Thank you for making this! It was very helpful and informative.
You are most welcome,
Stay tuned for more :)
good job, made the whole task look so simple, tutorial very much appreciated!
Thanks a lot mate
Definitely worth the watch, thank you for the video, well made 👍
WOW. Thank you! I got mine working thanks to your video. I subscribed! Keep up the good work!
Thanks a lot. I am glad that I was able to help you ✌️✌️
i'm not easily impressed by anything person type.. like your video.. keep it up
Thanks mate, much appreciated
This is great, one stop shop for everything
Informative and to the point. Great job👍🏻
Thanks mate 😊
That was really a great imstructive! Thank you!
Thanks
Best tutorial I have ever scene
very clear and concise :) great work
Thanks 😊
Thank you - Very comprehensive - well presented.
You are welcome
new subscriber. hope you'll do one like this for the TFT... NOT using the TFT_eSPI library - or if you must, at least give it a good going over of the two set up files. But I would really like to see something like this video done for the ST7735. Thanks
Will try to do one for sure mate
Just have a few other videos in the pipeline
Nice presentation!
Thanks 👍
Thank you so much brother awesome tutorial
Cheers ✌️
great videos and tutorials! thank you!
Thanks 🙏
Terrific video. This was very informative and clear.
Thanks 🙏
Very informative, Thank You
Pleasure
Beautiful just beautiful, thank you so much!!
You are welcome. More projects and tutorials are on its way so stay tuned.
Thanks buddy it helped me a lot for my project.......😀😀😀
Pleasure is all mine 👍👻
great instructions, very clear and complete.
Thanks mate
Thanks bro Your works is amazing
It's my pleasure
Thank you,can u make videos about pressure sensor transducer for oil, water
Very good tutorial and information, keep posting
Thanks, :)
thank so much ..give me more crazy idea to improve technology
You are most welcome
Such a good explanation. Good job
Thanks mate 👍👍👍
amazing tutorial
Thanks for appreciation
Excellent video man!
Thanks :)
@@CrazyCoupleDIY
O... And woman...!?
@@amitaimedan He he he :)
great tutorial , thanks for sharing .my like is done.
Thanks mate :)
Was stuck on the addresses. First person I found explain that you done put the address on the board in the code like a I2C LCD.
Glad that I was able to help you
Great video. Greetings from Germany.
Thanks mate
Keep it up, nice video, thank you for sharing it :)
Thanks 👍
Very good explanation....Love it... :-)
Thanks mate, subscribed and stay tuned for more amazing tutorials and projects
Good Explained
Thanks 🙏
Very Good Tutorial and Really Great learning experience.☺️
Thanks 😊
Very good explain
Nicely compiled, well done.
I have subbed
Amaizing presentation
Very good video, I have a question, how I can put a web site in the display with the noodle?
Showing an entire website will be a bit of a chalkaoge but may be you can extract parts of the website and display that bits only on the oled
Very nice and easy to follow....thanks
Most welcome.
Stay tuned for more
wow really very nice tutorial ...
Excellent tutorial. Subscribed!
Much appreciated
Good day, I have just watched your video on connecting and programming the Oled display to an Arduino. I was absolutely stunned at your presentation. How you managed to fit a 10 episode course into a single 12 minute video, defy's logic. Of course I would like to be able to connect an Oleg to my Arduino and do the required programming and the necessary changes in the software. But sadly, I will not manage to do this from your video. I have no doubt whatsoever that you are talented and very proficient at what you do, but being a genius at something does not necessarily mean that you will also be skilled in conveying your talent to others. I want to share the following with you, years back, I was still a student pilot, and my instructor warned me about some instructors that are only interested in showing students how well they themselves can fly. I honestly believe that you should have another go at this video, back off from your brilliance, come down to our average level and do it again. There are thousands of us out there who can benefit. I've read some of the comments, most of them say nothing, they just throw you a bouquet. I am being honest here, guys like us need people like you, however, if all you are achieving is to sow confusion, then your video is pointless and a complete waste of time. Regards
I truly appreciate an honest comment and a very good suggestion. I will make another one with absolutely no jargon in it. I will try to keep it as simple as I can and as easy to understand as it can be.
Thank you, I and many others are most grateful for your efforts. Regards
very usefull now i fix it
Great 👍
thank you!
Welcome!
Excellent info -very helpful
Thanks 😊
best tutorial ever
Great video. So far no one answered this. How can I use different pins? I am using D0-D7 for keypad on NodeMCU.
First of all thanks for watching
Now, D1 and D2 on NodeMCU are SCL and SDA.
Which means if you are trying to use an I2C sensor it has to be on those pins unless you multiples it using a TCA9548A i2C MUX.
You can check out my tutorial number 9 for that: ua-cam.com/video/XWQsqPQOW-U/v-deo.html
Now, if you are running out of GPIO pins you need to extend your GPIOs using an IO extender. My next tutorial is on that only.
If you want you can check it out next week and that will for sure answer your question.
Using the i2c IO Extender you can extend the GPIO pins to have 128 'parallel' pins.
Very informative
Glad it was helpful!
I keep getting a myBitmap was not declared in this scope error. How can I get rid of this error?
Excelent vid, full of useful information.
Thanks 🙏
This Excellent video it will be more exciting if talking will be little slow to absorb for beginners like me
thanks for the appreciation.
The length of the video was going out of control so I talked a bit too fast.
But, in all my upcoming videos I am trying to talk a bit slow 👍✌️
@@CrazyCoupleDIY thanks sir, really very nice especially the mutiplexer capability, can you feature next time for can bus in esp32 in the future??
Sure
@@CrazyCoupleDIY thanks in that case I will subscribe now
Excellent work. Very helpful information.
Thanks
Thanks ✌️
Perfect!! And THAT is a good tutorial!
Cheers for that 👍✌️
I want screen upside down fonts in 0.91 OLED display (90 DEGREE FLIP) HOW CAN I DO THAT