Introduction
The rotation sensor is a simple potentiometer module with rotation angle of 0~300 degrees. It outputs analog signal and work well with maincontrollers such as micro:bit and Arduino. And the sensor can be used for not only Mind+ and makecode graphical programming but also non-programming projects.
Specification
- Power Supply: 3.0-5.5V
- Current Consumption: (Max)1mA@5V
- Interface Type: PH2.0
- Rotation Angle: 0~300°
- Dimension: 26mm×39mm/1.02×1.54"
- Signal Type: analog signal
Pinout
NO. | Label | Description |
---|---|---|
1 | GND | Power + |
2 | VCC | Power - |
3 | SIGNAL | Analog Signal Line |
Usage Description
There is an arrow marked on the rotation module, adjust the angle of the konb to control the output analog signal.
Working Principle
The rotation sensor is actually an normal potentiometer, which is used to adjust voltage (including DC and signal voltage). For potentiometer structure, there are two fixed ends on its rheostat. Adjust the shaft or slide handle to change the position of the moving contact on rheostat and thus change the resistance between it and either fixed end, and the voltage varies.
Application
1.Variable Speed Fan
Description:
Rotate the konb to different angle to control the speed of the fan. Clockwise rotate to increase the speed; counter-clockwise rotate to decrease it.
Components:
BOS0001 Rotation Sensor | BOS0021 Fan module | BOS0035 Mainboard-3IO |
MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Programming Sample
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
Demo Videos:
Non-programming | Programming |
---|---|
2.Make a Lamp
Description:
Use the rotation sensor to control the brightness of the LED module. Clockwise rotate to brighten the lamp, counter-clockwise to darken it.
Components:
BOS0001 Rotation Sensor | BOS0017 LED module | BOS0035 Mainboard-3IO |
MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Programming Sample
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
Demo Videos:
Non-programming | Programming |
---|---|
3.Adjustable Speed Whisk
Description:
Make a whisk with the whisk head fixed on the motor's shaft, and use the rotation sensor to control the motor's speed.
Components:
BOS0001 Rotation Sensor | BOS0024 Motor Controller Module | FIT0528 N20 Speed Reducing Motor Module |
MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board | Mainboard-3IO |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Tips: Switch the motor controller to B.
Programming Sample
Connection Diagram:
Tips: Switch the motor controller to B.
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
Demo Videos:
Non-programming | Programming |
---|---|
4.RGB LED Strip Control (Programming)
Description:
Use the rotation sensor to control the number of the LED being on.
Components:
BOS0001 Rotation Sensor | M011.00184 RGB LED Strip |
MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
Demo Videos:
Programming |
---|
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum
Turn to the Boson Kit Page