24V to 5V DC conversion for Raspberry Pi
You can try to use those cheap LM2596 based DC/DC converter modules, from ebay. They worked fine for me.

Be sure to set the converter output voltage BEFORE powering on.