I am using an 08M2+ chip to operate a small geared 10 RPM 12V motor to lock and unlock a door....
Operation is basically a pushbutton toggle switch indoors which causes the motor to rotate 90 degrees to either lock or unlock a door .......at the desired point a microswitch operates via a cam in a plastic wheel which signals the cct. to disconnect power and apply a short to the motor so it stops dead.
The mechanical design and parts all work fine, the problem being that on occasions it doesnt trigger motor movement and/or the reverse relay and so next time the switch is operated the motor goes the "wrong" way causing mechanical damage - the motors I am using are mini geared 12V @ 10rpm and have monumental torque whilst only consuming around 300mA.
When bench testing it worked 99.9% of the time then although it didnt operate the motor it DID appear to change state as, on the next operation of the switch the motor moved the wrong way which is the problem experienced in situ
We cannot get it to go wrong enough to investigate further......it usually (although not always) does it when unlocking with the relay not operating and also no o/p on the motor run pin, I thought it might be contact bounce in the switch so my son added a de-bounce check in the "main" section, sometimes the motor also stops mid-way as if the microswitch had operated
I have replaced the PIC with a brand new never used one and that does the same
Any guidance appreciated
Thanks
Operation is basically a pushbutton toggle switch indoors which causes the motor to rotate 90 degrees to either lock or unlock a door .......at the desired point a microswitch operates via a cam in a plastic wheel which signals the cct. to disconnect power and apply a short to the motor so it stops dead.
The mechanical design and parts all work fine, the problem being that on occasions it doesnt trigger motor movement and/or the reverse relay and so next time the switch is operated the motor goes the "wrong" way causing mechanical damage - the motors I am using are mini geared 12V @ 10rpm and have monumental torque whilst only consuming around 300mA.
When bench testing it worked 99.9% of the time then although it didnt operate the motor it DID appear to change state as, on the next operation of the switch the motor moved the wrong way which is the problem experienced in situ
We cannot get it to go wrong enough to investigate further......it usually (although not always) does it when unlocking with the relay not operating and also no o/p on the motor run pin, I thought it might be contact bounce in the switch so my son added a de-bounce check in the "main" section, sometimes the motor also stops mid-way as if the microswitch had operated
I have replaced the PIC with a brand new never used one and that does the same
Any guidance appreciated
Thanks




