Menu

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

More
6 years 2 months ago #29528677 by rajeshwar
The nextgen controller works on 115200 kbps. Change the settings to 8N1 115200.

The syntax should be !G 1 10000 0x0D.

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

More
6 years 2 months ago #29528679 by nmsr1196
Thank you. I will try that after work.
I appreciate the help.

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

More
6 years 2 months ago #29528680 by nmsr1196
ok I made the changes and still no movement from the motors.
I used the following syntax:
SEROUT 0,2,["!G,1,10000,0x0D"]
SEROUT 15,2,["!G,2,10000,0x0D"]

SEROUT 0,2,["!G 1 10000 0x0D"]
SEROUT 15,2,["!G 2 10000 0x0D"]


I have a simple loop program to test the controller:

' {$STAMP BS2p}

do
SEROUT 0,2,["!G,1,10000,0x0D"]
SEROUT 15,2,["!G,1,10000,0x0D"]
PAUSE 2000
SEROUT 0,2,["!G,1,10000 0x0D"]
SEROUT 15,2,["!G,1,10000,0x0D"]
PAUSE 3000
loop


I switched around the serout 0 and serout 15, also switched around the TX and RX.
According to Parallax "2" is 115200 baud rate for the micro chip (BS2p) that I have.
see ( forums.parallax.com/showthread.php/11629...ht=baud+115200+stamp )

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

More
6 years 2 months ago #29528681 by nmsr1196
the 10000 are typo's they are actually 1000

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

More
6 years 2 months ago #29528682 by rajeshwar
The mistake was inadvertent and is regretted.

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

More
6 years 2 months ago #29528684 by nmsr1196
I"m really at a lost here. It's just not working and I've run out of ideas. I would like to think that this have been done before.
I have two of these controllers, one still in the box cause I can't get the first one to work.
Can anyone figure out what I'm doing wrong?

@rajeshwar, no problem. I tried it anyway. I appreciate the help.

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

More
6 years 2 months ago #29528685 by nmsr1196
i found more information ( www.emesystems.com/BS2rs232.htm )and tried those values (1) also.....no success

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

More
6 years 2 months ago #29528688 by roboteq
Our controllers expect true, standard RS232 signals that are +12/-12V and inverted. The basic stamp, arduino and most other simple MCU boards, have non-inverted TTL (0-5V or 0-3.3V) signals.

You must take the serial pins of the basic stamp through a TTL to RS232 converter. You can buy one from sparkfun www.sparkfun.com/i/449

Such converters are found on some of the parallax development board.

You must take the stamp's Tx data, go through the converter, and bring it to the controller's Rx data. Take the stamp'd Rx data and take it to the controller's TxData pin via the converter.

To test, send the sring "?FID" terminated by a carriage return character. That is ASCII 0x0d. The earlier post that has the 0xOD within the "" is wrong. The 0x0d is an invisible character.

The controller will respond with a string containing the firmware revision. The other commands discussed in this thread are correct too. See the manual for details on all commands and syntax.

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

More
6 years 2 months ago #29528689 by nmsr1196
Understood. That's good information. I will attempt that this evening.
I appreciate your help.

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

  • Griffin Baker
  • Griffin Baker's Avatar
6 years 2 months ago #29528690 by Griffin Baker
Quick correction to the link as it came up broken.

www.sparkfun.com/products/449

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

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