Minikurt

First digilent project

Recommended Posts

Hello everybody,

My name is Simon, I'm currently working in an R and T department, trying to design a prototype using the MyRIO motoradapter.

My background is mechanical engineering and I already have made simple prototypes using python and a Phidgets motor adapter.

But I have to use a MyRIO for this project and I have to code in C++ (no labview for me :( ) and here, the problem begins....

Have any of you ever seen such projects ? I can't find any example on the net and to be honest, the small exemple by NI on the C++ for MyRIO aren't clear for a newbie like me.

Any help will be much appreciated, I can't find anything on the forum... The motor is not even started yet ! :) 

 

Have a nice day

Simon

Share this post


Link to post
Share on other sites

Hi @Minikurt,

Unfortunately, We have very limit knowledge of the MYRio. We do not sell the MYRio so we can't really offer experienced support it. I would suggest to reach out to NI for assistance using the MYRio with C++ here.

cheers,

Jon

Share this post


Link to post
Share on other sites

Hi Jon,

Sorry to bother you again,

I've started to look into some code and I think I'll manage it but I still need some clarifications. I hope they will appear very basic for you but again, this is not my area of expertise :).

When it is written in the Motor Adaptor Overview: "Speed/Torque is controlled by setting the duty cycle on the PWM0 pin". But If I want a permanent motor, should I send 100 to the pin or the maximum tension ? In addition, is this the pin that control the stop/start of the motor ?

Thank you very much for your support.

BR

Simon

Share this post


Link to post
Share on other sites

Hi @Minikurt,

You are correct with the Speed/torque and stop start question. At the bottom of that PDF in the Using the Adapter with myRIO section it goes into detail like direction is controlled by setting the myRIO “DIR0” or “DIR1” pin HIGH or LOW and speed/torque is controlled by setting the duty cycle on the myRIO PWM0 and/or PWM1 pins.

cheers,

Jon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now