2 softserial connections

Everything was working great until I tried to add gps.

The CO2 meter is now reading -203 and the gps prints to the usb serial until the data is valid.

-203 for a K30 series sensor means no communication.

If I comment out the gps everything is great.

Any thoughts?

Box_ready_v1_3.ino (32.4 KB)

Oh I also forgot it doesn't read the SD card anymore either

It looks like a big program, and you haven't told us which Arduino you are using.

My first thought is that you are out of memory. Have you checked?

Do you have a simpler test case that exhibits the problem?

I'm using a mega 2560 and have plenty of memory and sram.

Sorry I don't have a problem until I combine my gps with my main code.

I'm using a mega 2560 and have plenty of memory and sram.

With 4 hardware serial ports, why do you need ANY software serial ports?

I have tried hard serial for the weather board I'm using and it doesn't seem to work. I haven't tried the co2 yet. I moved up from an uno when I ran out of space, so my programming was originally written with softSerial

this is the code I am using for hard serial. The board has a switch from soft to hard serial. I have tried both positions

website for board

GPS_off_weather_hard_Serial.ino (2.32 KB)

i figured out the problem between the weather and gps. get that data separately.