From 24V to 5V DC voltage regulator

35-7= 28V
P = I * V= 1.5*28= 42W !
You better have ahuge heatsink and a fan...