I need help. I have zero experience with this. I am trying to hook up my Stratologger CF with my Arduino Mega. The[ manual](http://www.perfectflite.com/Downloads/StratoLoggerCF manual.pdf) on page 40 gives me information, but I have no idea on how to do anything (wiring, coding, setup). Could you help me out by showing me how to wire this thing and how to code it? I have set the mode so that it can communicate with the Arduino. Thanks!
dkim360:
I need help. I have zero experience with this. I am trying to hook up my Stratologger CF with my Arduino Mega. The[ manual](http://www.perfectflite.com/Downloads/StratoLoggerCF manual.pdf) on page 40 gives me information, but I have no idea on how to do anything (wiring, coding, setup). Could you help me out by showing me how to wire this thing and how to code it? I have set the mode so that it can communicate with the Arduino. Thanks!
No, you do not need help. You need to decide to educate yourself and then begin that education.
Why do you think a mode needs to be set in order to communicate with and Arduino? I don't see that anywhere in the document you linked to. A program in the Arduino needs those parameters in order to see what the device is sending and that is done in your Arduino program, not the rocket device.
Paul
You may need the • PerfectFlite DataCap program for Windows (StratoLoggers & Pnut only). Can be downloaded from Downloads
Paul_KD7HB:
No, you do not need help. You need to decide to educate yourself and then begin that education.
Why do you think a mode needs to be set in order to communicate with and Arduino? I don't see that anywhere in the document you linked to. A program in the Arduino needs those parameters in order to see what the device is sending and that is done in your Arduino program, not the rocket device.
Paul
Isn't the mode setting information on page 27? And I don't understand what you mean by "educating yourself." That is literally what I'm doing by asking for help.
I came across this code right here. It was used by someone else for this project, but I think my wiring is wrong., because it isn't working for me.
int foo; // Useless declaration to molify the IDE
#define isdigit(X) (((X) >= '0') && ((X) <= '9'))
void setup()
{
Serial.begin(9600);
}
void loop()
{
int AGL=read_int();
// Do math
}
int read_int()
{
static byte c;
static int i;
i = 0;
while (1)
{
while (!Serial.available())
{;}
c = Serial.read();
if (c == '\r')
{
return i;
}
if (isdigit(c))
{
i = i * 10 + c - '0';
}
else
{
Serial.print("\r\nERROR: \"");
Serial.print(c);
Serial.println("\" is not a digit\r\n");
return -1;
}
}
}
dkim360:
Isn't the mode setting information on page 27? And I don't understand what you mean by "educating yourself." That is literally what I'm doing by asking for help.
My suggestion is based on your very first post: "but I have no idea on how to do anything (wiring, coding, setup)".
The best way to educate yourself it to begin with a kit designed to give you that education, step by step.
Paul
The mode setting is done on your PC, not a Arduino!!!
but I think my wiring is wrong
How would we know? We cannot see your wiring.
Paul_KD7HB:
My suggestion is based on your very first post: "but I have no idea on how to do anything (wiring, coding, setup)".
The best way to educate yourself it to begin with a kit designed to give you that education, step by step.
PaulThe mode setting is done on your PC, not a Arduino!!!
I suppose I could have phrased that a bit better. I do know how to wire and code a bit, but I don't know where to start. I have already set the mode with my PC on the Datalogger software.
dkim360:
I suppose I could have phrased that a bit better. I do know how to wire and code a bit, but I don't know where to start. I have already set the mode with my PC on the Datalogger software.
Good! Then begin with this: Serial Input Basics - updated - Introductory Tutorials - Arduino Forum...
Paul
groundFungus:
How would we know? We cannot see your wiring.
GND to ground
TX to d. pin 1
3.3V to 3.3 power
dkim360:
...with my Arduino Mega.
A Mega has three spare hardware serial ports. Use them, instead of pin 0,1
There is an MultiSerial example for using those ports in the IDE.
Note that a Mega is using 5volt logic. Your other device might not like that.
Leo..
Wawa:
A Mega has three spare hardware serial ports. Use them, instead of pin 0,1
There is an MultiSerial example for using those ports in the IDE.
Note that a Mega is using 5volt logic. Your other device might not like that.
Leo..
Ah got it. Thanks! I may have to get a logic level converter then.
A 5V Arduino usually accepts the output voltage levels of a 3.3V device, so if the Arduino is only reading the sensor TX pin, no level shifter is required.
I think my wiring is wrong., because it isn't working for me.
TX to d. pin 1
Device TX needs to be connected to the Arduino RX.
Leo has pointed you at the additional hardware serial connections available on the Mega, but there needs to be the cross connection TX>RX and RX>TX. You will need the level shifter or voltage divider on the Mega TX to device RX.
cattledog:
Device TX needs to be connected to the Arduino RX.Leo has pointed you at the additional hardware serial connections available on the Mega, but there needs to be the cross connection TX>RX and RX>TX. You will need the level shifter or voltage divider on the Mega TX to device RX.
So I'm going to need a level shifter?
A level shifter or resistive voltage divider is recommended. Perhaps you have additional information about the 5v tolerance of the RX pin, but without something well documented, I would only give the pin 3.3v as the HIGH.
cattledog:
A level shifter or resistive voltage divider is recommended. Perhaps you have additional information about the 5v tolerance of the RX pin, but without something well documented, I would only give the pin 3.3v as the HIGH.
Ah I see. I looked into it and it really isn't documented. Thanks!
I just looked at the referenced manual and the page 40 information indicates that the RX pin on the logger is not connected. As jremington said, you should not need any level shifting on the logger TX to the Mega RX.
cattledog:
I just looked at the referenced manual and the page 40 information indicates that the RX pin on the logger is not connected. As jremington said, you should not need any level shifting on the logger TX to the Mega RX.
Ah okay thanks. I did try connecting the TX pin of the altimeter to the RX pin of the Arduino. It said uploading, but never did. Any ideas?
I did try connecting the TX pin of the altimeter to the RX pin of the Arduino. It said uploading, but never did.
What pin is connected to the TXpin of the altimeter?
Please post the code you are using to read the sensor.
Did you enable Telemetry as discussed on page 27 of the manual.