This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:hardware:homelab:motor:v5 [2010/11/08 09:49] – created raivo.sell | en:hardware:homelab:motor:v5 [2020/07/20 12:00] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| (Version 5) | (Version 5) | ||
| - | Motors | + | Motor module incorporates the motor driver board and different electrical motors. |
| Motor power supplies are separated from the control signals. | Motor power supplies are separated from the control signals. | ||
| - | {{: | + | {{: |
| - | It is possible to drive different types of motors with the module | + | It is possible to drive different types of motors with the module. |
| Following motors can be connected with Motors board: | Following motors can be connected with Motors board: | ||
| - | * 4 x DC motors or 3 x DC motors and 2 x encoder. | + | * 4 x DC motors and 2 x encoder. |
| * 2 x unipolar stepper motors. | * 2 x unipolar stepper motors. | ||
| * 1 x bipolar stepper motor. | * 1 x bipolar stepper motor. | ||
| * 2 x RC servo motor. | * 2 x RC servo motor. | ||
| - | * UART connector. | ||
| - | * Driver supply selection: jumper JP1 (from controller board or external). | ||
| - | * Supply indicator LED. | ||
| - | Motors modules | + | Motor module |
| ^ Pin ^ Supply connection ^ Voltage ^ Current ^ | ^ Pin ^ Supply connection ^ Voltage ^ Current ^ | ||
| | 1 | DC motors | | 1 | DC motors | ||
| | 2 | Bipolar stepper motor | up to 36 V | up to 600 mA | | | 2 | Bipolar stepper motor | up to 36 V | up to 600 mA | | ||
| - | | 3 | Servo motors | + | | 3 | Servo motors |
| - | | 4 | Unipolar stepper motors | + | | 4 | Unipolar stepper motors |
| | 5 | Drivers logic supply (selectable with JP1) | 5 V | | 5 | Drivers logic supply (selectable with JP1) | 5 V | ||
| | 6 | Ground(GND) | | 6 | Ground(GND) | ||
| Line 38: | Line 34: | ||
| * **DC motor ** | * **DC motor ** | ||
| * Micromotors L149.6.10 (with gear) {{: | * Micromotors L149.6.10 (with gear) {{: | ||
| - | * Micromotors | + | * Micromotors |
| - | * Micromotors LE149.6.10 | + | |
| * **RC servo motor** | * **RC servo motor** | ||
| - | * Robbe FS 100 {{: | ||
| * E Sky EK2-0501 {{: | * E Sky EK2-0501 {{: | ||
| - | * Futaba XT-S | ||
| - | * Hitec HS422 {{: | ||
| * **Unipolar stepper motor** | * **Unipolar stepper motor** | ||
| * Ming Jong ST35 {{: | * Ming Jong ST35 {{: | ||
| * **Bipolar stepper motor** | * **Bipolar stepper motor** | ||
| - | * Moons 42PM {{: | ||
| * Ming Jong ST28 {{: | * Ming Jong ST28 {{: | ||
| - | * **Piezo sound generator ** (optional) | ||
| [{{ : | [{{ : | ||
| - | ~~PB~~ | + | < |
| ===== Electrical connections ===== | ===== Electrical connections ===== | ||
| - | Motors | + | Motor module board is connected with Controller module to the port PE-PB-PD. The power supplies of the motors are connected with separate PWR connector, where every type of motor can have different voltage. Drivers on the board can be supplied externally or directly from Controller module. This is determined by the jumper JP1. If the jumper connects pin 1 and 2 the logic supply is taken from the Controller module. If logic supply is correctly provided the on-board LED //+5V// have to light up. |
| - | [{{ : | + | [{{ : |
| ==== DC motors ==== | ==== DC motors ==== | ||
| - | DC motors are connected to the connector group DC1. Every pair can handle one motor - all together 4 DC motors. In parallel of connector 3 two encoders ENC1 and ENC2 are connected. In case of using the encoders the DC motor connector 3 cannot be connected with DC motor at the same time (these ports have to be configured as inputs by the software). 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.) | + | 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 ^ | ^ AVR pin ^ Control signal ^ AVR pin ^ Control signal ^ | ||
| - | | PB4 | Motor 1 1A | PD6 | Motor 3 1A | | + | | PB4 | Motor 1 A | PD6 | Motor 3 A | |
| - | | PB7 | Motor 1 2A | PD7 | Motor 3 2A | | + | | PB7 | Motor 1 B | PD7 | Motor 3 B | |
| - | | PD0 | Motor 2 1A | PD4 | Motor 4 1A | | + | | PD0 | Motor 2 A | PD4 | Motor 4 A | |
| - | | PD1 | Motor 2 2A | PD5 | Motor 4 2A | | + | | PD1 | Motor 2 B | PD5 | Motor 4 B | |
| + | |||
| + | ==== Encoder ==== | ||
| + | |||
| + | ^ AVR pin ^ Control signal ^ | ||
| + | | PE6 | Encoder 1 | | ||
| + | | PE7 | Encoder 2 | | ||
| ==== Stepper motors ==== | ==== Stepper motors ==== | ||
| - | Motors | + | Motor board supports two different types of stepper motors. Two unipolar and one bipolar motor can be connected with the board. Bipolar stepper is controlled with dual H-bridge L293D and unipolar stepper is driven by transistor array ULN2803. The patterns 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: | Stepper motor connections: | ||
| Line 82: | Line 79: | ||
| | 1 | 1 | + supply | + supply | | | | 1 | 1 | + supply | + supply | | | ||
| | 2 | 2 | + supply | + supply | | | | 2 | 2 | + supply | + supply | | | ||
| - | | 3 | 1a | PE0 | + | | 3 | 1A | PE0 |
| - | | 4 | 2a | PE1 | + | | 4 | 2A | PE1 |
| - | | 5 | 1b | + | | 5 | 1B |
| - | | 6 | 2b | + | | 6 | 2B |
| + | NB! Unipolar stepper 1 has parallel connection with encoders and UART. When using the encoders or UART1 unipolar stepper motor cannot be used on the same time. | ||
| [{{: | [{{: | ||
| - | [{{: | + | [{{ : |
| ==== Servo motor ==== | ==== Servo motor ==== | ||
| - | RC servo motors are connected to the connector | + | RC servo motors are connected to the connector |
| - | + | ||
| - | ^ AVR pin ^ Control signal ^ | + | |
| - | | PB5(OC1A) | PWM1 | | + | |
| - | | PB6(OC1B) | PWM2 | | + | |
| - | + | ||
| - | ===== Connectors of the motors ===== | + | |
| - | + | ||
| - | [{{: | + | |
| - | + | ||
| - | + | ||
| - | ===== Connecting the module ===== | + | |
| - | + | ||
| - | While connecting the module it is advised to follow the order as described below. Before connecting any cable make sure that the power is removed from Controller board. | + | |
| - | - Connect the Motors module with Controller module by using the ribbon cable. | + | ^ AVR pin ^ Control signal ^ Connector ^ |
| - | | + | | PB5(OC1A) | PWM1 | Lower | |
| - | - Connect the power distributor of the motors supply. | + | | PB6(OC1B) | PWM2 | Upper | |
| - | | + | |
| - | - Connect the power supply with Controller module. | + | |
| - | [{{: | + | [{{: |