I am interested in using an Arduino/ESP8266 to control my phone charging and stop charging at a defined percentage to prolong battery life.
I have an app which vibrates 3 times at whatever charge limit I set, but if I’m not there to stop it, the phone continues charging to 100%.
Theoretically, it ought to be possible to use a vibration sensor and arduino to switch a relay and turn the phone charger off if it detects the correct vibration pattern.
Any ideas on how I should configure the vibration detection ? Ideally it would look for the pattern of 3 distinct vibrations, so the phone charging is not stopped by other notifications.
[Note: Some people think such control is unnecessary, as they change phone every 2 years. Fine, that’s your prerogative, but I’d like to get 3~5 years out of my phone and would like to keep the discussion focused on the above request. So please don’t tell me why I don’t need to do this. Thank you.]