This is my first post here... I hope I will do everything correctly.
I need to use a pin as power in and power out, switching it when needed. In particular, I want to use a USB micro B (5 pin) and use the ID pin as power in-out selector like an OTG cable does.
I need a power out when the ID is floating (NC) and power in when ID is connected to ground.
It can be done with an SPDT relay, but I don't have enough space to place it! So I need to realize the SPDT circuit over the main pcb.
To be more clear, I'm using the USB connector as a hardware connection only! No D+ or D-communications. It's useful that the battery charger will always be connected and the boost will power the load only when ID is tied to ground.
Specs:
- Voltage: 5V
- Current: 1A