Sending command to motor via USB

Hi everyone, glad to be here. I meet a question and need your help, thx in advance.
I have a UNO and a usb host shield. I want to control a motor by them. I could send command by NI Max to control the motor, so I want to do the same thing by arduino itself. I try to send the command "MA+num", but I'm not sure what library should I take. pls give me some advice.

Welcome to the forum

You started a topic in the Uncategorised category of the forum when its description explicitly tells you not to

Your topic has been moved to a relevant category. Please be careful in future when deciding where to start new topics

I don't think that I can help but you might want to give more details, e.g. which motor you're controlling and how it is "connected" to NI Max.

Yes, sure. I connected to NI MAX by usb. The motor which I want to control is a instrument motor, I don't have the specific model.

In your opening post you stated below so you should have one.

Your motor should have documentation. Good documentation would include protocol descriptions. I suggest that you look for that.

I think that your best approach is to control the motor from the PC using NI MAX and use an USB sniffer (I think that wireshark can do it) to analyse the information that is exchanged between the PC and the motor. And next implement that in your Arduino code.

I do not know enough about the host shield and your equipment to be able to assist further.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.