Hi everyone!
I'm experimenting an issue here. I want to power a Pro-Micro in a project of mine by using a capacitive sensor, instead of a physical button. It's powered by a 8.4 V Li-ion battery.
Arduino Pro-Micro can handle by it's RAW input this voltage, but the sensor not. As the sensor (based on the TPP223) requires from 2-5.5V max to power, I need a Buck converter (with low current draw when idle) to get from 8.4max to 5V.
I'll later power a power led from this battery and by PWM control it.
So I assembled this schematics, and it works fine. I used a Mosfet to only turn on any device, for instance, Arduino itself, the RGB LED (PL9823), and the power-led (not in the schematics yet) when the touch button is touched, so when idle it will drain only the sensor stand-by current, and nothing will be connected.
But the strange thing is, everytime I power it, by touching the sensor, the RGB led turns on and off quickly, even when it's told to be off, by a signal on it's digital pin.
So it turns on at the max. brightness, then get's to the code's instructions, which in my case, is to leave it off. So it turns on and off quickly, and then behaves correctly as the code goes.
Everytime I turn Pro-Micro on by my sensor, this happens. Pro-Micro never turns on with the RGB led off.
I'm I doing something on the hardware side wrong?
Attached is the schematics, if someone could help me out.
Thanks a lot!