Electronic – CD4052 multiplexer with different input voltages

current measurementesp32multiplexerpcb-designvoltage

I've been working on designing a PCB for my indoor garden and i'm facing a problem i dont understand.

In my design i use a multiplexer (cd4052), to choose which sense resistor my current sensing chip (ina219) is reading.
I have 4 different sense resistors,

  • 12V in
  • 5V (right after a linear regulator)
  • 12V out LEDS 1
  • 12V out LEDS 2

After receiving and soldering everything correctly (i guess), i end up measuring 11.3V where it should be 5V.

So i've soldered a 2nd PCB with only some components, the 5V output is correct until i solder the CD4052…

multiplexer

  • MP_0, MP_1 and MP_2 are linked to a resistor on the 12V routes
  • MP_3 is linked to a resistor on the 5V route

I may have missunderstood things about the CD4052 documentation but i'm stuck anyway.

Thanks for reading/helping !

Best Answer

You are applying 12V to pins of a chip that is powered by 5V. It cannot handle that and current will flow via IO pin protection diodes from IO pins to 5V supply, which explains why the 5V is now 11.3V which is 12V minus one diode drop. The inputs and outputs of the chip must be within the range of the power supplies.