You want a 24 V to 5 V regulator added. I’ve prepared a plan to select a suitable buck converter, add its required passives (inductor, caps, feedback), and wire VIN_24V -> +5V -> GND into your Teensy template. Click Start to run it.
Before we proceed, what’s:
Required 5 V current (peak/continuous)?
Actual VIN range (24 V nominal only, or e.g., 18–30 V)?