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 ..
I have made a custom board with Atmega328P SMD IC and now I am having a problem flashing it. I have flashed multiple chips like these earlier, however this time I am having a hard time figuring out the issue.
I am using Arduino UNO as an ISP programmer to burn bootloader but getting responses like Attempt 1 of 10 - stk500() is not responding etc., like that. I need some help regarding this issue.
Any kind of help will be greatly appreciated. Please ask me for any additional information that I might have not mentioned in this post.
Thanks in advance.
I have been facing this problem recently while I run the program the output terminal just shows scanned text and the android virtual device is not opening. I have reinstalled the SDK but the problem still persist.!
Hi, I was looking for a reliable carbon monoxide sensor, I tried the MQ7 sensor, but it has a preheat time of 48 hours and a sensitivity range from 20ppm-2000ppm, and my application requires 1ppm to 1000ppm. let me know if anyone working with a similar sensor or use case!
@milanvarghese No, the battery comes into the play only if there is no power from the solar cell. It's like inverters in our home. They activate only if main power is gone, rest of the time they keep charging. similarly here the direct power will be coming from the solar cell, only if the solar cell can't produce enough voltage battery comes into the loop and starts providing voltage to our circuit.
@kowshik1729 I have seen this, but doesnt it damage that battery? dischargeing and charging at the same time?