Circuit board of the headlight control unit defective?

The following background story: I had an accident with my car, and my right xenon headlight developed a leak. The water that got in it caused the entire headlight to stop working, including all of its functions. Now, my question is about the headlight's main control unit. Can this be saved by cleaning it with…

To what extent can sensors connected to an Arduino influence each other?

I have a strange problem with an anemometer – the measured value keeps jumping back and forth without any discernible logic. The revolutions are measured with a Hall sensor TLE4905, which is a digital Hall sensor that only reacts to one of the two poles. The test setup on the breadboard works so far that…

How can I use an optocoupler on a digital out?

I would like to operate an Arduino with 12 or 13.8 and control two 12V motors with the Arduino – with a 4-channel relay card whose inputs are separated from the 12V circuit by optocouplers, this also works, but not with a simple MOSFET. But I would rather use Mosfets than the already decoupled relay…

Why doesn't my calculation work?

I have connected a potentiometer to my Arduino and convert the values ​​into a scale from 0 to 100: // Variablen für Potentiometer int Potentiometerwert = 0; int Potentiometerminimum = 125; float Potentiometerproz = 0; int Potentiometeranz = 0; int Potentiometermax = 896 – Potentiometerminimum; int Potentiometerdifferenz = 0; int Gradkorrektur = 0; //Potiprozent berechnen…