0
\$\begingroup\$

I have connected an Arduino Pro-Mini 3.3V 8MHz to an ESP8266 via I2C.

The Arduino is in charge of collecting data from a thermistor (analog temperature) (T2) and a SI7021 (digital temperature) (T1).

The ESP8266 is in charge of sending the data received from the Arduino to an endpoint.

Here is my repo: https://github.com/ClemRz/Solar-Water-Heater-Monitor. In the res folder you will find a picture of the circuit.

The issue I am having is that as long as I leave the FTDI RS232 programmer connected to either the Arduino or the ESP I'm having a smooth response from the thermistor but as soon as I disconnect it, the response get some noise. What is happening?

Here is a graph where we can see 3 phases:

  1. Programmer disconnected: some noise can be seen
  2. Programmer connected: smooth noiseless curve
  3. Programmer disconnected again: noisy

enter image description here

If I remove Rx and Tx and I leave GND connected to the FTDI I also observe that the reading is smooth and noiseless.

EDIT: I switched the wall adapter with a better quality one and it fixed the noise issue.

\$\endgroup\$
  • \$\begingroup\$ Some breadboards are not connected all the way through. As in, for example in your picture, the left half of the ground of the breadboard is possibly connected to the right half through the ESP. Can you post an actual photo of the circuit and where you are plugging the FTDI? \$\endgroup\$ – Wesley Lee Oct 6 '17 at 3:52
  • \$\begingroup\$ Thanks Wesley Lee, I'm not using a breadboard, I'm using this kind of board: i.ebayimg.com/images/g/mO0AAOSw32lY1FX7/s-l500.jpg Here is a photo of the actual circuit with FTDI's GND connected: !pic \$\endgroup\$ – ClemRz Oct 9 '17 at 20:36
  • 1
    \$\begingroup\$ If you solved your problem, post an answer and accept it. Then the system will know you have a solution and not keep promoting the question to the front page for more answers. No need to change the title. \$\endgroup\$ – The Photon Oct 11 '17 at 17:15
0
\$\begingroup\$

It is a common mode noise coupling to the signal from Rx,TX. Use CM choke on thermistor or shielded twisted pair with shield grounded at input only.

This is the result of an unbalanced input impedance and common mode stray coupling.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Hi Tony, I'm not sure I follow, do you mean that Rx and Tx from the FTDI RS232 is inducing? In that case why would it cancel the noise when the FTDI is connected? Thanks. \$\endgroup\$ – ClemRz Oct 9 '17 at 20:39
  • \$\begingroup\$ Shielding,twisted pairs and Common mode chokes help reduce CM noise while earth grounding it drops the common mode voltage at that point. ( but opens possibility for ground faults) There are many ways to solve it depending on noise source and wire layout. \$\endgroup\$ – Tony Stewart Sunnyskyguy EE75 Oct 9 '17 at 20:47
-1
\$\begingroup\$

Switched the wall adapter with a better quality one and it will fix the noise issue.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.