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

6 years 9 months ago #29528691 by nmsr1196
Thank you Mr. Baker for the valid link.
there is a RS232 shifter on my project board. But if this works I will definitely need to purchase a couple of those.
I'm going to tried it on my board.

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

6 years 9 months ago #29528692 by nmsr1196
Roboteq RS-232
pin 2
pin 3 (input)
pin 5

Parallax Board RS-232
pin 2 (to pin 3 Roboteq RS-232)
pin 3
pin 5 (to pin 5 Roboteq RS-232_

MicroController on same Parallax Board
pin 0 to tx on connecting MAX232


I sent those commands (previously discussed) with the syntax to pin 0 with the serout command
I switch around pin tx and rx
I switch pin 2 and pin 3 on RS-232

Still no action from motors.

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

6 years 9 months ago #29528706 by nmsr1196
Hey guys just to give you an update.
I used the propeller micro controller and I got it to work with the following syntax:
pst.Str(String("!G 1 500", 13))

I'm going to try and used that similar syntax with the basic stamp B2Sp (when I get a chance) to see if that works and I'll post it for documentation purposes in case someone else runs into the same issue.

Thanks for the help

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

4 years 6 months ago #29531843 by issahmd
Hi dude ,

It's been 2 years since you lastely posted a comment and we are all still hoping for a documentation .Any success??

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

4 years 6 months ago #29531845 by nmsr1196
Hey Dude,
No one replied to be interested in the solution. That's why its been two years.

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

4 years 6 months ago #29531846 by issahmd
I want to communicate with the motor controller via RS232 with an arduino or a raspberry pi (a RPI would be nice solution since i can make a hmi to send the odrer rather than typing the command).
Any thoughts about that ?

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

4 years 6 months ago #29531847 by nmsr1196
i can probably help you with the arduino. I have not used the Raspberry Pi with the controller.
Give me a little time. I'm currently under the weather.

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

4 years 6 months ago #29531848 by nmsr1196
Ok, this is what worked for me. I used a Mega at the time and it has more than one serial. I happen to use Serial1.
If you test it put some delays between the commands to test direction and so on.
Let me know if that helps.


Serial1.println("!G 1 80"); Serial1.println("!G 2 80"); //forward
Serial1.println("!G 1 -80");Serial1.println("!G 2 -80"); //backward
Serial1.println("!G 1 0"); Serial1.println("!G 2 80"); //forward right
Serial1.println("!G 1 80"); Serial1.println("!G 2 0"); //forward left
Serial1.println("!G 1 0"); Serial1.println("!G 2 -80"); //backward right
Serial1.println("!G 1 -80"); Serial1.println("!G 2 0"); //backward left
Serial1.println("!G 1 0");  Serial1.println("!G 2 0"); //stop
The following user(s) said Thank You: issahmd

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

4 years 6 months ago #29531849 by issahmd
Did you use this product to solve the ttl to serial problem ?

www.sparkfun.com/products/449

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

4 years 6 months ago #29531850 by nmsr1196
I'm currently not home so I can't remember the exact one.
But, Yes something similar. There are a few different ones that will work.

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

Moderators: tonysantoni
Time to create page: 0.135 seconds