From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Digilent offers a Motor Adapter made just for myRIO. They also offer it part of the myRIO Mechatronics Accessory Kit. The motor adapter allows you to easily connect and control either one stepper motor, two DC motors, or two servos independently through the MXP connector on myRIO with no additional circuitry required. Additionally, the motor adapter offers over-current protection.
For more information on this motor adapter, check out the Digilent resource center.
Digilent Motor Adapter with a DC Motor
DC motors can be connected to the Digilent Motor Adapter using the two 6-pin connectors or using screw terminal connectors. The board conveniently connects the motor outputs and encoder inputs to the proper pins on the myRIO MXP connector so that you can use the following express VIs in the myRIO pallette for either MXPA or MXPB:
The Digilent Geared DC Motor is also part of the myRIO Mechatronics Accessory Kit. It is terminated with the 6-pin connector. Below and attached is example code for controlling speed and direction of the DC motor and reading encoder position and direction.
Hello Dayna,
Do you also have example code to control stepper motor?
Thanks.
Khoa
Hi! I've found example code to control stepper motor here - https://forum.digilentinc.com/topic/1133-digilent-motor-adapter-for-ni-myrio/#comment-5474
Hi,
Thank you very much!
Best regards,
Khoa
I’d like to use analog input (AI0 to AI3).
How to use these ?
Hello, I have a question, why is the motor speed and duty cycle inversely proportional when I use the following hardware?