I have a Single Board Computer. I can power it both off a cell phone power bank or straight from the wall. The wall adapter is 5V/2A. The battery is a 10000mAh. The battery can be charged with 2A or 1A. The output is 2.1a max. The wall adapter has a barrel connector, and the power bank has usb.
I want to add a switch. First, to turn the computer on and off. Secondly, with the switch I want to be able to use both the 5V/2A. wall plug and the battery at the same time. The wall plug should power the battery. If the wall plug is not plugged in, the battery would power the device.
Does anybody know what other components I would need or how to wire this to make this work?
The switch: https://www.amazon.com/dp/B015X34IP6?psc=1&ref=ppx_yo2_dt_b_product_details
The single board computer: http://www.orangepi.org/orangepipcplus/
The cell phone battery: https://www.amazon.com/gp/product/B07PHX7CCM/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
The power wall charger: https://tinyurl.com/Power-Adapter
I want to add a switch. First, to turn the computer on and off. Secondly, with the switch I want to be able to use both the 5V/2A. wall plug and the battery at the same time. The wall plug should power the battery. If the wall plug is not plugged in, the battery would power the device.
Does anybody know what other components I would need or how to wire this to make this work?
The switch: https://www.amazon.com/dp/B015X34IP6?psc=1&ref=ppx_yo2_dt_b_product_details
The single board computer: http://www.orangepi.org/orangepipcplus/
The cell phone battery: https://www.amazon.com/gp/product/B07PHX7CCM/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
The power wall charger: https://tinyurl.com/Power-Adapter