Go to Post Meh, that's nothing a freshman with a drill press and a dremel can't fix... - Chad987 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-08-2008, 03:01
knine143 knine143 is offline
Registered User
FRC #1047
 
Join Date: Feb 2008
Location: Irvine
Posts: 15
knine143 is on a distinguished road
Serial communication between RC's

We are making a hexapod robot. There are 6 legs with 3 servos on each leg. This requires 18 pwm outputs. Unfortunately, an RC only has 16. Our solution to this is to send a string of PWM values through a serial cable to another RC and have that slave RC output PWM values.

We have connect the two RCs with a serial cable and we have a null modem between them. We have tested with and without the null modem.

The baud rates are both set to 115200.

In our master RC, we call Write_To_Serial_Port_One() and in our slave RC we call Serial_Port_One_Byte_Count() and Read_Serial_Port_One().

We cannot retrieve the data sent by the master to the slave.

Our program has been simplified to the master continuously sending out '@' on each iteration of Default_Routine() and our slave turns on a light on the OI if it receives that character.

The master is definitely writing the '@' because I can see it show up on the terminal on my computer. Therefore, the problem must be that the slave isn't reading it.

Any ideas?

Thanks in advance.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FAHA: Communication between mentors Bharat Nain General Forum 5 01-01-2008 12:38
Serial Communication to a Cmucam3 Lawrey Programming 0 03-09-2007 21:38
RS232 (Serial) Communication To OI bglass Programming 9 07-07-2007 04:04
Serial Communication in C++ Adam Shapiro Programming 8 21-01-2003 12:49
serial communication using c++ Malakili Programming 31 01-05-2002 15:51


All times are GMT -5. The time now is 00:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi