Timotej Matuš
Hi Iam working on my school project and i need help because I cant find anything . Iam making smart home where will be garage doors powered by 12V DC motor whitch is connected to 2 5v rele modul one to go up and other to go down it will stop via magnetic sensor (REED sensor) . Problem is that motor has really high RPM. Iam using arduino mega. Is there a way I could use the pwm pins on the arduino with openplc? So I could control the speed of a motor with mosfets?
Reply 0 0
thiagoralves
Yes. Any %QW location is tied to a PWM pin. Writing a value between 0-65535 to a variable located in a %QW location will essentially make a PWM wave on that pin proportional to the value you've written, where 0 is turned off and 65535 is 100% duty cycle (fully on).
Reply 1 0
Reply