0
\$\begingroup\$

I've just gotten into electronics and PCB design. I am working on an automated hydroponic system. It basically consists of a mainboard and a sensor board connected via a 10-wire flat ribbon cable.

The mainboard's heart is an ESP32-WROVER-IE that reads all the sensors and controls some LEDs, whilst communicating via BLE.

The sensor board hosts several sensors for water level, humidity, temperature and most crucially an analog circuit to measure the conductivity of the water-nutrient-solution.

This circuit is the one I am having trouble with.

It is designed using a [CD4060] to generate an AC-signal, a 4 channel op-amp ([LMV324],) a standardized probe (just 2 wires with a fixed distance,) and some peripherals. I am sorry there are no links here, I am limited to 8 of those.

I know it is easy to achieve an AC signal just using your microcontroller and the 4 channel OP-amp is probably overkill as well, but I have tried this circuit successfully with a DFRobots breakout board and didn't want to reinvent the wheel. Now I have implemented the design with what I thought were only minor changes to the power supplies but those changes seem to have broken the design.

The original circuit uses 3V from an LDO and a voltage inverter to generate -3V:

LDO

Inverter

Here is the actual DFRobot schematic.

Since I also need 2.85V for one of my sensors I decided to swap the rather exotic LDO for a dual output one: TOREX XC6421AB26ER-G.

Since the TI-Inverter seems to be impossible to get your hands on before 2023 (Jesus Christ), I've settled for an alternative: the LTC1044A.

If everything worked as it should, there should be a voltage of 0-2.3V on the output pin going to my ESP32s ADC, correlating to the resistance of the probe inside the water. Grabbing my multimeter and replacing the probe with actual resistors, the DFRobotboard spits out the following:

Resistance value Voltage
1Mohm 0V
470Kohm 0V
220Kohm 0V
100Kohm 0V
47Kohm 0.01V
22Kohm 0.04V
4.7Kohm 0.23V
2.2Kohm 0.49V
1Kohm 1.1V
470ohm 2.3V

My own iteration of the board is slightly off:

Resistance value Voltage
1Mohm 2.41V
470Kohm 2.38V
220Kohm 2.39
100Kohm 2.40V
47Kohm 2.38V
22Kohm 2.38V
4.7Kohm 2.39V
2.2Kohm 2.38V
1Kohm 2.42V
470ohm 2.42V

I have realised some things measuring the board:

  1. The output voltage of the Torex drops from +3V to +2.6V when I put on the load (only the mentioned circuit relies on +3V.)

  2. The LTC1044A only outputs about -1V instead of -3V or at least -2.6V.

  3. The LMV324 gets pretty hot right away.

  4. Both the Torex and the LTC1044A provide the right voltages when disconnected from their load.

I have had people check the circuit and the PCB, and although the layout of the peripherals was amateurish at best, I am sure they are at least wired up correct. I have already cleaned that up for the next iteration (also made a 4-Layer PCB instead of 2,) but I am afraid this is not going to solve the issue.

Any ideas why this could be happening? Is the LTC1044A maybe just not powerful enough?

Attached you can find my schematic and PCB-layout:

schematic

PCB-Layout

It was done using Easy EDA, like a true amateur. I can also share the JSON files or export to various actual EDA-tools if need be.

Edit: Doublechecked the footprint and wiring, measured every resistor on the board: only R14 seems to be off. 680K instead of 1M. Also here is a picture of the actual PCB: (Had to delete the picture due to link limitations) enter image description here

Unfortunately swapping the resistor, as expected, doesnt make a difference.

Edit: I Have desoldered the LMV324 and replaced it with the one from the DFRobot board. Following measurements were taken:

Resistance value Voltage
1Mohm 0V
470Kohm 0V
220Kohm 0V
100Kohm 0V
47Kohm 0.01V
22Kohm 0.04V
4.7Kohm 0.23V
2.2Kohm 0.50V
1Kohm 1.1.V
470ohm 2.3V

This is very promising, but unfortunately it does only work with resistors, not with the probe. Even very salty water won't trigger it. Shorting the probe with the spoon inside the measurement container immediately puts out 2.3V. Shorting it with my multimeter in order to measure the current yields 5.6mA.

Any clue what I ran into here?

\$\endgroup\$
5
  • \$\begingroup\$ This is certainly a short circuit on the op-amp outputs. Check the op-amp outputs are wired correctly. Check resistor values (not 10 ohms instead of 10k ohms). Make sure EC1 is not shorted to anything since it comes directly from the op-amp output without a resistor. You may be able to take current measurements to figure out where the current is going. \$\endgroup\$
    – user253751
    Sep 29, 2021 at 9:50
  • \$\begingroup\$ Thanks for your quick awnser, i will check everything and keep you up to date! \$\endgroup\$
    – Felix
    Sep 29, 2021 at 11:05
  • \$\begingroup\$ I have doulbe checked everything on the layout side and am confident there is nothing wrong. Also i measured every resistor and only found that the 1Mohm one is more like a 700K one. I Will replace it with a THT 1Mohm one to see if that does anything. Also i have done some measurements on the Outputs of the OP-amp but i dont know if they are of any use. @user253751 I am going to add some more info on what i did. \$\endgroup\$
    – Felix
    Sep 29, 2021 at 13:08
  • \$\begingroup\$ Please update the DFRobot schematic link. As it stands, this doesn't work. \$\endgroup\$ Sep 29, 2021 at 19:11
  • \$\begingroup\$ @WhatRoughBeast Done. I am sorry but as a greenhorn I am limited to 8 links per question, must have messed smth. up shuffling links around. \$\endgroup\$
    – Felix
    Sep 29, 2021 at 19:34

1 Answer 1

4
\$\begingroup\$

I'm not sure at all this is your problem, but added as an answer because it's a serious issue- you're well above the 5.5V Absolute Maximum supply voltage of the LMV324. You're applying 6V nominal.

You can swap it out for a more appropriate quad op-amp.

\$\endgroup\$
3
  • 1
    \$\begingroup\$ oh, could be. If that is the problem it's simpler than trying to find a possibly non-existent short circuit. \$\endgroup\$
    – user253751
    Sep 29, 2021 at 13:52
  • 1
    \$\begingroup\$ I have desoldered the LMV324 from the board and replaced it with the one from the DFRobot breakout, presuemably It appears to be working fine, but will have to proceed with some measurements. \$\endgroup\$
    – Felix
    Sep 29, 2021 at 18:18
  • \$\begingroup\$ Everything is working fine now. Case closed. Thank you very much for the input! \$\endgroup\$
    – Felix
    Sep 30, 2021 at 10:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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