Read battery percentage using Arduino

  • Is it possible to read battery info of an Android with an Arduino via Bluetooth without an external app on the Android side .

    For example . Bluetooth connection to a cars media player shows battery life , signal strength ,etc....

  • @vijayvarghese The answer is "NO". If my guess is correct, you might have misunderstood the working of Classic Bluetooth and Bluetooth Low Energy(BLE). You cannot acquire battery percentages, RAM usage directly just by connecting HC-05 to Arduino and connecting it to mobile phones. Because our mobile phones don't share any characteristics to outside just through Bluetooth.

    The example of car which you have stated is just applicable to the automobile field. If you are able to read the battery percentage, signal strength kind of parameters that means that the car's BLE has been programmed with those characteristics to be displayed. To be simple, it means that the Bluetooth inside the car has been given permission to display those. It depends upon the BLE configuration used and security levels. You cannot access any parameters from mobile phone just with Arduino and HC-05 Bluetooth module.

    If you want to learn more about this please read the post in makergram named "Automatic pairing of ESP32 using BLE" where @salmanfaris has given a detailed explanation of how BLE works. If you want to work out how BLE's work, try connecting your MI Band(Or any smart wrist bands) to the nRF Connect Mobile app(Can be found in play store for free). Try seeing what parameters are displayed. please write back in case of queries.!!

  • @kowshik1729 Thank you ..

Log in to reply

Recent Posts

  • R

    thank youu

    read more
  • @Richu-Bini thanks for posting the question . just for a brief about pwm, pulse width modulation technique is a method to change the duty cycle of a wave. Which means you can determine how much time a signal must be on or off.

    So, coming to the question, software pwm and hardware pwm is just two different ways of producing same result. In software(referring Arduino here) you'll just write a value between 0 to 255 inorder to determine duty cycle percentage. For example 0 is 0% duty cycle which means the cycle is on for 0% of whole time, similarly 127 means 50% of time cycle will be on and 255 means signal will be on for ever. This is regarding software.

    Coming to hardware, you can generate a pwm signal using very simple passive component, called as potentiometer and 555 timer IC by using 555 timer as bistable multivibrator(The generated output will have two stable states 0 and Vmax, hence the name bistable) and changing the resistance using a potentiometer generates different duty cycles. This is the difference between hardware and software pwm. Please let me know if I haven't explained what you have expected.

    read more
  • Kerala Java User group Februaruy Meetup.png

    This month we are discussing Psychology and Perils of Polyglot/Mixed Language Programming

    by Praseed Pai

    Author of .Net Design Patterns and
    C++ Reactive Programming,
    Father of SLANG Compiler.

    Nowadays, every developer in the world ought to be a Polyglot (Programmer) to do something worthwhile in the industry. But, most are not prepared to get into that groove. The Session will give necessary conceptual, ontological, linguistic and formal background to navigate between programming languages with ease. The Session has got examples in C++, C#, Java, Scala, Python, JS, Python/C interface, Java Native Interface, P/Invoke, COM interop, RxJava/RxJS./Rxcpp/ etc. All code snippets are taken from real-life projects which the presenter has been part of, in the past two decades. The session also covers some pitfalls which an aspiring Polyglot Programmer should be watchful, as well.

    Don't miss it, book your seats today. It's a golden opportunity for all Enthusiasts to listen from the true industry experts!

    Come and join​ us! Have a Java Coffee 🙂

    Date & Time : 29th February 2020 02:30 PM to 05:30 PM

    Location       : KeyValue Software Systems Pvt Ltd, SmartCity Kakkanad
    Map :

    Grab your ticket at:

    read more
  • R

    What is the difference between hardware pwm and software pwm

    read more
  • Flat/ball end

    alt text

    flat end leaves flat surface profile on the stock and are good for removing large volume of material, but steps are formed when used for making curved surfaces. Ball end leaves curved surfaces and forms smooth curved finish while cutting cavities. They are used for finishing cuts.

    read more