Robot Fan
Posted on

The fan model built using LEGO® MINDSTORMS® Robot Inventor.
Disclaimer: LEGO® and MINDSTORMS® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this project.
⚠️ Warning: do not rotate the proportional control handle too fast to avoid damage to LEGO® MINDSTORMS® Medium Motor!
Features
- touch control to turn on and off:
- based on LEGO® MINDSTORMS® Color Sensor;
- proportional control of the rotation speed:
- based on LEGO® MINDSTORMS® Medium Motor;
- touch and proportional controls are independent.
Testing
To run the unit tests, use the following command:
$ make test
Building
For the convenience of uploading the script to the LEGO® MINDSTORMS® intelligent Hub, it is worth combining all parts of the project together.
To do this, use the following command:
$ make build
The resulting file will be available at path builds/robot_fan.py.
Deploying
To deploy the building result, follow the steps below:
- Create a new Python project in the LEGO® MINDSTORMS® Robot Inventor app.
- Remove the whole default code.
- Copy and paste the code from the building result (see file
builds/robot_fan.py).
Repository
Link: https://github.com/thewizardplusplus/robot-fan.
Content: code.
License: MIT.
Photos
General photos






Propeller






Propeller drive






Speed control handle (top)




Speed control handle (bottom)

