Case 20: The Smart Airer
22. Case 20: The Smart Airer#
To make a smart arier.
22.3. Materials Required#
Video link: https://youtu.be/ZjROexNQT1I
22.4. Bricks build-up#
22.5. Installation Mthods of Hardwares#
Install the water level sensor with the bricks.
22.6. Hardware Connection#
Connect two motors to M1 and M2, the servo to S1 and the water level sensor to P1 ports on Wukong breakout board.
22.7. Software Platform#
Click “Advanced” in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
when button A is pressed, the two windows open outward and the airer extends outward. When button B is pressed, the airer retracts inward and the two windows close inward. When button A is pressed, the two windows open outward and the airer extends outward, the water level sensor will detect the current rain value, and when the rain value is greater than 10, the airer will automatically retract and the two windows will automatically close.