I'm trying to replace a Li-Ion battery powering a device with a USB cord directly connected to my PC.
Which design parameters should I consider in choosing the right components? I only took in consideration voltage and (estimated) current draw.
The device uses a single cell 3.7V battery and, since I think that the full charge voltage should be 4.2V and the end-of-discharge voltage should be 3V, I'm going to supply the device with 3.3V voltage.
The way I'm going to achieve that is by a Linear Voltage Regulator: which to choose to best emulate the Li-Ion battery? Is an AMS1117 good or should I choose something different? Will some component damage my PC?
Current draw should be around 50 mA.