DIY Battery Indicator (Arduino Project)

  Переглядів 78,698

upir

upir

Рік тому

Do you like the video? Please consider buying me a coffee ☕, thank you! www.buymeacoffee.com/upir
Wokwi project: wokwi.com/projects/3366186477...
Arduino Gauge in 11 Minutes - • Arduino Gauge in 11 Mi...
Smooth Arduino 16x2 Gauge - • Smooth Arduino 16x2 Gauge
Logic analyzer - www.saleae.com/
16x2 OLED Display - s.click.aliexpress.com/e/_Dnm...
16x2 displays with IIC - s.click.aliexpress.com/e/_9Hl3JV
------------------------------------------------------------------------------------------------------------------------------
Learn how to create a custom gauge using Arduino UNO and the 16x2 Character Display. This tutorial is for absolute beginners, and anyone should be able to follow the steps.
There are two "main" versions of the 16x2 display - based on the connection. It would either be a parallel connection or an I2C connection. The I2C connection is much easier to use because it only requires two wires (SDA - serial data and SCL - serial clock). With the LiquidCrystal_I2C library, it´s very easy to control the display.
Those displays are cheap, and they are available in many different colors. You can also get the display with an RGB backlight; in that case, the display could be any color you want.
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 and reading the video description, and I hope to see you next time. Good luck with your projects!
--------------------------------------------------------------------------------------------------------
Links related to this project:
Arduino UNO - s.click.aliexpress.com/e/_AXDw1h
Arduino breadboard prototyping shield - s.click.aliexpress.com/e/_ApbCwx
16x2 displays with IIC - s.click.aliexpress.com/e/_9Hl3JV
16x2 display with RGB backlight - s.click.aliexpress.com/e/_9wgpeb
original sketch from YWROBOT - wokwi.com/arduino/libraries/L...
character creator - tusindfryd.github.io/screendu...
another character creator - maxpromer.github.io/LCD-Chara...
sprintf explanation - www.programmingelectronics.co...
custom characters simplest project - wokwi.com/projects/2943956026...
Arduino I2C scanner - playground.arduino.cc/Main/I2...
16x2 available characters - docs.wokwi.com/parts/wokwi-lc...
Bitwise Operators in GIFs - blog.wokwi.com/bitwise-operat...
Bitwise operators Arduino documentation - www.arduino.cc/reference/en/l...
--------------------------------------------------------------------------------------------------------
Hashtags:
#character_display #arduino #LiquidCrystal
--------------------------------------------------------------------------------------------------------
Keywords related to this video:
16x2, 20x4, LiquidCrystal, character display, Arduino UNO, Arduino, OLED, u8g, u8g2, Arduino Display, Arduino Free Code, esp32, Arduino project, Arduino display, Arduino ideas, new project ideas, Arduino 2022, Arduino project 2022, Arduino project ideas, Arduino tutorial, microcontroller, arduino projects for engineering students, arduino based projects, microcontroller projects, cool projects, mini project using arduino, arduino mini projects, electronics projects using arduino, how to make arduino project, arduino uno projects for beginners, projects with arduino, projects using arduino, project using arduino, arduino based projects for final year

