nmrs.thrust
Member
- Joined
- Nov 16, 2020
- Messages
- 6
- Reaction score
- 1
Hey everyone. I'm trying to have my Stratologger CF communicate with my Arduino Mega 2560 using RX and TX. The manual gives little information on the subject. Has anyone attempted this before? Because I cannot get it to work. Here's my wiring and code...
So I am connecting GND to Arduino ground, TX to Arduino RX1 and 3.3V to Arduino 3.3V power. Here's the code I'm using:
void setup() {
// initialize both serial ports:
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() //read from port 1, echo Serial monitor:
{
if (Serial1.available()) {
char inByte = Serial1.read();
Serial.print(inByte);
}
}
But half the time, the serial port doesn't read anything or it just spits out question marks and random numbers that are definitely wrong. If you have experience with this, please help me out. All the serial research I've been doing isn't helping and I'm just stuck. Thank you!
So I am connecting GND to Arduino ground, TX to Arduino RX1 and 3.3V to Arduino 3.3V power. Here's the code I'm using:
void setup() {
// initialize both serial ports:
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() //read from port 1, echo Serial monitor:
{
if (Serial1.available()) {
char inByte = Serial1.read();
Serial.print(inByte);
}
}
But half the time, the serial port doesn't read anything or it just spits out question marks and random numbers that are definitely wrong. If you have experience with this, please help me out. All the serial research I've been doing isn't helping and I'm just stuck. Thank you!