Hi,
I have some circuit connected to some distances sensors and buttons on an Ardiono mega.
now once I connect ILI9486 touch screen , the same circuit starts behaving weirdly - things like limit switch is detected as closed even when it is not.
Also, when I try to upload some LCD test sketch on the screen - it works when only the screen is connected, but when I connect also my circuit in addition to the screen, the screen's test code doesn't work (I see while screen only).
Any idea what might be causing this ? are there any limitations I should be aware with when working with both screen and other electronic circuit on the same board?
Run all the library examples.
This verifies that your display is working ok.
Display is working just fine, touch calibration etc, I even wrote a small codec of mine and verified it on a Arduino uno board looks good.
Only then do you try writing custom programs.
paste / attach your custom program
post schematic of your wiring and external electronics
As UKHeliBob has suggested, "make it easy" and you get the "best" help.
I see, I dont have schematic, 26 digital pins from D22-D53 are being used:
11 input: 3 x buttons , 2 x limit switches, 3 x SR04 echo, 3 x DS18B20 temperature sensors input
15 output: 3 x SR04 trigger, 8 x relay, 4 x for L298N to drive 2 dc motors
Your PDF document does not have any photos of the pcb.
The title says "3.5inch TFT Touch Shield" which implies that it is a "shield" that should "plug into" Arduino header sockets.