Code : https://github.com/bastelbude-01/Ros2-Foxy-L298N-Driver
My old Leopard 2A6 Tank Modell. Only the original dc motors were allowed to stay. Raspi 4 with 8GB Ram , L298n Motor driver .
I use 3 circuits. battery voltage for the motors, 5.3V 3A for the Pi4 and 5V 1.5A for all other consumers