Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Insert micro-SD card with downloaded boot images into SD card slot of ARTY-Z.
  2. Set ARTY-Z Boot Mode to SD (JP4)
  3. Connect Motor/Driver Board to ARTY-Z so that both PMoD connectors are aligned.
  4. Attach plastic DEMO load to the motor shaft (optional step).
  5. Connect a micro-USB Cable (not supplied) to ARTY-Z and to a PC with serial terminal program.
  6. Connect Ethernet cable (not supplied) to ARTY-Z and wired network with DHCP server.
  7. Connect power supplies to the ARTY-Z and Driver Board and apply power.
  8. ARTY-Z will log IP address to serial console, point a web browser to this IP Address.
  9. It is also possible to view/change the IP Address from console (login/pass are root/root).
  10. EDDP GUI appears, click "Motor" to start the Motor, it should start spinning. 

Image Added

All jumpers are in default positions: ARTY-Z JP5-REG, JP4-SD and Driver board J13-Single (3 jumpers).


What’s next?

Full Documentation with Design Examples and resource links are available from: Trenz Electronic EDDP Web Hub http://trenz.org/EDDP

1. Check the requirements

  1. An EDDP Kit.
  2. A network cable.
  3. A wired LAN.
  4. A computer that is:
    1. Connected to the LAN.
    2. Capable of running a web browser.
    3. Capable of editing files on a SD card.
    4. Has Vivado SDSoC installed to modify the motor control algorithm.
  5. Micro-USB cable
  6. Serial terminal program; for example Putty available at https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html or TeraTerm available at https://ttssh2.osdn.jp/index.html.en.

 

2. Assemble the demo setup

  1. Connect the Arty Z7 board Pmod connectors JA, JB to the corresponding Pmod connectors J8,J9 on the TEC0053 board.
  2. Insert the SD card to the slot on the underside of Arty Z7.
  3. Connect the power supplies to the Arty Z7 and to the TEC0053.
  4. Check the motor connection.
  5. Check the encoder connection.
  6. Check that the jumpers on the connector J13 on the TEC0053 match the description of the configuration "Single" printed next to the connector.

 

3. Start motor in the demo setup

  1. Power up the Arty Z7 10 and the TEC0053 boards.
  2. Open the serial terminal program.
  3. Note the IP address either from the serial console or from the DHCP server logs. If the automatic IP address acquisition fails, default IP address of 192.168.42.123 will be used after 10 second timeout.
  4. Point a web browser to the IP address of the board. An EDDP web site appears.
  5. Click button "Motor" to start the motor. The button will change color.
  6. To enable live charts, enable checkbox "Live", which is under the charts.

 

4. Customize the run-time parameters of the motor control

  1. Modify the file "focserver.conf" on the SD card to match your needs; most probably "FixedDelay", "RPMKi" and "TorqueKi" are to be changed. See the guide "Embedded Linux Code" for more detailed description.
  2. Power cycle the Arty Z7 board to reload the parameters.

 

5. Modify the motor control algorithm

  1. On the computer, start Vivado SDSoC.
  2. Create a new SDSoC Application Project based on the custom platform "arty_z7_10_foc" provided in the EDDP and using the sample program "foc".
  3. In the application, modify the files "src/foc.h" and "src/foc.cpp" to suite your needs.
  4. Build the SDSoC Application Project. This can take about 15 minutes, depending on the speed of the computer.
  5. Copy the files from the project directory "Debug\sd_card" to the SD card.
  6. Insert the SD card to the Arty Z7.
  7. Power-cycle the Arty Z7.