КОМЕНТАРІ: 98
@upir_upir
@upir_upir 3 місяці тому
Do you like the video? Please consider buying me a coffee ☕, thank you! www.buymeacoffee.com/upir
@ITTom
@ITTom Рік тому
You are the best! Few weeks ago i asked about presenting real data on LCD and you came up with this right away… oh man! GREAT JOB.
@upir_upir
@upir_upir Рік тому
Glad to help! And thank you for such a nice comment!
@teslastellar
@teslastellar Рік тому
Thanks a lot for including the analysis with the logic analyzer 👍
@upir_upir
@upir_upir Рік тому
Glad it was helpful! I´m trying different ways how to improve the clarity of my videos.
@mohamedzeko277
@mohamedzeko277 Рік тому
The amount of details are just amazing!! Thank you for this informative video!
@upir_upir
@upir_upir Рік тому
Thank you for such a nice comment!
@philsponsel3824
@philsponsel3824 Рік тому
the quality of your tutorials is outstanding!
@upir_upir
@upir_upir Рік тому
I appreciate that!
@andymouse
@andymouse Рік тому
You always provide stacks of 'food for thought' this channel is awesome and I hope you have plenty more !...cheers.
@upir_upir
@upir_upir Рік тому
Thank you! I’m glad it’s helpful in generating more ideas, and I will surely record more videos.
@duckyblender
@duckyblender Рік тому
Your channel is so underrated, thanks for this valuable info :)
@upir_upir
@upir_upir Рік тому
Thank you for your comment! Let’s see if it will grow more in the future 🙂
@Abc-sl1nf
@Abc-sl1nf Рік тому
Very cool!! Complex but easy to follow w your explanation. MORE PLS!!
@upir_upir
@upir_upir Рік тому
Thank you! Please check also my other tutorials, they are hopefully also easy to follow...
@temyraverdana6421
@temyraverdana6421 Рік тому
Wow, a wonderful explanation. Thanks
@upir_upir
@upir_upir Рік тому
Glad it was helpful!
@stylesoftware
@stylesoftware Рік тому
I think, you might be using a tone that hits the god zone in the brains of most humans. I enjoy your videos, and I am already an arduino/esp/pico expert. However, I love your videos. You did teach me a lot about updating LCD, for speed, in a previous post, brilliant.
@upir_upir
@upir_upir Рік тому
Wow, thank you for such a nice comment! I really appreciate it. Good luck with your projects!
@seanlennon5044
@seanlennon5044 Рік тому
Excellent tutorial, more please.
@upir_upir
@upir_upir Рік тому
Thanks, will do!
@lilsusred5567
@lilsusred5567 Рік тому
Can't get enough of this :)
@upir_upir
@upir_upir Рік тому
That’s great to hear!
@raymondmichael4987
@raymondmichael4987 Рік тому
Thanks this is very good, you inspired me to buy few displays so I can play with them using your videos as reference. I’d like to see a 3.5 or 4 inches display, it should be fun to play with those too, “the big picture “ Greetings from Tanzania 🇹🇿
@upir_upir
@upir_upir Рік тому
That´s great to hear! Feel free to share your creations once you have something up and running, I would love to see it!
@pranitshetty7487
@pranitshetty7487 5 місяців тому
This man is great , quality content 👏👍
@upir_upir
@upir_upir 4 місяці тому
Thank you!
@kralece
@kralece 7 місяців тому
very informative. thanks brother.
@upir_upir
@upir_upir 7 місяців тому
My pleasure. Good luck with you projects!
@hacker6695
@hacker6695 Рік тому
Thanks for wonderful information
@upir_upir
@upir_upir Рік тому
Thanks for liking, and for your nice words!
@anermly1729
@anermly1729 Рік тому
i never knew there was an oled version od the 16x2 display :D
@upir_upir
@upir_upir Рік тому
Great to hear it was useful information :)
@MrTex263
@MrTex263 Рік тому
Your videos and the way you explain everything is really awesome! I love the OLED 16x2 displays unfortunately your links don't work. Im using a 20x4 LCD display with an Digispark ATtiny85 dev board with communication over USB2LCD library. With that you don't have the com-port naming/identification issue. Keep up the great work!
@upir_upir
@upir_upir Рік тому
Thank you, also for the great tip! I have to look at that library, it looks promising.
@RobotoForgoto
@RobotoForgoto Рік тому
Good one!
@upir_upir
@upir_upir Рік тому
Thank you! Cheers!
@4miniengineers
@4miniengineers Рік тому
Nice work
@upir_upir
@upir_upir Рік тому
Thank you! Cheers!
@vinothn4228
@vinothn4228 Рік тому
Hey legend! You give me a new way🙂
@upir_upir
@upir_upir Рік тому
That´s great to hear!
@PhG1961
@PhG1961 Рік тому
Nice video !
@upir_upir
@upir_upir Рік тому
Thank you!
@mkhatri007
@mkhatri007 Рік тому
Thanks alot for this unique tutorial. Please increase the font size in Arduino IDE, :) to let us view more easily. :)
@upir_upir
@upir_upir Рік тому
Thank you for your comment and suggestion. I will do it, at least to match the font size in wokwi which is slightly bigger..
@SuperHarut12
@SuperHarut12 Рік тому
Hello i had a question, I was looking at your video and saw you had wires connected to the display from the arduino and I was looking at the link and it doesnt show that the display has any sort of connections for the wires, did you have to buy another part to get the wires connected?
@upir_upir
@upir_upir Рік тому
Those displays - s.click.aliexpress.com/e/_9Hl3JV Support both Parallel and IIC connection, but they don´t have any header pins soldered. You have to solder them by yourself. I have used the IIC connection, so those are the pins VCC, VSS, SDA, SDL. They are on top and bottom of the board, so you can use which one you like better (for position). Other displays might have those pins soldered, so you don´t need to solder them - for example this one - s.click.aliexpress.com/e/_DBPScpB In any case, you still need the wires. Let me know if that helps.
@epicmach1332
@epicmach1332 9 днів тому
Does the battery life Indicator also work for a normal battery like a 9v Block?
@upir_upir
@upir_upir 9 днів тому
This tutorial is for getting a status for laptop battery, for a different battery, the sketch and wiring would have to be updated.
@harshverma2193
@harshverma2193 Місяць тому
can u please tell me where we have to connect battery wire in arduino
@upir_upir
@upir_upir Місяць тому
This video was only about showing the display portion of the project. If you want to read the voltage of the battery, you need to know more details.
@lloydiee5577
@lloydiee5577 4 місяці тому
how would i implement an actual battery in this project? Like for example using a 9v battery and a breadboard
@upir_upir
@upir_upir 4 місяці тому
You mean a battery to power up the project, or to measure the voltage?
@lloydiee5577
@lloydiee5577 4 місяці тому
@@upir_upir measure the voltage of a 9v , i plan on recharging the battery and use the display to show how much has been charged up
@MrSergias
@MrSergias Рік тому
biutiful LCD )
@upir_upir
@upir_upir Рік тому
I think so too! It´s a big improvement over the "blue" one.
@Edwardify
@Edwardify Рік тому
Will I be able to use a D1 Mini with a 0.9 inch Oled?
@upir_upir
@upir_upir Рік тому
Yes, it should be possible to use this technique with pretty much any microcontroler.
@Edwardify
@Edwardify Рік тому
@@upir_upirAwesome!!! Thank you!
@theskrript_
@theskrript_ Рік тому
Could you make one for the OLED dislpay you had where we can check it by the meny and the buttons?
@upir_upir
@upir_upir Рік тому
Could you please be more specific? Thank you.
@theskrript_
@theskrript_ Рік тому
@@upir_upir Oh sorry, I meant for the 0.96 inch OLED display
@upir_upir
@upir_upir Рік тому
Do you mean showing the battery status on the OLED display?
@theskrript_
@theskrript_ Рік тому
@@upir_upir Exactly! I meant to make one (tutorial for displaying battery percentage) for the OLED 0.96 inch display.
@HelloHelloXD
@HelloHelloXD Рік тому
Have you ever tried to connect multiple displays using TCA9548A?
@upir_upir
@upir_upir Рік тому
Not yet, but I will try it. Thank you for the suggestion!
@duckyblender
@duckyblender Рік тому
I'm trying to do this for the past hour and I just can't do it. It works in the CoolTerm app and in Arduino Serial but when I try in Windows Terminal, it doesn't work, nothing changes on the screen. I've noticed the first time when I plug the arduino in and I set the baud rate etc the arduino restarts. When I check the com port after restarting, it looks good, but nothing happens when I send data. Do you have any idea what is happening? Running Windows 11
@upir_upir
@upir_upir Рік тому
That´s strange, I don´t know why it would work with CoolTerm and not with terminal, but I guess it´s possible. Sorry I´m not helping very much here.
@abdullahtambas9106
@abdullahtambas9106 Рік тому
GUD JAB BIRO
@upir_upir
@upir_upir Рік тому
I will translate this into "good job bro" and thank you for that :)
@abdullahtambas9106
@abdullahtambas9106 Рік тому
@@upir_upir hahaha i said it as a joke. But your content is very good.
@dmitrysysoletin9967
@dmitrysysoletin9967 Рік тому
What is the life expectancy of such a display? At very fist seconds we already can see some burning out - we can see a "frame" (from slightly dim pixels) at the left side of the bar.
@upir_upir
@upir_upir Рік тому
Those are not burned out pixels, but rather loose connection. Some bad soldering (on my part). Once I have re-soldered, it was OK. I haven´t found any exact numbers, but I have heard that you might see burned pixels if you keep the pixel on for more than a year.
@bob-zb3ed
@bob-zb3ed Рік тому
can we do this using arduino leanardo?
@upir_upir
@upir_upir Рік тому
Yes, you can use it with pretty much any microcontroler.
@bob-zb3ed
@bob-zb3ed Рік тому
@@upir_upir thanks
@Diymakervn
@Diymakervn Рік тому
Please arduino nano vs SSD1306
@upir_upir
@upir_upir Рік тому
It should be very similar in concept, what exactly are you looking for?
@mandatory3
@mandatory3 9 місяців тому
Codes?
@upir_upir
@upir_upir 9 місяців тому
It´s the first link in the description of this video.
@ashutoshasare5535
@ashutoshasare5535 Рік тому
nice indicator do you have code ,can you please share
@upir_upir
@upir_upir Рік тому
Thank you, sure, the code is in the description (link to WOKWI online emulator).
@beauclark2199
@beauclark2199 Рік тому
Great content but you speak way to fast! A beginner shouldn't have to slow down the video just to keep up with you. But still absolutely great content.
@upir_upir
@upir_upir Рік тому
Thank you for your comment, I´m trying to slow down, but I guess I need to try harder.
@marinenav8
@marinenav8 Рік тому
There are source code ?
@upir_upir
@upir_upir Рік тому
Yes, should be in the description of the video.
@TheBypasser
@TheBypasser Рік тому
Lol that's how Arduino kills any proper engineering thought. Normally this is done like: FT2232 or instead a USB-capable MCU (I prefer Bluetooth tho) if the former is too expensive, a widget renderer (pure software, PC-side unless traffic issues) and a neat monochrome OLED because cheaper and nicer than STN LCMs. Also the ONLY good programming language for AVRs is Assembler anyway.
@upir_upir
@upir_upir Рік тому
Maybe you shoul record a tutorial to educate others? I would love to watch it.
@agusprayogo7932
@agusprayogo7932 Рік тому
man it seems like you are struggling to send data to the arduino like how you wanted. you can get my python code if you want to
@upir_upir
@upir_upir Рік тому
Well, I was struggling at first, but I think it´s figured out. I´m sure using a "proper" programming language and not a batch file gives you more options.
@jorgechac
@jorgechac Рік тому
Do you have a wokwi project where you use the ?
@upir_upir
@upir_upir Рік тому
This one is using it, or am I missing something?
@jorgechac
@jorgechac Рік тому
@@upir_upir I already solved the problem with uri shaked.
@upir_upir
@upir_upir Рік тому
That’s great to hear. Could you perhaps share your solution?
@muhammaddanial212k
@muhammaddanial212k Рік тому
Can you tell us the commans for mac. Thanks. I did echo 49 > /dev/cu.usbserial-1440; i think it restarts Arduino also. Also Mode command not found on mac.
@upir_upir
@upir_upir Рік тому
Instead of disabling the line, you can also disable auto-restart on arduino itself. Use either capacitor or resistor - arduino.stackexchange.com/questions/38468/disable-reset-when-com-port-connected-disconnected
Arduino Gauge in 11 Minutes ???
11:01
upir
Переглядів 21 тис.
Эффект Карбонаро и пончики
01:01
История одного вокалиста
Переглядів 3,7 млн
😱СНЯЛ СУПЕР КОТА НА КАМЕРУ⁉
00:37
OMG DEN
Переглядів 560 тис.
Arduino Projects - 12 GREAT Ideas for you!!!
9:00
ToP Projects Compilation
Переглядів 329 тис.
Arduino SIM800L | Signal Strength | Battery Indicator | OLED
5:25
Ahmad Logs
Переглядів 13 тис.
My First ATTINY85 Project!
23:48
upir
Переглядів 68 тис.
Trying To Escape a Drone Using An Invisibility Shield
4:44
The Action Lab
Переглядів 129 тис.
Arduino diy battery tester
8:03
Esperienze elettroniche
Переглядів 10 тис.
THEY SAID IT WOULDN'T WORK...
8:03
JerryRigEverything
Переглядів 142 тис.
Posy’s designs ➔ REAL DISPLAYS
8:50
upir
Переглядів 342 тис.