![]() ![]() What kind of IR sensor are you using? If it has a simple 0 or 1 output then it should substitute for a microswitch with no code changes except maybe an inversion. ![]() -switch for reversingĮlse if(!input(PIN_D2))//-counter clockwise mode Can you please interface the code for the sensor as switch only, just to stop the motor when its detected an object and if there's no object the motor is still active. I am using a switch as i mentioned in my Proteus simulation placed in PIN_d3, because my ir proximity sensor kit has three wires, input, output, and for ground. Then if the sensor is OFF, the motor is activated. When sensor is activated, means is ON, the motor will stop. I have already the code in c language and I would like to use sensor but i don't know how to code it. How to interface IR proximity sensor as switch?Ĭan anyone help me to solve this problems. Send them to to interface IR proximity sensor as switch? Please do not post bug reports on this forum. ![]() CCS :: View topic - How to interface IR proximity sensor as switch?įAQ Forum Help Official CCS Support Search Register Profile Log in to check your private messages Log inĬCS does not monitor this forum on a regular basis. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |