Implementing the speed control module in vacuum cleaner device using Test Driven Development(TDD) technique.
We have a vacuum cleaner device which consists of 3 main modules:
- Switches Driver: It's responsible for interacting with push buttons to increase/decrease speed and on/off the device then it passed the data(pressed switch and the duration) to Speed Controller module.
- Speed Controller: This is the module we are going to implement. It's responsible for controlleng the speed of the motor according to the passed data from Switches Driver module. It controlls the motor angle according to the passed data and passes it to Motor Driver module.
- Motor Driver: It's responsible for controlling the speed of the motor according to motor angle parameter which is cotrolled by Speed Control module.
All needed requirements are found here