An enclosure for a dimmer for an external light bar or a fan.
Like this one or my remix.
I recommend that you use the hole near the stepper to get the +24V0 directly from the PSU.
The dimmer I used:
TinyTronics (NL)
Aliexpress (INT)
The author marked this model as their own original creation.