Activity › Forums › Questions & Troubleshooting › Frequency of MINI PWM outputs
-
Frequency of MINI PWM outputs
-
Hello everyone.
I would like to check for the first time a Controllino, and I guess what is the maximum output frequency for a PWM output. I would like to control a position of a step motor.
I should do a “home”, and Control the quantity of pulses for reach always the same position.
I think to modify the duty cycle for upload and download speed.
What could be the best way to do it?
Are there a special library for do it?
Any advice?
Thanks in advance
-
Hi Oscar1975
I think I know what you are trying to ask.
You can access the digital pins on the maxi and mega through the 26 pin headers just like you would an Arduino except that the Controllino’s pins have ESD protection.
I think you are asking what is the maximum frequency that the pins can do a digitalWrite function so that you can either drive a stepper directly or send a pulse to a stepper driver?
An arduino UNO GPIO pin can do a digitalWrite of about 147khz I have found at 5v. If you need to go faster you will have to use fastdigitalWrite or Port manipulation.
Log in to reply.