Hi everyone, I asked diodes about this circuit but now I have another question.
I am using stepper motor and some sensors. Stepper motor needs 24v and the other devices needs 5V and 3.3V.
I will use this PCB with adapter. I won't plug USB cable, I will use USB cable just once and It will be for uploading code. Then I will use adapter for power all circuit.
If i need to change something in the code (if i need to speed up the stepper or change something else), I will plug cable and try to change. While USB cable plugged, I guess I need to unplug the adapter for protection.
I used 2 diode for protection. For example if USB cable plugged, VCC won't power VOUT or when 24V adepter connected the circuit and USB cable not connected, V_USB won't powered.
- What happen if USB and 24V adepter connected at the same time? Will something blow up ?
- How can my system work when both are connected? For example 24V will power only stepper and USB will supply 3.3V regulator. When I see code is working correct, I will unplugged USB and 24V will power all system (Motors, 5V, 3.3 Regulator etc.) (I don't know much about electronic components so is there another solution for my circuit?)