I designed a 5/24Vout voltage selector circuit with the schematic design that I drew below:
By bridging either Pin 1-2 or Pin 2-3 of J6, I could have two different voltage dividers leading to two different output voltages.
After producing the PCB for this, I tested the output voltage and found that if I selected 5V, the output voltage was about 9.35V and if I selected 24V the output voltage was 48V, about twice the intended output voltage of 5V/24V.
Knowing that the boost converter chip can only support up to 28Vout, I assumed that I had somehow drawn a series circuit on the PCB.
Would greatly appreciate it if somebody could point out the problem in the schematic/PCB, thanks!
Note: I selected either voltage by bridging Pin 1-2 or Pin 2-3 of J6 using this:
Link to boost converter:
https://www.olimex.com/Products/Breadboarding/BB-PWR-3608/resources/MT3608.pdf