Introduction
The servo controller module is a kind of position(angle) servo driver that suits the control systems that requires to have and maintain different angles. It can receive digital signal or analog signal, which corresponds to swing mode and turn mode, and then generate PPM signal for controlling servo to make it swing back and forth or rotate to a set angle and then keep still. The module provides two preset controlling modes that can be switched by the toggle switch, which allows users to explore various advanced functions in non-programming mode. It works well with maincontrollers such as micro:bit and Arduino, and can be used for Mind+ and MakeCode graphical programming and non-programming projects.
Specification
- Operating Voltage: 3.3V-5V
- Operating Current: TBD
- Servo Type: 180° servo
- Interface Mode: PH2.0-3P
- Dimension: 26×39mm/1.02×1.54"
Pinout
Label | Name | Description |
---|---|---|
1 | SIGNAL | Digital Signal Line |
2 | VCC | Module Power Positive |
3 | GND | Module Power Negative |
4 | Signal | Signal Output |
5 | VCC | Servo Power Positive |
6 | GND | Servo Power Negative |
7 | Potentiometer | Servo Swing Frequency Control |
8 | Toggle Switch | Servo Mode Selection |
Usage Description
As shown in the figure above, position 1 represents the input interface for signal controlling and power supply of the module.
Position 2 represents the potentiometer for adjusting servo swing frequency.
Position 3 represents the interface for connecting servo.
Position 4 represents the toggle switch for selecting mode. The module provides two preset controlling modes, swing and turn.
- Swing: swing between the preset angle and the initial angle
- Turn: rotate to a preset angle and stop
The two modes can be switched via the toggle switch.
Principle
The servo controller module mainly consists of housing, circuit board, core-less motor, gear and position detector. It works in this way: the receiver transmits signal to the servo, which drives the core-less motor to rotate through IC, then the reducer gear will pass the force to the shaft, at this time the position detector will determine if it has reached the commanded position according to the feedback signal. The position detector is actually a variable resistor. The resistance value will change as the servo rotates, so the rotation angle can be obtained by detecting the resistance value.
Application
1. Control Servo
Description:
Control the servo with a self-locking switch. Press the switch once, and the servo rotates to the specified angle; press again, and the servo rotates back to the initial angle.
Components:
BOS0003 Self Locking Switch | SER0045 9g Metal Gear Micro Servo | BOS0035 Mainboard-3IO |
MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board | BOS0025 Servo Controller Module |
Tip: micro:bit and its expansion board will be used in programming projects.
Non-programming Project
Connection Diagram:
Programming Project
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
Video Demo
Non-programming | Programming |
---|---|
2. Auto Watering System
Description:
Monitor the moisture of the plant pot using a soil moisture sensor. When the soil humidity value is small, the servo will rotate to a certain angle to lower the pipe so as to water the plant.
Components:
BOS0038 Soil Moisture Sensor | BOS0025 Servo Controller Module | SER0045 9g Metal Gear Micro Servo |
BOS0032 Threshold Module | MBT0039 micro:bit | BOS0035 Mainboard-3IO |
BOS0040 micro:bit BOSON Expansion Board |
Tip: micro:bit and its expansion board will be used in programming projects.
Non-programming Project
Connection Diagram:
Programming Project
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
Video Demo
Non-programming | Programming |
---|---|
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum
Turn to the Boson Kit Page