Still in trouble with the second part of my first project. Before starting to unwire everything and check individually each component, I would like to try to understand if I can solve the issue in a quicker and smarter way.
I am developing a sensor box, with many sensor components, linked to an ESP32 Dev Board (AZDelivery ESP32 NodeMCU DevBoard WiFi CP2102) that sends data to an arduino mega 2560 r3.
The problem is related to the ESP32 box, and its many sensors (attached you can find a photo of the mess and I have tried to replicate the actual scheme).
In particular my problems are:
- screen blinks slightly every 5 seconds more or less (working great before connecting al the sensors)(not a big issue but I think it is a symptom of something not working properly)
- one sensor seems to fail to react, even if it shows apparently initial correct values (I have written a post related to the sensor itself, not yet received a feedback (https://forum.arduino.cc/index.php?topic=684757.0)
- three sensors seem to work properly (SCD30, Dust sensor and DS18B20)
- the other sensors don’t show evident “error” (like I don’t know, return simbols, return error message and so on), but readings are not correct.
So I have tried to play with them,(calibration, checking the code and so on), but nothing seems to work
I have spoken with an arduino expert vet, and in his opinion the problem is due to so many wires too close each others (you can see the mess in the attached photo) that probably create Electromagnetic Interference that disturbs some sensors readings.
Honestly, given my background (anyway nonexistent for what concern electronics) I don’t know how to fix the issue.
At first I think I should reduce wire lenghts as much as I can, but I fell it will not be sufficient.
What is your opinion? Any suggestions to solve the issue in a smart and relatively quick way?
Any idea is welcomed!
Thank in advance for your support!