
0x00The
original intention of this project is to solve the problem that the router , optical modem
, switch, etc. are all powered by 12V but have their own adapters, which occupy a lot of sockets. For example, the following optical modem, switch, firewall, AP, NAS and bypass router are all powered by 12V. If they all use their own adapters, six sockets are needed.
However, since the power is not large, a large power supply can be used for centralized power supply.

0x01The
following is the partition of each function of the PCB .
OUT1-OUT2 uses a 2596S to step down and output 5V. The 5V here and the 5V of the MCU are independent of each other. Even if this part is burned, the MCU can still work normally.
OUT3-OUT7 is directly connected to the input.
All interfaces of the 12V output are input to the INA180 current sensing amplifier after amplification through a 20mR current sensing resistor and sent to the MCU. After amplification by 50 times, the output current 1V amplifier outputs 1V voltage.
The MCU is powered by an AMS1117 5.0 step-down to provide 5V power.
The leftmost USB interface provides automatic download function.
The onboard AVR-ISP download interface can burn the program. Use
the leftmost XT-60 as the power input of the whole machine.

0x02
Assembly method of the power supply station
The power supply station is fixed with copper pillars as a whole. The panel uses a 1.6 free aluminum substrate as the panel (JLC YYDS).
Note that the OLED adapter board here is different from the one bought on Taobao. If you need to change the screen, you can refer to the appearance design of my open source OLED0.96 adapter board.

0x03
Program explanation
Amateur players have poor programming skills. The implementation idea is to store the current signal released by INA180 after ADC sampling and then stored in the function. OLED uses the U8G2 library to drive
0X04
Actual usage scenario
(there is no actual usage picture because the power adapter cable has not arrived yet)