I'm trying to power a stepper motor with the 5V rail of an ATX PSU and control it using arduino. To keep the PSU running, I have shorted the PS_ON
pin to ground. Also, I have connected PSU ground to arduino ground. The arduino is powered over USB.
The problem I'm having is that the PSU turns off automatically when I upload a new sketch to arduino. I can reproduce the problem with these steps:
- Turn on power (PSU is running fine)
- Set one motor pin (e.g. digital pin 9) to HIGH
- Upload a new sketch to arduino (doesn't matter which one, e.g. the Blink example)
-> PSU turns itself off.
Why does this this happen and what can I do to prevent it? The PSU seems to perform well otherwise.
simulate this circuit – Schematic created using CircuitLab
Edit: I just found these alternative steps to reproduce:
- Power on
- Set one motor pin to HIGH
- Disconnect 5V rail of PSU from motor driver
-> PSU turns off
Further tests:
- Disconnect motor from driver
- Power on
- Set one motor pin to HIGH
- Upload new sketch
-> PSU stays on!
- Connect motor to driver
- Power on
- Set one motor pin to HIGH
- Disconnect motor from driver
-> PSU turns off
It seems to me that the PSU doesn't like losing load on 5V after it has seen load once.