Electronic – arduino – Reading the status of 48v connection with arduino

arduino

I have an arcade crane machine that has 3 DC motors that all run at 48v, i would like to connect an Arduino in parallel with the motor that lifts the claw up and down so i can see which direction the motor is going in so it will update a strip of WS2815 addressable leds that serve as the attract mode lights. The machine's main control PCB has 7 relays, one for each direction and for the claw solenoid, it basically flips the polarity when it needs to go the other way.

I was thinking about using resistors to lower the 48V to 5v and then connecting both wires to the Arduino's digital pins, then i could read them as HIGH or LOW, but I'm not sure.

Thanks in advance.

Best Answer

Yep, a simple resistor divider is all you need. If you can't get exact resistor values shown, the two things are the ratio to divide it down to 3.3V max and the total resistance so that you aren't pulling a ton of current from the 48V source.

schematic

simulate this circuit – Schematic created using CircuitLab