Page History
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.
...
- Place FPGA Module (TE0820 or TE0720) with cooler on TEB0707
- Place CR00140 on TEB0707
- Jumper and Dip setting
Jumper setting on TEB0707:
J4: TE0820: SD→3.3V; TE0720: SD->1.8V
J5: CA → IOV,
J6: CB → IOV,
J7: CC → IOV- Dips on TEB0707: S1-1..4 all „OFF“
- 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
Compare with picture in section 'Motor test - 3.' below.
- Connect 5V DC adapter to TEB0707 (J1)
- Connect Ethernet of TEB0707 (J2) (direct connection to PC, e.g. USB-ETH Adapter)
- Connect micro USB of TEB0707 (J15) to PC (Not needed for Test, but for debugging UART serial console)
- Connect Motor phases (J8 screw terminal)
- yellow → A
- red → B
- black → C
- Connect 24V on CR00140 (J7 screw terminal). Check polarity!
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.
...
Copy all data of the corresponding Mathworks Motor control SD-image for TE0820 or TE0720 onto a SD-Card.
Place the SD-Card into TEB0707 (J8)
- Open Matlab
- check that following two AddOns are installed in actual version
check package setup for both packages (available via Matlab→ Home→ Add-Ons→ AddManage Add-Ons→ grey gear)
Select Hardware Board
TE0720 TE0820 Xilinx Zynq ZC702 evaluation kit Xilinx 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)
- 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.
- check that following two AddOns are installed in actual version
- Open Mathworks motor control demo project for TE0820 or TE0720
- Ignore warning about path Work does not exist: OK→Continue
- open t4_open hdlWorkflowadvisor
select under 1.1 "Target platform" correct board:
Trenz TE0720 with CR00140 Trenz TE0820 with CR00140 - Set Target and run all
Do same (run all) for 2., 3.1, 3.2 (needs some time, press ok if window opens, will close automatically when finished)
run all tasks excluding 4.4
- 4.3 will need approx 10 minutes on an up to date desktop PC.
- close all Matlab windows and project (and save if asked)
- 4.3 will need approx 10 minutes on an up to date desktop PC.
...
- Power on TBE0707 (5V)
- check current: ~1.0A
check shortly after start Done LED goes of
TE0720 TE0820 green LED D4 red LED D1 - 3 red LEDs on TEB0707 go off after Linux startup. This indicates system ready for test.
- Power on CR00140 motor stage (24V)
- check current ~0.05A
- Press push button S1 on CR00140 (D1 on CR00140 should now blink)
The setup should look like this, (+cooler on Module) - Open saved Matlab project from above.
- t6_download Bitstream (module will automatically restart, no vivado HW manger should be connected, otherwise restart will fail.)
draw.io Diagram border false diagramName CR00140_MatLabMathworks_run_testbit simpleViewer false width links auto tbstyle top diagramDisplayName lbox false diagramWidth 899 revision 1 Current consumption
TE0720 TE0820 ~0.8 A ~1.2 A - 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)
- open t7_openZynqARMmodel
- If Scope window doesen't open automatically, double click on Scope
- Press Run
- Wait until motor demo has finished (1 minute +)
draw.io Diagram border false diagramName CR00140_test_mathworks simpleViewer false width 400600 links auto tbstyle top diagramDisplayName lbox false diagramWidth 12211220 revision 31