Interfacing ldc2230 with Micro controller (stamp, picaxe and arduino)

9 years 9 months ago #29528616 by nmsr1196
I looked through the manual but I did not see any information on connecting an micro controller to the roboteq controller (ldc2230).
Is there any information on this subject?
thanx (in advance)

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

9 years 9 months ago #29528617 by Griffin Baker

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

9 years 9 months ago #29528620 by nmsr1196
Would that be the Rx and Tx only?

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

9 years 9 months ago - 9 years 9 months ago #29528621 by Griffin Baker
All of the pin outs of the DB15 connector is in there. This includes the RS232, analog inputs, RC inputs, digital inputs and outputs, etc.

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

9 years 9 months ago #29528669 by nmsr1196
I connected my stamp MCU to the ldc2230 controller following the information in the documentation.
Now when I send my serial out command.
What is the syntax I use to make the motors go forward, back and so on as well as speed?

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

9 years 9 months ago #29528671 by Griffin Baker
P. 168 and 169

Syntax: !G [nn] mm
Where: nn = motor channel
mm = command value

If you are trying to do this via a closed loop speed, then you need to set up your max speed value of your motor in the speed and acceleration parameter.

Refer to the user manual for additional information.

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

9 years 9 months ago #29528672 by nmsr1196
Thanks Mr. Baker.
I'll try that after work.

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

9 years 9 months ago #29528673 by nmsr1196
Part of my problem is maybe I'm looking at the wrong PDF. I'm looking through the product guide which doesn't have that many pages.
Do you have a link to the doc you're referring to?

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

9 years 9 months ago #29528674 by Griffin Baker

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

9 years 9 months ago #29528676 by nmsr1196
First off, I know the controller is working because I connected an RC receiver to it and that works
Then I hooked up the controller to my Basic Stamp. I was not successful

DB15 STAMP
TX
> Pin 0
RX
> Pin 15
GND ----> GND

According to the controller my max speed is 1000

So I tried various syntax(s) with the Stamp and the motors did not run. I put the commands in a DO-loop. Here are the syntax(s) I used:

SEROUT 0, n9600,["!G,1,1000"]
SEROUT 0, n9600,["!G [1] 1000"]
SEROUT 0, n9600,["!G 1 1000"]
SEROUT 0, n9600,["!G,[1],1000"]


I even replaced the !G with !AC.
I switched the pins TX and RX
I added SEROUT statements using channel "2" also

So obviously I'm doing something wrong, and I don't know what.

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

Moderators: tonysantoni
Time to create page: 0.091 seconds