You can use the module of slide dimmer to control the amount of signal which goes your circuit. If you slide the bar the right side, more signal passes. If you slide the left side, it means less signal. You can
adjust brightness of a light or speed of an motor by the slide dimmer module.