0

I'd like to build a simple circuit that does the following:

  • controls a RGB LED (RPi 4 has 4 PWM outputs, so I could use 3 of them to control the LED)
  • measures the current draw of each PWM output, with an ability to read these measurements using a program on RPi.

After some research, I stumbled upon INA219, which should allow me to measure the current. However, is it true that I'd need 3 of INA219 to be able to measure 3 PWM outputs? Is there any better alternative for my use case?

// Adding circuit diagram (simplified) enter image description here

Instead of measuring 3 PWM outputs, I'd just measure the current of the diode. Is it OK?

mnj
  • 113
  • 1
  • 5

0 Answers0