Getting started
Recommended hardware
- Diametrically magnetized magnet
- BLDC motor; check here for all tested motors
- Programming adapter
- Serial adapter
- CAN adapter
- Termistor
- CAN wires and power wires
Hardware setup
Mounting PCB to Motor
To mount your BLDC to PCB you can use example motor bracket and modify it for your motor.
Some hardware considerations:
- Distance between motor encoder and magnet should be around 1 mm.
- Hole spacing of Spectral micro is 31 mm
Electrical connections
REVERSING POLARITIY ON DC+- WILL DESTROY YOUR BOARD.
- Solder motor phases to U,W,V
- Connect motor power to one of the Power connectors terminals
- If you are using UART comms. Connect Uart adapter to UART connector
- If you are using termistor, connect it to Termistor connecor
- If you are using CAN comms. Connect CAN adapter to one of CAN connectors
- When uploading code connect JTAG adapter to JTAG connector
Cable orientation
ALL cables used for dasiy chain (CAN and power) need to to follow orientation as shown on the image below! Failing to follow that will destroy your motor controller! All correct cables can be bought here: https://source-robotics.com/pages/connectors-and-cables
Connecting multiple motors (daisy chaining)
Multiple Spectral BLDC drivers and nodes can be connected to single CAN bus using daisy-chaining. First an last nodes on can bus should have termination resistors. On Spectral micro you can flip the CAN switch to "ON" positon to enable termination resistor.
Power connectors can handle max 4 A DC. Usually if you are using 10ohm gimbal motor you can daisy chain 3-4 of them.
Thermistor connection
Solder the termistor like shown in the image.
Thermistor is disabled by default. To enable it use command #Term 1
Thermistor needs to be placed inside the motor coils. You can usually do that thru the one of the mounting holes on the bottom of the motor. You can apply thermal cement on the thermistor in the motor coils to secure it in place and improve termal conductivity.
Status
Normal operation | Calibration | Error mode |
---|---|---|
3 short flashed and a pause |
Flashing every 0.5 seconds |
Solid LED, no flashing. |
If you have spectral firmware uploaded on your spectral BLDC LEDs will be in one of 3 states.
- Normal operation is when motor controller has no active errors and is calibrated
- Error mode is active if any error on the motor driver is active. List of possible errors:
- Temperature error
- Drv error
- Encoder error
- Vbus error
- Velocity error
- Current error
- Not calibrated
- Received ESTOP
- Watchdog error
- Calibration will flash when in calibration routine
What next?
- Flash the latest firmware to your driver (Note that drivers arrive with preflashed firmware)
- You will need to calibrate your motor
- Tune your PID loops
- Follow one of the guides or examples to start using Spectral driver