I am programming a DCC centrale for modeltrains using an L298N breakout board. And after blowing up both sides of this board I ordered a new one togather with a ACS712 current measure sensor.
The current sensor outputs 100mV/A so with a limit of say 2.5A I want to measure for 250mV with analogRead every program cycle.
I haven't measured the cycle time of void loop() yet but should be near ~1ms or less. I understand assembly and 8-bit uController structures so I avoid any complicated instructions. So I won't deviding a float by another float :D
But I wonder, would this sensor and method be safe and efficient enough to prevent damage to the L298N?
I can buy 10 for 20€ on Ebay but I prefer not ever have to change the driver at all. Otherwise I go for the 43Amp motor driver with inbuilt current sense pin instead but these are more expensive