Have questions about FETS, transistors, measurement, power supplies, or anything else electrical?

User avatar
By Jakub Kubny
#91974 Hello,
In my ESP8266 project, I would like to have one universal USB interface for a battery charging and also for serial communication and firmware uploading.

The ESP8266 is powered by a Li Ion cell and I've got a following thought: When I connect the device to a (for example) mobile charger, it would be nice, if a cell starts charging. And also, when I connect the device to a computer using same USB interface, it should be possible to upload new firmware or debug the device using a serial monitor.

Is this setup possible and how to do that?