Looks like you’re making good progress!
One thought if you still want to have variable output is to use a potentiometer (perhaps one with an off position) to vary your resistance. Cheap and simple.