Develop, simulate and test of motor control algorithms with this modular motor kit is supported by MathWorks with hardware support packages for Matlab and Simulink (licence needed).

Content of the kit

The motor kit is availabe in two configurations with either a Zynq Ultrascale+ SoM (TE0820 in Kit CR00140-02-K0), or 7 series Zynq SoM (TE0720-03-1CFA in Kit CR00140-02-K1). The parts of the Motorkit are listed in the following table. The main components are linked to their general resources pages where detailed information like TRMs, schematic, firmware and firmeware description, assembly diagramms can be found.

For further insights see also the TRMs of each specific component:


ComponentsArticle numberDescription
TEB0707TEB0707-02baseboard
CR00140CR00140-02motor driver board
TE0820 (option K0)
or TE0720 (option K1)
TE0820-03-2AE21FA or TE0720-03-1CFASoM
BLY172D-24V-4000-1250SI30430motor with encoder
Included Accessories
micro SD Card265078GB SDHC
heat sink28606
or 26922
(type depends on module) with assebly material (pre assembled)
5V power supply28485for baseboard (barrel plug)
encoder cableTEC0140-01-C

Additional accessories needed, not included:

ComponentsDescription
24V power supplywith cables suitable for screw terminals
Ethernet cableconnection to development PC
micro USB cableconnection to development PC

Preparation of CR00140 kit

Compare with picture below.

  1. Place FPGA Module (TE0820 or TE0720) with cooler on TEB0707
  2. Place CR00140 on TEB0707
  3. Jumper and Dip setting
    1. Jumper setting on TEB0707:
      J4: TE0820: SD→3.3V; TE0720: SD->1.8V
      J5: CA → IOV,
      J6: CB → IOV,
      J7: CC → IOV

    2. Dips on TEB0707: S1-1..4 all „OFF“
    3. CR00140 Jumper configuration for single ended encoder  J3: 1-2, 5-6, 9-10

      With TE0720

      With TE0820

Preparation for test of CR00140 with Motor 

Compare with picture in section 'Motor test - 3.' below.

  1. Connect 5V DC adapter to TEB0707 (J1)
  2. Connect Ethernet of TEB0707 (J2) (direct connection to PC, e.g. USB-ETH Adapter)
  3. Connect micro USB of TEB0707 (J15) to PC (Not needed for Test, but for debugging UART serial console)
  4. Connect Motor phases (J8 screw terminal) 
    1. yellow → A
    2. red → B
    3. black → C
  5. Connect 24V on CR00140 (J7 screw terminal). Check polarity!
  6. Connect motor-encoder via 5-pin encoder cable to J1 of CR00140. On both sides (Motor and CR00140) the brown wire is connected to pin 1.

Preparation of Software

Correct Vivado and MatLAB versions corresponding to the Mathworks motor control design are needed.

  1. Copy all data of the corresponding Mathworks Motor control SD-image for TE0820 or TE0720 onto a SD-Card.

  2. Place the SD-Card into TEB0707 (J8)

  3. Open Matlab
    1. check that following two AddOns are installed in actual version
    2.  check package setup for both packages (available via Matlab→ Home→ Add-Ons→ AddManage Add-Ons→ grey gear)

      1. Select Hardware Board

        TE0720TE0820
        Xilinx Zynq ZC702 evaluation kitXilinx Zynq ultraScale+ MPSoC ZCU102 Evaluation kit




        use option "Connect directly to development computer"
        Set IP Address to 192.168.1.X (SoC has 192.168.1.101)

    3. register vivado version 20XX.X adding in file "~\Documents\MATLAB\startup.m":
      hdlsetuptoolpath('ToolName','Xilinx Vivado','ToolPath','C:\Xilinx\Vivado\20XX.X\bin\vivado.bat')
      if other directory is used for installation it has to be changed accordingly, replace X by used version of Mathworks design.
  4. Open Mathworks motor control demo project for TE0820 or TE0720
    1. Ignore warning about path Work does not exist: OK→Continue
    2. open t4_open hdlWorkflowadvisor

    3. select under 1.1 "Target platform" correct board:

      Trenz TE0720 with CR00140Trenz TE0820 with CR00140

    4. Set Target and run all
    5. Do same (run all) for 2., 3.1, 3.2 (needs some time, press ok if window opens, will close automatically when finished)

    6. run all tasks excluding 4.4

      1. 4.3 will need approx 10 minutes on an up to date desktop PC.
      2. close all Matlab windows and project (and save if asked)

Motor test

  1. Power on TBE0707 (5V)
    1. check current: ~1.0A
    2. check shortly after start Done LED goes of

      TE0720TE0820
      green LED D4red LED D1
    3. 3 red LEDs on TEB0707 go off after Linux startup. This indicates system ready for test.
  2. Power on CR00140 motor stage (24V)
    1. check current ~0.05A
  3. Press push button S1 on CR00140 (D1 on CR00140 should now blink)
    The setup should look like this, (+cooler on Module)
  4. Open saved Matlab project from above.
  5. t6_download Bitstream (module will automatically restart, no vivado HW manger should be connected, otherwise restart will fail.)

    1. Current consumption

      TE0720TE0820
      ~0.8 A~1.2 A
    2. three red LEDs D4, D5, D6 on TEB0707 go off after peatlinux is up completely. (Can also be checked via UART console, e.g. use putty, Baut rate 115200)
  6. open t7_openZynqARMmodel
    1. If Scope window doesen't open automatically, double click on Scope
    2. Press Run
    3. Wait until motor demo has finished (1 minute +)


  • No labels