Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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).

Table of Contents

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.

...

  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


      Expand

      With TE0720

      With TE0820



Preparation for test of CR00140 with Motor 

...

  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)

...

  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 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.)
    draw.io Diagram
    borderfalse
    diagramNameCR00140_MatLab_test
    simpleViewerfalse
    width
    linksauto
    tbstyletop
    diagramDisplayName
    lboxfalse
    diagramWidth899
    revision1
    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 +)
      draw.io Diagram
      borderfalse
      diagramNameCR00140
      simpleViewerfalse
      width400
      linksauto
      tbstyletop
      diagramDisplayName
      lboxfalse
      diagramWidth1221
      revision3