Menu

Topic-icon Arduino RS232 communication with MBL1660

More
3 years 8 months ago #29531375 by hbtri7
Hi,

I'm trying to control a brushless motor and get some parameters like current and rpm using an arduino and MBL1660. I'm having issues setting up communication between MBL1660 and an Arduino Mega using RS232.

I was able to connect the MBL1660 controller to a windows terminal and send the command "!G 1 200" (with a carriage return to indicated end of command) and the motor turns to 20% of max RPM. I even get back the "+" command to indicate command received. When I connect the Arduino (using max232 chip) to the computer using a windows terminal I am able to send and successfully receive the same command from the arduino on the terminal window "!G 1 200" with carriage return. However, when I connect the arduino to the MBL1660 and send the same command the MBL1660 does not respond. All 3 are set up with the same setting:

• 115200 bits/s • 8-bit data • 1 Start bit • 1 Stop bit • No Parity • no flow control.

Is there something I am missing I don't see why I can send commands successfully to computer but not MBL1660 from Arduino. I'm out of ideas short of proving they (computer and arduino) are both sending the same command using logic analyzer/oscilloscope since I don't have one available to me.

I appreciate the help!

Please Log in or Create an account to join the conversation.

More
3 years 8 months ago #29531376 by TechSupport
The Arduino serial is not the same. It is a TTL and not a true serial. Our serial is inverted +/- 10V

We've not been able to figure out how to make this work; same with the Uno.

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #29531827 by issahmd
hi ,

Is there any thing new regarding this problem ? Please help !!!

Please Log in or Create an account to join the conversation.

More
3 years 3 weeks ago #29532103 by hbtri7
Dear Roboteq Team,
We had a question about interfacing our MBL1600 through an Arduino. We had implemented a work around that functioned ok, but I jus received an email from you stating hat you now supported interface to Arduino through a TTL serial interface. Can you described what we would need to have in order to do this? We have he TTL interface for he Arduino, do we need new firmware for our MBL1600?
Thanks
Neil

Please Log in or Create an account to join the conversation.

More
3 years 3 weeks ago #29532104 by blake
Hello Neil,

Yes our newer controllers, specifically v3.0 or later for the MBL1660, can convert to TTL with just a couple of resistors. If you have a v3.0 or later controller then you can find the instructions and wiring diagram to do this HERE . You will also need a specific firmware, please contact me at This email address is being protected from spambots. You need JavaScript enabled to view it. and I can send it to you. Older versions of this controller will still require an RS232 to TTL adapter.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.096 seconds
Go to top