I would like to create a power supply for a learning project, using either a DC adapter or a 9v battery.
I've read a few topics here and on the web about barrel connectors, but I'm still not sure how to use it properly in conjunction with a battery.
The schematics and articles I found are unfortunately too vague for my poor understanding, so I made one.
Is this the correct way to wire the battery to a barrel connector, so I can use one or the other?
Battery will be 9v, DC adapter will certainly be 12v.
Ideally, I would like to be able to keep the battery in place while using the DC adapter. Battery will then just be bypassed.