aljendi
Hi, I am working on a simple program that uses the OpenPLC on Raspberry Pi to control a servo motor and IR sensor, the idea is easy once the IR detects any car the servo move 90 degrees to open, and once it detects noting the servo go back to 0 degrees, I want to know how to write a ladder logic diagram to drive a servo motor?

Untitled.jpg

I have seen some topics here regarding the servo and I have drawn this diagram but I am not sure of it or what's missing to fill the empty above the diagram



Also, I need to display the numbers of the cars detected so does the LCD 16*2 is supported by OpenPLC or there is any device that can show numbers and supported by OpenPLC?



Can anybody show me the correct ladder logic diagram? or help me with any explanation, please?
Reply 0 0
Pascal34
Hello, what type of servo are you trying to drive ?
a stepper motor ? or a simple DC motor ?
Reply 0 0
Reply