I posted about this before but I didn't have much info on the issue. That is until I found a similar thread. This thread is about an Arduino and NRF24L01 being phantom powered and I think that is happening with my device because there is 5V across D12 and GND, and I have no communication with my NRF24L01.
I will post schematics if they are asked for but I don;t have them made yet. The system involves a brushless ESC and RF nano.
My question is: Can I fix phantom powering by placing a resistor and/or diode on pin 12 (the ESC signal pin)?
Two notes. 1, the ESC is actually connected to a BLDC motor right now. 2, I currently have the circuit configured with a 10K resistor in between ESC signal and D12. I have not tested it.
OK I made some modifications and now there is a new issue. The signal pin was moved to D2 with a diode allowing the electricity to flow from D2 to the signal pin and not the other way around. Now the Arduino is not powering on at all.
EDIT - I'm also using a new ESC because the old one was dead apparently.
EDIT - Now this one is reading a dead short between the main power line and the motor windings.
I'm making popcorn. Please keep up the running commentary, which is unlike anything that happens to all of us every day we throw ourselves at this stupid hobby.
I would warn against using a BEC to power the Arduino, ESCs all too often explode in flames and you wouldn't want that to take out the microcontroller too.
Use separate, clean, power for the microcontroller if you can.
Try more like 2k2 or 4k7 resistors on the signal lines to guard against phantom powering but be more noise-rejecting.
A diode on its own blocks the signal unless you have a pull-up for it to work against.
Anyway the normal generic protection circuit for CMOS inputs/outputs is a pair of Schottky diodes to the rails plus a small value series resistor.
This diverts any phantom power current from entering the pin too.
Thank you for the advice. I will ask a more cohesive question.
@MarkT I only partially understand why that schematic does what it does. Why is there a resistor there? What is the phantom powering current doing upon trying to enter the pin?
The resistor limits the current so the Schottky diodes aren't burnt out and the voltage rail isn't pulled too high.
The on-chip protection diodes are tiny, designed to protect against mild static discharge only (from careless handling), and if they pass high currents for too long they will fry. And if they pass very large currents the chip may go into CMOS latchup and cook the entire chip.