Motor driver

Aus www.wiki.ardumower.de
Version vom 22. Februar 2017, 09:45 Uhr von Alexanderg (Diskussion | Beiträge) (Protector PCB)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Abstract

Ardumower uses two different types of motors (all motors can be purchased via the shop Shopping.png):

  • Two motors (with integrated gearing) for driving (wheel motors) and with integrated encoders (for distance and speed control)
  • One motor (with high rotation speed) for mowing (mower motor)

To control the motors, it requires motor drivers. In addition, the motor driver measures the motor current, and allows us to detect obstacles as motor current increases at obstacles. Ardumower uses two dual MC33926 motor drivers, so two channels for left and right motor and two dual channels (connected in parallel) for the mowing motor.

It is not safe to connect motors directly to the motor driver. Especially, when quickly turning motors from forward to reverse (or vice verse), high voltage spikes appear, and these could damage the motor drivers in the long run. Therefore, we developed driver protector boards that are connected between motor driver and motor.

Ardumower motordriver overview.png

Voltages

As in all modern systems, Ardumower uses 24V motors.

Motor driver assembly (dual MC33926)

Motor driver features: up to 3A with integrated current sensor and thermal shut-down protection

For wiring of motor drivers, protector and motors, please open manual in section Protector PCB.

Protector PCB

Warning.png When quickly tunring motors from forward to backward (or vice versa), high voltage spikes appear. These high voltage spikes could damage the motor driver in the long run. To eliminate high voltage spikes, it is adviced to use a Protector board between motor driver and motor. Two Protector PCBs are required, one for the gear motors, and one for the mowing motor.

Wheel motors wiring

The two left and right gear motors are controlled independently (aka 'differential driving') to:

  • drive the robot forward/backward
  • steer the robot left/right

Wheel motor features:

  • A rotation speed up to 31 rpm allows to move the robot at sufficient speed (at up to meter/sec = 31rpm/60 * PI * 0.25m = 0.4m/sec using 250mm diameter wheels)
  • A high torque (2.45Nm) guarantees that the robot can climb small hills as well (with 2 motors, 0.125 radius wheel, 31rpm = 0.4m/s, acceleration = 0.2 ( 1/2 of nominal speed) see calculator
  • Integrated encoders, so it can measure the rotation speed and the distance
  • 24V (load current ~1A)

The left gear motor is connected as follows to the protector board:

Motor wiring (left motor):

Motor (black)  ==== Protector board Motor_1_OUT(1)
Motor (red)    ==== Protector board Motor_1_OUT(2)

For right motor, use Protector board Motor_2_OUT(1,2) accordingly.

Wheel motors odometry wiring

The Ardumower gear motors have integrated encoders. These encoders help us to compute speed and traveled distance. Here's how you connect the motor odometry wires to the PCB.

Motor odometry wiring (left motor):

Motor (brown)  ---- PCB VCC
Motor (green)  ---- PCB GND
Motor (blue)   ---- PCB OdometryLeft (3)
Motor (purple) ---- PCB OdometryLeft (4)

For right motor, use PCB OdometryRight accordingly.

IMPORTANT: PCB v0.5/1.2 are missing pull-up resistors! You need to add them yourself at the PCB:

PCB OdometryLeft(3) --- 4.7k --- 5v
PCB OdometryLeft(4) --- 4.7k --- 5v

Mower motor wiring

The Ardumower mower motor features:

  • Fast enough to cut the lawn (3150 rpm)
  • Enough torque (140 mNm / 46 W)
  • Quiet mowing (you cannot hear it)
  • 24V, load current ~1.0A (L=2.8mH, R=1.9ohm)

Warning.pngSecurity note: For security reasons, always remove mower blades in your first tests!


Here's how you connect the mowing motor to the protector board:

Motor (black)  ==== Protector board Motor_1_OUT(1)
Motor (red)    ==== Protector board Motor_1_OUT(2)

Motor decrease noise

Here's how you can decrease motor noise:


Motor controller (PID)

The speed of the motors is controlled by a software PID controller. You can monitor the quality of the motor speed control via pfodApp (Plot->Motor control):