Help needed merging 3 working sketches together

I've made 3 nano based units each with own 0.96" OLED Display. Temperature, PH and EC for measuring the water quality of a marine (saltwater) Aquarium for Seahorses. The sketches mainly came from ArduinoGetStarted! All three work perfectly BUT I am trying to integrate the 3 sketches onto one Nano or Uno and with just one OLED Display.

I've copied and pasted section by section bit by bit, in order from each of the three sketches, deleting any duplicate routines. Eventually the now one sketch compiled and uploaded to a UNO (It also uploaded to a NANO). However, although it is possible the sketch is running, there is nothing on the display. Just to make sure that the hardware is working OK, I REM'd ou a lot of the all in one sketch and can see the EC/SL single sketch working OK:

This is the combined sketch. I hope someone can make some sense of it for me, for which I will be forever grateful.

Steve

Please post the code here, it will get 16 times the attention.

Use the IDE Copy for Forum tool and paste it in your next post.

Or just copy from the IDE and use the <CODE/> button in the message composition window tool bar.

If you could point to or post the three sketches that were the source of the combo sketch, that might be of some help also.

TIA

a7

1 Like

I think your needle you are stitching these together is to small. Posting an annotated schematic along with the code following forum guidelines will probably get you an accurate answer.

Hello TiA, many thanks for your reply.

I've more or less got it all running. The combined sketch works perfectly now but my EC/SL Probe is not compatible. Also just a weird ° sign with a line under it in the Temperature display. Otherwise . . PERFECT!

Steve



This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.