DC current limiter circuit

good day

I want to construct a current limiting circuit, I want to have a 12V power supply, arduno uno, a bulb as a project load, a keypad for inputting a maximum current value or a current setpoint, a lcd for display and mosfet for pwm control. I am not sure how to do this. Can you please assist me with a starting point, similar projects examples. or circuit diagram examples.

thank you in advance