Two Unos sharing the job

I have three Arduinos for three jobs. The jobs are more or less the same, four sensors are monitored. The data is sent to local display, cosm and SD card.

I have not been able to keep the sketch within 32k, it's about 44k.

Two of the jobs will be in remote location and use a Mega 2560. The third is at home and does not really need to use cosm. In that event, it will fit in my EtherTen. I would nonetheless like to use cosm, particularly as the EtherTen has ethernet built-in.

It has occurred to me to use two Unos, one for data aquisition and the second for handling. They will be linked by 2.4GHz wireless.

The first will have have libraries for RTC, Dallas DS18B20, and the 2.4GHz link.

The receiver will have libraries for cosm, the SD card, LCD and again the 2.4 GHz link.

This means that the Uno with the clock and measuring code does not have to accommodate the cosm libraries, but both now have to have the libraries for the wireless link. There are quite a few lines for the thermometers and the clock. The cosm libraries are what put things over the edge and obliged me to get Mega 2560s.

So how does that sound?

How have you used so much code to monitor just 4 sensors on each of the Arduinos.

Mark

It doesn't take that much code to monitor four sensors, it's the related activity that causes the problem and, as I said, it was the cosm libraries that pushed me over the edge.

Put attach your code we may see any number of ways of reducing it size.

Mark

42400 and still work in progress

cosm 5110 flow.txt (11.7 KB)