Skip to content

Digital Control of Motor Current

stefankohlgrueber edited this page Oct 31, 2020 · 9 revisions

This page contains instructions for modifying a QLA board to enable digital current control on the FPGA, rather than via analog hardware.

DO NOT FOLLOW THESE INSTRUCTIONS UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!

Note that digital current control requires an updated firmware, which is currently available in the feature-digital-control branch of the mechatronics firmware.

Block diagrams

Block diagram of original circuit with analog motor current control

Analog contol circuit

Block diagram of new circuit with digital motor current control

Digital contol circuit

Step-by-step instructions

Breaking the analog feedback loop

Amplifier Circuit Changes

  1. Remove R46
  2. Short R47
  3. Do one of the following:
  • Replace C74 (100 nF) by 191 kOhm (if SMD resistor available)
  • Remove C74 (100 nF) and insert 191 kOhm between pins 1 and 3 of the op amp U38A (if THT resistor available)
  1. Insert 191 kOhm from U38A pin4 (non-inverting terminal) to U39A pin 4 (non-inverting terminal), best done on the backside

Adapting motor feedback filter cut-off frequency to 40kHz:

Filter Changes

  1. Replace R54 by 39 Ohm
  2. Replace R55 by 39 Ohm
Clone this wiki locally