Gyro transmit a signal that looks like'' $HEHDT,129.5,T*20 '', with 129.5 degrees being the heading of the device. I created a program that translate this values out of the usb on a Arduiono Leonardo board. I also put in for serial1, which is output 0 & 1(Tx, Rx). And when I listen to the signal through Putty (open-source terminal emulator), I only read noise and if I listen from the micro-usb port I read the expected values.
The thing that I want is that I want to read the same signal through digital output 0 & 1.
Here is a copy of my program:
int x;
void setup() {
//initialize the serial
Serial.begin(4800);
Serial1.begin(4800);
x=0;
}
}
I don't think there is a problem with the program, but I think maybe my knowledge about RS232 and signal generation is not enough.
Do you have any suggestions?
I see nothing wrong with the code (except missing code tags but these are a crime on this new forum )
Can you post a schema (drawing) how everything is connected?
Yes! Please answer this post I have a similar problem with my Leonardo. I read something about that the Leonardos serial1 port (Digi 0&1, Tx1 & Rx1) only give out UART TTL (5V) serial communication. And the USB gives out a CDC communication. I tried to learn about the difference on what I could find online but I couldnt distinguish why one would work and the other wouldnt. Does anybody knows something about it?
What is your project about?
For me it's really strange that I receive only noise. I tried with all possible baud rates, and the noise is different all the time, also when I change the delay the noise income is following the rule.
Because the "Antenna Control Unit" has Rx+ and Rx- pins I think it is using a differential signal like RS485. Try connecting Rx+ to Ground and connecting the Arduino TX to RX-. If that doesn't help, try connecting Rx- to Ground and Arduino TX to Rx+. If both fail you should get a chip to translate between TTL Serial and whatever signaling the Antenna Control Unit expects (RS485?)
The thing is that I'm transfering the signal to NMEA first and after it goes to ACU. And NMEA is using RS232 type of singnal.
I will try your suggestions and write the results.