SERVO Module Board 12 Channels
SERVO is made to implement the bestest, easiest way to drive Servo motors. This M5 module will make quick work of your next Servo project! It is able to drive mutiple Servo motors, up to 12 channals. We also added an DC input for power supplement. Through M-BUS the DC in can automatically power the M5 core at top.
Servo is powered by MEGA328 communicate via IIC(0x53).
- 12x servo ports
- DC power input: 6-12V
- DC Connector Type: XT60 (female)
- 1x M5Stack Servo Module
- 1x Common Male to XT60 Male DC convertor
- Humanoid robot
- Bionic multi-joint robot
- Triaxial Camera Cradle
1. Arduino IDE
The code below is incomplete. If you want the complete code, please click here.
#define SERVO_ADDR 0x53 //the IIC address of SERVO Module /* * control servo(CH channle) by us */ Wire.beginTransmission(SERVO_ADDR); Wire.write(CH|0x00); Wire.write(timeL); Wire.write(timeH); Wire.endTransmission(); /* * control servo(CH channle) by angle */ Wire.beginTransmission(SERVO_ADDR); Wire.write(CH|0x10); Wire.write(angle);//0-180° Wire.endTransmission();
Wanna explore the easiest way of Servo programming?? Check out the Blockly Platform at UIFlow.
TO get the complete code, please click here.