Its all good to me. I wouldn't stop posting but It would be better for you to show how you hardware is setup. And if your using a 24volt DC supply
Google "Kenington Universal Power supply hacks" cheap and usable. 5amps and there made real well. O they can put out both 5volts and 24volts at same time.
But i would use it only for testing. It would be far better to get a supply that's made for the job at hand if you can't make one.