Ok,
I have a motor controller board that uses serial input with baud = 9600; 7 bit: Even Parity: 1 Stop bit; No Flow Control
I have bluetooth/Serial adapters that will work at various baud rates but only if 8 bit: No Parity: 1 Stop bit; No Flow Control
My system will take info from a Nunchuck and depending on the input will print a string. This string is the input to the relay.
I have constructed a relay where an atmega will read serial data in; send the data over I2C to a slave; the slave will then print out the Serial data to the motor controller board.
The code I used is a simple mod on the master writer and slave reciever. The only difference is that the Master writer has serial read that stores info as a byte. The slave receiver also takes reads info as a byte instead of int.
The problem I see is that I get garbled information out of the slave.
for example if I send a string "!A40\r\n" once every 100 miliseconds I will see things like:
!A40
!A0
!A40
!A40
!A40
!!A40
!A40
!A40
!4!A40
What can I do to prevent things like this because this has a noticeable affect on the response of the motor