Hello everyone. I am working on a small project with a relay, a lamp and an ACS712 current sensor. The point is that I want to open the circuit using the relay when the sensor read a value above 2 amps, this condition will happen when I short with R1 = 0 ohms. The ATMEGA 2560 operates at 16MHz with an external crystal. My question is, is it possible to do that? Will the IC be fast enough to take action before any component is damaged? Attached I leave my diagram, it is only for explanatory purposes.
Thank you in advance. Have a nice day