The simplest way to charge a battery while driving is with a separation relay. It connects the starter battery and the on-board battery together while driving and separates them when the engine is switched off.
12V/24V 200A
Also interesting
CHF 299.00–CHF 440.00Price range: CHF 299.00 through CHF 440.00