DIY Battery Indicator (Arduino Project)
HTML-код
- Опубликовано: 19 авг 2024
- Do you like the video? Please consider buying me a coffee ☕, thank you! www.buymeacoff...
Wokwi project: wokwi.com/proj...
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.aliexp...
16x2 displays with IIC - s.click.aliexp...
------------------------------------------------------------------------------------------------------------------------------
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.aliexp...
Arduino breadboard prototyping shield - s.click.aliexp...
16x2 displays with IIC - s.click.aliexp...
16x2 display with RGB backlight - s.click.aliexp...
original sketch from YWROBOT - wokwi.com/ardu...
character creator - tusindfryd.git...
another character creator - maxpromer.gith...
sprintf explanation - www.programmin...
custom characters simplest project - wokwi.com/proj...
Arduino I2C scanner - playground.ard...
16x2 available characters - docs.wokwi.com...
Bitwise Operators in GIFs - blog.wokwi.com...
Bitwise operators Arduino documentation - www.arduino.cc...
--------------------------------------------------------------------------------------------------------
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
Do you like the video? Please consider buying me a coffee ☕, thank you! www.buymeacoffee.com/upir
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.
Glad to help! And thank you for such a nice comment!
The amount of details are just amazing!!
Thank you for this informative video!
Thank you for such a nice comment!
Thanks a lot for including the analysis with the logic analyzer 👍
Glad it was helpful! I´m trying different ways how to improve the clarity of my videos.
You always provide stacks of 'food for thought' this channel is awesome and I hope you have plenty more !...cheers.
Thank you! I’m glad it’s helpful in generating more ideas, and I will surely record more videos.
the quality of your tutorials is outstanding!
I appreciate that!
Your channel is so underrated, thanks for this valuable info :)
Thank you for your comment! Let’s see if it will grow more in the future 🙂
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.
Wow, thank you for such a nice comment! I really appreciate it. Good luck with your projects!
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 🇹🇿
That´s great to hear! Feel free to share your creations once you have something up and running, I would love to see it!
This man is great , quality content 👏👍
Thank you!
Very cool!! Complex but easy to follow w your explanation. MORE PLS!!
Thank you! Please check also my other tutorials, they are hopefully also easy to follow...
Can't get enough of this :)
That’s great to hear!
Wow, a wonderful explanation. Thanks
Glad it was helpful!
i never knew there was an oled version od the 16x2 display :D
Great to hear it was useful information :)
Excellent tutorial, more please.
Thanks, will do!
can u please tell me where we have to connect battery wire in arduino
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.
Does the battery life Indicator also work for a normal battery like a 9v Block?
This tutorial is for getting a status for laptop battery, for a different battery, the sketch and wiring would have to be updated.
Thanks for wonderful information
Thanks for liking, and for your nice words!
very informative. thanks brother.
My pleasure. Good luck with you projects!
Thanks alot for this unique tutorial. Please increase the font size in Arduino IDE, :) to let us view more easily. :)
Thank you for your comment and suggestion. I will do it, at least to match the font size in wokwi which is slightly bigger..
Could you make one for the OLED dislpay you had where we can check it by the meny and the buttons?
Could you please be more specific? Thank you.
@@upir_upir Oh sorry, I meant for the 0.96 inch OLED display
Do you mean showing the battery status on the OLED display?
@@upir_upir Exactly! I meant to make one (tutorial for displaying battery percentage) for the OLED 0.96 inch display.
Hey legend! You give me a new way🙂
That´s great to hear!
Will I be able to use a D1 Mini with a 0.9 inch Oled?
Yes, it should be possible to use this technique with pretty much any microcontroler.
@@upir_upirAwesome!!! Thank you!
how would i implement an actual battery in this project? Like for example using a 9v battery and a breadboard
You mean a battery to power up the project, or to measure the voltage?
@@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
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.
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.
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!
Thank you, also for the great tip! I have to look at that library, it looks promising.
Nice work
Thank you! Cheers!
Nice video !
Thank you!
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.
Thank you for your comment, I´m trying to slow down, but I guess I need to try harder.
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?
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.
Good one!
Thank you! Cheers!
biutiful LCD )
I think so too! It´s a big improvement over the "blue" one.
Have you ever tried to connect multiple displays using TCA9548A?
Not yet, but I will try it. Thank you for the suggestion!
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
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.
can we do this using arduino leanardo?
Yes, you can use it with pretty much any microcontroler.
@@upir_upir thanks
Please arduino nano vs SSD1306
It should be very similar in concept, what exactly are you looking for?
GUD JAB BIRO
I will translate this into "good job bro" and thank you for that :)
@@upir_upir hahaha i said it as a joke. But your content is very good.
nice indicator do you have code ,can you please share
Thank you, sure, the code is in the description (link to WOKWI online emulator).
Codes?
It´s the first link in the description of this video.
There are source code ?
Yes, should be in the description of the video.
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.
Maybe you shoul record a tutorial to educate others? I would love to watch it.
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
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.
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.
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
Do you have a wokwi project where you use the ?
This one is using it, or am I missing something?
@@upir_upir I already solved the problem with uri shaked.
That’s great to hear. Could you perhaps share your solution?