Arduino + Tiny OLED (Tutorial for beginners, Arduino UNO, SSD1306 72x40px OLED Display, u8g2)

  Рет қаралды 20,533

upir

upir

9 ай бұрын

Do you like video? Please consider buying me coffee, thanks! www.buymeacoffee.com/upir
PCBWay - www.pcbway.com/setinvite.aspx...
WOKWI sketch: wokwi.com/projects/3764792998...
SOURCE files: github.com/upiir/arduino_oled...
------------------------------------------------------------------------------------------
In this project, I will show you how to create a charging battery indicator using the tiny OLED display (70x40px, SSD1306) and Arduino UNO.
------------------------------------------------------------------------------------------
Links from the video:
72x40 SSD1306 OLED 0.42" Display: s.click.aliexpress.com/e/_Ddq...
128x64 SSD1306 OLED Display 1.54": s.click.aliexpress.com/e/_DCY...
128x64 SSD1306 OLED Display 0.96": s.click.aliexpress.com/e/_DCK...
128x64 SSD1306 OLED Display 2.42": s.click.aliexpress.com/e/_DFd...
Arduino UNO: s.click.aliexpress.com/e/_AXDw1h
Arduino breadboard prototyping shield: s.click.aliexpress.com/e/_ApbCwx
Image2cpp (convert array to image): javl.github.io/image2cpp/
Photopea (online graphics editor like Photoshop): www.photopea.com/
Related videos with Arduino UNO and 128x64 OLED screen:
Arduino OLED menu: • Arduino OLED Menu Tuto...
U8g vs U8g2: • U8g vs. U8g2 Arduino G...
Arduino Parking Sensor - • DIY Parking Sensor wit...
Turbo pressure gauge with Arduino and OLED display - • Turbo pressure gauge w...
Arduino Car Cluster with OLED Display - • Arduino Car Cluster wi...
Knob over OLED Display - • Knob over OLED Display...
Arduino + OLED = 3D ? - • Arduino + OLED = 3D ?
Arduino OLED Gauge - • Arduino OLED Gauge
Smaller & Faster Arduino - • Smaller & Faster Arduino?
------------------------------------------------------------------------------------------
PCBWay is a service for manufacturing custom PCBs. If you click the link above, you will get a coupon for $5, which is exactly the price of 10 pieces of custom PCBs. In that case, you will only pay for shipping. Do you have any experience doing this? Please let me know in the comment section!
------------------------------------------------------------------------------------------------------------------------------
Do you have any questions? Suggestions for the next video? Please put those down in the comment section. I try to answer as many questions as I can. Thank you for watching, reading the video description and I hope to see you next time. Good luck with your projects!
--------------------------------------------------------------------------------------------------------
#arduino #oled #diy
--------------------------------------------------------------------------------------------------------
Alternative titles:
Arduino Tiny OLED Charging Battery Indicator
Arduino OLED Battery Charging Indicator
Battery Charging Indicator with Arduino and OLED

