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....
kowshik1729 last edited by
@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 ..
Developing Android Applications with Eclipse is a bit old way. Few eclipse enthusiasts might be doing it still though. For your issue, check all the environment variables related to SDK and Emulators are correctly configured.
If you're a beginner and no specific reason to use Eclipse, try to start with AndroidStudio.
@rahuleapen Can you please share the connection diagram?
Arduino has been compiled to run a motor pump. The pump seems to be working fine via the 5v and ground port with appropriate voltage and current. The same voltage and current is seen across the gpio whenever turned high but the motor doesn't run via gpio. Can anyone help me out here..please it's urgent
@rosetoby Thanks for sharing, can you post your queries with details, code snippet ..etc
@vipin-i-v I think so, let us know the updates!