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

Комментарии • 98

  • @upir_upir
    @upir_upir  6 месяцев назад

    Do you like the video? Please consider buying me a coffee ☕, thank you! www.buymeacoffee.com/upir

  • @ITTom
    @ITTom 2 года назад +28

    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  2 года назад +2

      Glad to help! And thank you for such a nice comment!

  • @mohamedzeko277
    @mohamedzeko277 2 года назад +15

    The amount of details are just amazing!!
    Thank you for this informative video!

    • @upir_upir
      @upir_upir  2 года назад +2

      Thank you for such a nice comment!

  • @teslastellar
    @teslastellar 2 года назад +3

    Thanks a lot for including the analysis with the logic analyzer 👍

    • @upir_upir
      @upir_upir  2 года назад

      Glad it was helpful! I´m trying different ways how to improve the clarity of my videos.

  • @andymouse
    @andymouse 2 года назад +4

    You always provide stacks of 'food for thought' this channel is awesome and I hope you have plenty more !...cheers.

    • @upir_upir
      @upir_upir  2 года назад +1

      Thank you! I’m glad it’s helpful in generating more ideas, and I will surely record more videos.

  • @philsponsel3824
    @philsponsel3824 2 года назад +1

    the quality of your tutorials is outstanding!

  • @duckyblender
    @duckyblender 2 года назад +1

    Your channel is so underrated, thanks for this valuable info :)

    • @upir_upir
      @upir_upir  2 года назад

      Thank you for your comment! Let’s see if it will grow more in the future 🙂

  • @stylesoftware
    @stylesoftware 2 года назад +1

    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  2 года назад

      Wow, thank you for such a nice comment! I really appreciate it. Good luck with your projects!

  • @raymondmichael4987
    @raymondmichael4987 2 года назад +4

    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  2 года назад +1

      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 8 месяцев назад +2

    This man is great , quality content 👏👍

  • @Abc-sl1nf
    @Abc-sl1nf Год назад +1

    Very cool!! Complex but easy to follow w your explanation. MORE PLS!!

    • @upir_upir
      @upir_upir  Год назад +1

      Thank you! Please check also my other tutorials, they are hopefully also easy to follow...

  • @lilsusred5567
    @lilsusred5567 2 года назад +2

    Can't get enough of this :)

    • @upir_upir
      @upir_upir  2 года назад

      That’s great to hear!

  • @temyraverdana6421
    @temyraverdana6421 2 года назад +3

    Wow, a wonderful explanation. Thanks

    • @upir_upir
      @upir_upir  2 года назад

      Glad it was helpful!

  • @anermly1729
    @anermly1729 2 года назад +1

    i never knew there was an oled version od the 16x2 display :D

    • @upir_upir
      @upir_upir  2 года назад

      Great to hear it was useful information :)

  • @seanlennon5044
    @seanlennon5044 2 года назад +1

    Excellent tutorial, more please.

  • @harshverma2193
    @harshverma2193 4 месяца назад +1

    can u please tell me where we have to connect battery wire in arduino

    • @upir_upir
      @upir_upir  4 месяца назад

      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.

  • @epicmach1332
    @epicmach1332 3 месяца назад +1

    Does the battery life Indicator also work for a normal battery like a 9v Block?

    • @upir_upir
      @upir_upir  3 месяца назад

      This tutorial is for getting a status for laptop battery, for a different battery, the sketch and wiring would have to be updated.

  • @hacker6695
    @hacker6695 Год назад +1

    Thanks for wonderful information

    • @upir_upir
      @upir_upir  Год назад

      Thanks for liking, and for your nice words!

  • @kralece
    @kralece 10 месяцев назад +1

    very informative. thanks brother.

    • @upir_upir
      @upir_upir  10 месяцев назад

      My pleasure. Good luck with you projects!

  • @mkhatri007
    @mkhatri007 Год назад +1

    Thanks alot for this unique tutorial. Please increase the font size in Arduino IDE, :) to let us view more easily. :)

    • @upir_upir
      @upir_upir  Год назад +1

      Thank you for your comment and suggestion. I will do it, at least to match the font size in wokwi which is slightly bigger..

  • @theskrript_
    @theskrript_ Год назад +1

    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_ Год назад +1

      @@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.

  • @vinothn4228
    @vinothn4228 2 года назад +1

    Hey legend! You give me a new way🙂

    • @upir_upir
      @upir_upir  2 года назад

      That´s great to hear!

  • @Edwardify
    @Edwardify 2 года назад +2

    Will I be able to use a D1 Mini with a 0.9 inch Oled?

    • @upir_upir
      @upir_upir  2 года назад +1

      Yes, it should be possible to use this technique with pretty much any microcontroler.

    • @Edwardify
      @Edwardify 2 года назад

      @@upir_upirAwesome!!! Thank you!

  • @lloydiee5577
    @lloydiee5577 8 месяцев назад +1

    how would i implement an actual battery in this project? Like for example using a 9v battery and a breadboard

    • @upir_upir
      @upir_upir  8 месяцев назад

      You mean a battery to power up the project, or to measure the voltage?

    • @lloydiee5577
      @lloydiee5577 8 месяцев назад

      @@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

  • @dmitrysysoletin9967
    @dmitrysysoletin9967 2 года назад +1

    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  2 года назад

      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.

  • @MrTex263
    @MrTex263 2 года назад +1

    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  2 года назад

      Thank you, also for the great tip! I have to look at that library, it looks promising.

  • @4miniengineers
    @4miniengineers 2 года назад +1

    Nice work

  • @PhG1961
    @PhG1961 2 года назад +1

    Nice video !

  • @beauclark2199
    @beauclark2199 2 года назад +1

    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  2 года назад +1

      Thank you for your comment, I´m trying to slow down, but I guess I need to try harder.

  • @SuperHarut12
    @SuperHarut12 Год назад +1

    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.

  • @RobotoForgoto
    @RobotoForgoto Год назад +1

    Good one!

  • @MasterSergias
    @MasterSergias 2 года назад +1

    biutiful LCD )

    • @upir_upir
      @upir_upir  2 года назад

      I think so too! It´s a big improvement over the "blue" one.

  • @HelloHelloXD
    @HelloHelloXD 2 года назад +1

    Have you ever tried to connect multiple displays using TCA9548A?

    • @upir_upir
      @upir_upir  2 года назад +1

      Not yet, but I will try it. Thank you for the suggestion!

  • @duckyblender
    @duckyblender 2 года назад +1

    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  2 года назад

      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.

  • @bob-zb3ed
    @bob-zb3ed 2 года назад +2

    can we do this using arduino leanardo?

    • @upir_upir
      @upir_upir  2 года назад

      Yes, you can use it with pretty much any microcontroler.

    • @bob-zb3ed
      @bob-zb3ed 2 года назад

      @@upir_upir thanks

  • @Diymakervn
    @Diymakervn 2 года назад +1

    Please arduino nano vs SSD1306

    • @upir_upir
      @upir_upir  2 года назад

      It should be very similar in concept, what exactly are you looking for?

  • @texajs
    @texajs 2 года назад +1

    GUD JAB BIRO

    • @upir_upir
      @upir_upir  2 года назад

      I will translate this into "good job bro" and thank you for that :)

    • @texajs
      @texajs 2 года назад

      @@upir_upir hahaha i said it as a joke. But your content is very good.

  • @ashutoshasare5535
    @ashutoshasare5535 Год назад +1

    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).

  • @Realitytellers
    @Realitytellers Год назад +1

    Codes?

    • @upir_upir
      @upir_upir  Год назад

      It´s the first link in the description of this video.

  • @marinenav8
    @marinenav8 2 года назад +1

    There are source code ?

    • @upir_upir
      @upir_upir  2 года назад

      Yes, should be in the description of the video.

  • @TheBypasser
    @TheBypasser 2 года назад +1

    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  2 года назад +2

      Maybe you shoul record a tutorial to educate others? I would love to watch it.

  • @agusprayogo7932
    @agusprayogo7932 2 года назад +1

    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  2 года назад +2

      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.

  • @muhammaddanial212k
    @muhammaddanial212k 2 года назад +2

    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  2 года назад +2

      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

  • @jorgechac
    @jorgechac 2 года назад +1

    Do you have a wokwi project where you use the ?

    • @upir_upir
      @upir_upir  2 года назад

      This one is using it, or am I missing something?

    • @jorgechac
      @jorgechac 2 года назад +1

      @@upir_upir I already solved the problem with uri shaked.

    • @upir_upir
      @upir_upir  2 года назад

      That’s great to hear. Could you perhaps share your solution?