Having some trouble working out how the microswitch signals the controller when to stop sending 24 volts to the motor.
If that has any relevance then you need to tell us what role you want the Arduino to play....R
Without the Arduino:24V Power to Microswitch COMMicroswitch NC (normally closed) contact to motor power.Motor ground to 24V ground.and Connect 24V power to a push button switch, then from the switch to the motor power.When the motor is home, the microswitch is open stopping the motor from getting power. Pressing the push button switch bypasses the microswitch and causes the motor to run. As soon as the microswitch closes, release the pushbutton and the motor will continue until it rotates to the home position and cause the microswitch to open again.
Testing the microswitch with a multimeter, it read a closed circuit when the button was or wasn't pressed.
It's taking over the role of vending machine controller for a compact vending machine.
That does not tell me if my description of the process has any relevance,Neither does it answer my question about the role of the Arduino in relation to the motor....R
I'll try to answer your questions. If I'm misunderstanding let me know. I'm not very knowledgeable about wind screen wipers but I'd imagine that whatever motor used would need to go back and forth with a variable speed control switch. My application is for a single direction 360 degree turn, once off activation. The activation (and deactivation) of the motor is to be controlled by an arduino. The purpose of which is to vend a food or drink item from a vending machine(spiral coil). Once I can get this part of the process to work I need to put together a set of conditions that the arduino uses to vend based on user input and sufficient funds.
If you are checking continuity (ohms) from COM to NO then it should be open when not pressed and closed when pressed. If this is not the case, then the switch is kaput. (You should also check COM to NC with the opposite actions on the switch)
You do misunderstand, then. The motor only turns one way. The back and forth motion of the wiper is because of the crank mechanism attached to the gear box of the assembly. Do you have the gear mechanism still attached to the motor?
I'll try to answer your questions. If I'm misunderstanding let me know. I'm not very knowledgeable about wind screen wipers but I'd imagine that whatever motor used would need to go back and forth with a variable speed control switch.
Let's forget the windscreen wiper idea. Got me confused! Does the shaft that presses on the push button of the micro-switch have a flat spot that releases the button as the shaft revolves?Paul