I want to create a fan where a pointer stops at a number from 1 to 7. There will be a switch to turn of the fan. The fan will gradually reduce its rpm and finally stops at any random point.
But if I press the particular number through a Bluetooth device, the fan stops at the input number through bluetooth.
Please help me in achieving this.