I have a central doorlock motor that works on 24V and I want to connect it to an arduino. The type of arduino doesn’t matter in this case and the coding doesn’t matter aswell. It is mainly connecting it all together that is a problem. The central doorlock motor works on 24V and to use it I have a few “transistor mosfet DC switch relays” laying arround to switch the 24V. Here is how the central doorlock motor works. When 24V goes in the motor through the red wire and out through the yellow wire. It makes the motor goes to “pos 2”. Then it disconnects the yellow wire internaly. When using the white wire as - it moves the moror to “pos 1” and disconnects it internally and connect the yellow wire. so either the white or yellow wire would move the motor to the 2 different possitions. Now comes the tricky part. It has a black wire that will tell the possition of the motor. But it also uses the white and the yellow wires to tell it. so basicly to move the motor I need to use the red and white/yellow wire, and to tell the possition i need the black and white/yellow wires. So I thought connecting the arduino to black and white/yellow to tell it the possition of the motor would work untill I noticed that when moving the motor with 24V, there goes a high voltage through the white/yellow aswell and maybe blow up the arduino.
Here is a scematic (not connected to each other) of the different components: