venkates2218
Full Member level 6
Hai,
please refer the image
There is an 3rpm servo motor in machine.Limit switch is used to identify the position of the motor's shaft.The motor will operate with 230VAC by G2R2 type relay(optocoupler is used to drive the relay).
I'm using PORTRB1 in PIC18F4520 controller to sense the position of the motor.Sometimes the circuit is working fine,but sometimes the controller is malfunctioning.Some unwanted datas or fully blank in LCD.During remaining process there is no error is found in controller's operation and in LCD also.
Error occurring while trying to find the position of the motor only.
For opamp circuit,+5VDC and ground is given for power supply.