Hi,
I'm working on a PCB project. It's an HMI with display. This circuit need to be supplied by 18V power supply or 18V battery pack, When the power supply is unplugged, the circuit is supplied by a battery pack (5x3,7V batteries), while When the power supply is plugged the supply came from 18V power Supply.
Below, a simple scheme of what I need to realize.
I would like to understand what kind of circuit I should make, and more or less how to make it.

I'm working on a PCB project. It's an HMI with display. This circuit need to be supplied by 18V power supply or 18V battery pack, When the power supply is unplugged, the circuit is supplied by a battery pack (5x3,7V batteries), while When the power supply is plugged the supply came from 18V power Supply.
Below, a simple scheme of what I need to realize.
I would like to understand what kind of circuit I should make, and more or less how to make it.
