Motor module incorporates the motor driver board and different electrical motors. Motor board is designed to be compatible with the Controller module but can be also used for other controllers as it is equipped with standard motor drivers. Motor power supplies are separated from the control signals.
It is possible to drive different types of motors with the module.
Following motors can be connected with Motor board:
Specific model or mark of the motor in a Add-On kit can vary, but every kit has at least one DC motor, 1 RC servo motor and 1 bipolar or unipolar stepper motor.
Following specific models can be found in the kit:
Motor board is connected with Controller module to the port PE-PB-PD. The power supply to the motors comes from the DCIN connector on the board and runs through voltage regulator, which brings the voltage down to +5V. If DC power is provided to the board and the voltage regulator is working properly, the PWR LED in the bottom right corner of the board will light up.
DC motors are connected to the connector group DC. Every pair can handle one motor - all together 4 DC motors. Motors are controlled with widely used H-bridges, L293D dual H-bridge driver is used for the DC motors. Motors can also be replaced by some other actuator which can be controlled digitally and if the current do not exceed 500 mA (piezo generator, relay etc.)
AVR pin | Control signal | AVR pin | Control signal |
---|---|---|---|
PB4 | Motor 1 A | PD6 | Motor 3 A |
PB7 | Motor 1 B | PD7 | Motor 3 B |
PD0 | Motor 2 A | PD4 | Motor 4 A |
PD1 | Motor 2 B | PD5 | Motor 4 B |
AVR pin | Control signal |
---|---|
PE6 | Encoder 1 |
PE7 | Encoder 2 |
Motor board supports two different types of stepper motors. Two unipolar and one bipolar motor can be connected with the board on the same time. Bipolar stepper is controlled with dual H-bridge L293D and unipolar stepper is driven by transistor array ULN2803. The pattern of the stepper signals are generated by the software. It is important to check the sequence of the stepper motor windings. The supply wires of unipolar stepper motor are connected to pins Vcc. If unipolar stepper has only 5 wires, the first pin is left unconnected.
Stepper motor connections:
Pin | Winding wire | Unipolar 1 | Unipolar 2 | Bipolar |
---|---|---|---|---|
1 | 1 | + supply | + supply | |
2 | 2 | + supply | + supply | |
3 | 1A | !PE4 | !PE2 | PB0 |
4 | 2A | !PE5 | !PE3 | PB1 |
5 | 1B | PE4 | PE2 | PB2 |
6 | 2B | PE5 | PE3 | PB3 |
RC servo motors are connected to the connector SERVO on the Motor board. Motors are connected so that the ground wire (usually black or brown) is on the pin GND (close to the edge of the board). Two servo motors can be used at the same time. The control signals are connected directly with microcontroller timer outputs.
AVR pin | Control signal | Connector |
---|---|---|
PB5(OC1A) | PWM1 | Lower |
PB6(OC1B) | PWM2 | Upper |