Пікірлер: 71
@upir_upir
@upir_upir 4 ай бұрын
Do you like this video? Please consider buying me a coffee, thank you! www.buymeacoffee.com/upir
@andymouse
@andymouse 9 ай бұрын
That is an awesome looking animation and first time I have seen this tiny Oled, great tutorial....cheers !
@upir_upir
@upir_upir 9 ай бұрын
Many thanks for your nice comment! This display is definitely on my list of displays to use for a next project.
@NavySturmGewehr
@NavySturmGewehr 9 ай бұрын
Thank you so much for these videos. I want to make a custom gauge set for my truck with a 256 x 64 pixel oled. You've really inspired me!
@upir_upir
@upir_upir 9 ай бұрын
You are welcome, thank you for your nice comment. Do you have any designs that you might share? I would be very interested in seeing it. Thank you!
@NavySturmGewehr
@NavySturmGewehr 9 ай бұрын
@@upir_upir Do you have discord or anything? I did the most important part first... my emblem has been monochromed and reduced to bits! I haven't committed any of the gauge designs yet... I haven't quite figured out how I want to lay them out. My truck has series sequential turbos, so I need egt, exhaust gas pressure, turbine bypass valve position, compressor bypass valve position, high pressure and low pressure turbo boost, and high pressure shaft rpm.
@Poult100
@Poult100 9 ай бұрын
Excellent! 👍
@upir_upir
@upir_upir 9 ай бұрын
Thank you! Cheers!
@gauravshrivastava773
@gauravshrivastava773 9 ай бұрын
Great learning no doubt
@upir_upir
@upir_upir 9 ай бұрын
Glad you think so! Thank you for your nice comment.
@LastChanceNow
@LastChanceNow 9 ай бұрын
good job!
@upir_upir
@upir_upir 9 ай бұрын
Thank you! Cheers!
@rbouakaz
@rbouakaz 3 ай бұрын
Thank you !
@upir_upir
@upir_upir 3 ай бұрын
You are welcome, I´m glad you like it!
@ShawankumarParida
@ShawankumarParida 9 ай бұрын
This effect is awesome👍 , you should try TTGO T-display it comes with a built-in display with esp32!
@upir_upir
@upir_upir 9 ай бұрын
Thank you. Yes, I have some TTGO boards with displays and I hope to use them for future projects.
@upir_upir
@upir_upir 9 ай бұрын
All the source files including the images are on GitHub: github.com/upiir/arduino_oled_battery_indicator
@Adrellias
@Adrellias 9 ай бұрын
Thanks for always having such awesome videos. You are a wizard 🤯
@upir_upir
@upir_upir 9 ай бұрын
@Adrellias thank you for your nice comment, but there is no wizardry involved 🙂 hopefully my videos are showing that..
@Adrellias
@Adrellias 9 ай бұрын
@@upir_upir they do, but your hw coding knowledge is really awesome, and you are really good at teaching. Thanks for sharing
@buildyear86
@buildyear86 9 ай бұрын
You have many skills. Really nice work. If you are taking requests: i would be very interested to see how to display a graph with x-axis = time (intervals of, say, a minute) and y-axis temperature (in, let's say, Celsius) and to have the graph show the past 1 hour or so of temperature measurements of a sensor. Some sort of a live temperature graph being drawn on the display as time goes by. How would you approach somthing like that?
@upir_upir
@upir_upir 9 ай бұрын
Thank you for your nice comment. I´m always interested in knowing what others might like to see, and this time I have a good news for you - a graph project is already on my to-do list and I hope to publish it in the next month or so. Stay tuned!
@buildyear86
@buildyear86 9 ай бұрын
@@upir_upir No thanks! You are really good at this. Switching from and to skills like it's nothing. Respect. About the graph project: could you do this using a 3 volt battery and a small graphic lcd? Something smaller than the nokia 5510 lcd display used before. I think you should really check out Display Visions' graphic lcd display, part number 'EA dogs102'. I think that one is small and runs on low voltage. Otherwise I believe CrystalFontz' small graphic LCD, part nhmber 'CFAG12864T3-NFH' would be another candidate. This latter display is the smaller one of the two. I really want to explore miniaturization and limit to a 3 volt button cell battery. Lokking forward to it!
@upir_upir
@upir_upir 9 ай бұрын
@buildyear86 thank you for your nice words. Have you seen my previous video using the pixl.is board? That one has a standard LCD screen, and when you are not using the backlight, it should run on cell battery for a long time.. plus it also includes the temperature sensor, and I also believe there is a tutorial for a graph project already. Could that be an option?
@buildyear86
@buildyear86 9 ай бұрын
I haven't ... I will try to find it. I don't know the title but am sure will see it eventually, binge watching your channel now :) @@upir_upir
@upir_upir
@upir_upir 9 ай бұрын
@buildyear86 it’s this one - Image to LCD in 9.4248 seconds kzbin.info/www/bejne/boeVnISKhM95nqc
@SnakeEyes441
@SnakeEyes441 9 ай бұрын
Nice
@upir_upir
@upir_upir 9 ай бұрын
Thanks
@brijeshkhokhar
@brijeshkhokhar 9 ай бұрын
great ... !!!
@upir_upir
@upir_upir 9 ай бұрын
You are welcome!
@mlg779
@mlg779 9 ай бұрын
Can you make a video on how you would display Can-bus messages form the car? you already have a video where you have the speedometer and RPM .
@upir_upir
@upir_upir 9 ай бұрын
Yes, that’s on my todo list. I have a test project running, so video should be finished in some reasonable timeframe…
@karlohorcicka7388
@karlohorcicka7388 9 ай бұрын
Can you try some rgb screens such as those 1.3" tft based around st7789?
@upir_upir
@upir_upir 9 ай бұрын
Yes, that´s already on my todo list.
@CDE.Hacker
@CDE.Hacker 9 ай бұрын
I know my question is not about this video, but about the TURZX display from a few weeks back. I got the 5 inch Screen and it works okay. But I have and issue, and don't know if is normal. The screen goes blank for a few seconds and then come back on. I have not tried you theme or created any of my own yet, only because I have other obligations right now. Do you think there is an issue with my display? Or is there any tweaks I can do?
@upir_upir
@upir_upir 9 ай бұрын
Please next time, ask the question in the related video. This way, it might be helpful also for others. I would start with setting the screen to play a video, and connect it to some power source using the USB cable - not the PC, just a powerbank. If you still see a problem, it´s most likely a faulty unit and you should be able to get a replacement. Let me know if it was helpful.
@slabua
@slabua 7 ай бұрын
Have you tried the 72x40px display with Micropython? I am having hard time with the standard SSD1306 driver, the display turns on slowly after 10 long seconds~
@upir_upir
@upir_upir 7 ай бұрын
That’s strange. I haven’t used it with micropython, but I don’t think there should be any major difference.
@slabua
@slabua 7 ай бұрын
@@upir_upir right? It might be defective then. I'll try running your Arduino code let's see whether it's a driver or hardware problem ✨
@mfanelongobeni674
@mfanelongobeni674 8 ай бұрын
Can we use a U8g2 library on an SPI OLED?
@upir_upir
@upir_upir 8 ай бұрын
Sure, you can use both the IIC and SPI displays.
@mfanelongobeni674
@mfanelongobeni674 8 ай бұрын
#include #include #include // Define the SPI pins #define OLED_CLK 13 // SPI Clock (SCK) #define OLED_MOSI 11 // SPI Data (MOSI) #define OLED_CS 10 // Chip Select (CS) #define OLED_DC 9 // Data/Command (DC) #define OLED_RESET 8 // Reset (RST) U8G2_SSD1306_128X64_NONAME_F_HW_SPI u8g2(U8G2_R0, /* clock=*/ OLED_CLK, /* data=*/ OLED_MOSI, /* cs=*/ OLED_CS, /* dc=*/ OLED_DC, /* reset=*/ OLED_RESET); OK thanks, can you please help me here because it's giving me an error🙏🙏
@upir_upir
@upir_upir 8 ай бұрын
@mfanelongobeni674 you don’t define data and clock for HW SPI, only CS, DC and RESET.
@user-pe6jj4ob1r
@user-pe6jj4ob1r 4 ай бұрын
Where do you do animation?
@upir_upir
@upir_upir 4 ай бұрын
You mean what tools I use for drawing animations? In many of my tutorials, I have used online tool called "piskel", that was very easy to use for small pixel animations.
@erosionreactions
@erosionreactions 7 ай бұрын
awesome work, but i did this with the Tiny Circuits 0.42" Tiny screen and it wont work. Can you help. I also keep getting a error.
@upir_upir
@upir_upir 7 ай бұрын
Thank you. What microcontroller are you using? The display seems to be the same as the one used in the video.
@erosionreactions
@erosionreactions 7 ай бұрын
I used the Seed Xiao esp32c3 board
@erosionreactions
@erosionreactions 7 ай бұрын
Sometimes though I get a whole bunch of dots scattered across the screen. I keep looking for help but cant find any videos on this screen.
@erosionreactions
@erosionreactions 7 ай бұрын
oh and the error only happens when i use thier library. (Wireling.h). When I use your code thats when the dots appear. @@upir_upir
@upir_upir
@upir_upir 7 ай бұрын
@@erosionreactions esp32 does not use "PROGMEM", delete this word from the code and it should work. The PROGMEM is only for AVR Arduino chips, but I thought that for other architectures, this word is simply ignored in the code.
@buildyear86
@buildyear86 9 ай бұрын
How much current does this screen draw ?
@upir_upir
@upir_upir 9 ай бұрын
It´s OLED screen, so it mainly depends on how many pixels are on/lit. I don´t know exact numbers, but they are definitely small enough to be able to power this with a cell battery for multiple hours.
@buildyear86
@buildyear86 9 ай бұрын
@@upir_upir ah ok, i see. Yeah makes sense. Would be interesting to know how much current a fully lit screen would draw. However i guess that in practice a graphic reflective or even transflective lcd display (whether or not led lit or backlit, respectively) of a similar size would draw much less current... ?
@upir_upir
@upir_upir 9 ай бұрын
@buildyear86 that’s correct, those screens would use significantly less power when used without the backlight.
@buildyear86
@buildyear86 9 ай бұрын
thanks@@upir_upir ! You rock!
@giuseppelucido6569
@giuseppelucido6569 6 ай бұрын
make a sketch with pin A0 Vin voltage variable to control 18650 battery voltage
@upir_upir
@upir_upir 6 ай бұрын
You mean measuring the voltage?
@giuseppelucido6569
@giuseppelucido6569 6 ай бұрын
​@@upir_upir
@giuseppelucido6569
@giuseppelucido6569 6 ай бұрын
@@upir_upir yes.... Measuring while loading raises the level of animation...
@giuseppelucido6569
@giuseppelucido6569 6 ай бұрын
1s or 2s???
@upir_upir
@upir_upir 6 ай бұрын
What ?
@Boroda.018
@Boroda.018 7 ай бұрын
Очень круто👍🏻👍🏻👍🏻👍🏻 а я могу с вами связаться что бы вы помогли мне сделать меню?
@upir_upir
@upir_upir 7 ай бұрын
English please? Thank you!
@Boroda.018
@Boroda.018 7 ай бұрын
@@upir_upir Hi can you help me make a menu for my 0.78 inch sh1107 display I liked how you make icons
@dfgdfg_
@dfgdfg_ 9 ай бұрын
Upir can I post you a display?
@upir_upir
@upir_upir 9 ай бұрын
Sure, I love displays! But please keep in mind that my hardware skills are very limited. If it´s not easy to use/interface, I would have hard times getting it to work.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 84 МЛН
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 65 МЛН
Учим Arduino за 1 час! #Профессионально
1:00:00
Teacher Inventor DIY
Рет қаралды 232 М.
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 548 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 130 М.
477 Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Рет қаралды 199 М.
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Is this the SIMPLEST display?
31:28
upir
Рет қаралды 15 М.
Building a tiny steampunk "HDMI" display
19:34
mitxela
Рет қаралды 434 М.
Arduino ATtiny85 OLED Menu
34:46
upir
Рет қаралды 19 М.
Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes!
1:25:31
Programming Electronics Academy
Рет қаралды 2,4 МЛН