Dear all,
there is marble slicing machine which has failed controller. and for that i did mcu based controller this controller has the following inputs
plus button, minus button, enter button, proximity sensor input at mcu interrupt pin and limit switch input. the controller let user for adjusting the marble width adjustment. pressing the enter button start the controller normal cycle it start inching motor which moves the marble deck left or right. after the proximity sensor counts define number of revolution on the shaft the mcu stop the inching and start forward/backward motor which moves the deck forward or backward. but the mcu should check limit switch at either extreme of forward/backward move and should start the inching (the mcu only start the big motor switching of the motor is done with limit switch). the limit switch only tells the mcu that the big motor moves the deck to the extremes and it is switched off so that the mcu start inching again.
all the revolution counting and sequence is okay, but the big and confusing problem is : the mcu think as the limit switch depressed when only the big motor stopped, i thought it was due to electromagnetic interference and increase the redundancy of input checking but the problem remain the same.
i have attached the source code and rough schematics
there is marble slicing machine which has failed controller. and for that i did mcu based controller this controller has the following inputs
plus button, minus button, enter button, proximity sensor input at mcu interrupt pin and limit switch input. the controller let user for adjusting the marble width adjustment. pressing the enter button start the controller normal cycle it start inching motor which moves the marble deck left or right. after the proximity sensor counts define number of revolution on the shaft the mcu stop the inching and start forward/backward motor which moves the deck forward or backward. but the mcu should check limit switch at either extreme of forward/backward move and should start the inching (the mcu only start the big motor switching of the motor is done with limit switch). the limit switch only tells the mcu that the big motor moves the deck to the extremes and it is switched off so that the mcu start inching again.
all the revolution counting and sequence is okay, but the big and confusing problem is : the mcu think as the limit switch depressed when only the big motor stopped, i thought it was due to electromagnetic interference and increase the redundancy of input checking but the problem remain the same.
i have attached the source code and rough schematics
Attachments
-
2.8 KB Views: 10
-
12.1 KB Views: 13