Wiki

This version (25 Feb 2022 18:23) was approved by Brandon Bushey.The Previously approved version (06 Apr 2021 20:51) is available.Diff

CN0540 and the DE10-Nano

Requirements

Hardware:

    • 5V/2A Wall Power supply with barrel jack (comes with DE10-Nano)
    • mini USB to USB Type A (comes with DE10-Nano)
  1. Ethernet cable
  2. IEPE Compatible Sensor

Software:

Setup

SD-Card

To prepare the SD-card for the DE10-Nano board:

  1. Validate, Format, and Flash the SD Card


Once microSD card has been imaged, safely remove the hardware from the SD card writer, and insert the card directly into the microSD card slot on the DE10-Nano.



Download and Install IIO-Oscilloscope

Down the latest IIO-Oscilloscope release from Github, and install it on your PC. (You may need to right-click the installer, and run as “Elevated” in order to get it to install. )

DE10-Nano Hardware Configuration

The DE10-Nano comes ready to use out of the box, but it is important to double check that the FPGA Configuration Mode Switch (S10) is configured properly. See the image below for the proper configuration, and if more information is needed, check out the getting started guide.

Cable & Connectors

Connect the power, cables, and sensor according to the diagram below.

  1. Ethernet cable
  2. Sensor Input
  3. Miniusb cable
  4. Power cable

Boot Sequencing

Once the microSD card and cables have been connected to the DE10-Nano and CN0540 its now time to boot the system.

  1. Connect the other end of the Ethernet cable into a router or other network connection. This will be the easiest way to stream and save the data.

    If you don't have a network available and want to stream data directly from the Ethernet port of the DE10-Nano to the Ethernet port of your PC that is still possible, but requires some extra configuration. Please see the Network Configuration page for complete details.

  2. Using the Arduino pins, plug in the EVAL-CN0540-ARDZ on top of the DE10-Nano. Note: You may leave the plexiglass as is, the CN0540 board will plug in without issue.
  3. Plug in your sensor into the SMA connector on the EVAL-CN0540-ARDZ.
    1. (You may also connect your sensor into the 2-Pin header found at P1 if your sensor isn't an SMA output)
  4. Plug in the UART cable into your PC's USB port.
    1. A driver for the board should automatically be detected and installed on your PC. If this does not happen you may have to manually install that driver in order to continue. Here is a link to the UART Serial Driver
  5. Plug the power supply into the wall outlet and power up the setup

Finding your CN0540

Before you can start gathering data, you first must locate the CN0540 on your network.

  1. Setup a UART serial communication between your PC and the DE10-Nano board using the micro USB cable to USB type A
  2. Using your device manager, locate the COM port assigned to the DE10-Nano board
  3. Open Putty, Tera Term, or other serial terminal program and open a terminal between the COM port the DE10-Nano board by setting the Baud rate to 115200, and connect.
  4. The serial terminal connection will default to auto login and will place you in the root directory of the SD card.
  5. From here its a good idea to check to see if your devices can be found using the command iio_info into the terminal, and hitting “Enter”
    • This should provide a list of devices along with their channels and attributes
  6. Type ifconfig into the terminal, hit “Enter”
  7. That should echo back some information where you can pull out the inet address of eth0.
  8. Open up the IIO-Oscilloscope application on your PC
  9. Set the radio button for “Remote Devices” and type the inet address you just found, hit the “Refresh” button, and then click “Ok”.

Using the System with IIO Oscilloscope

Now its time to start communicating with the CN0540 so you can start streaming data. When you first open IIO-Oscilloscope you'll see two windows.

  1. CN0540 Plugin / DMM / DEBUG Window
  2. IIO Capture Window

CN0540 IIO-Oscilloscope Plugin

The CN0540 IIO Plugin automatically configures the CN0540, so it is ready to use as soon as you run the application. Calibration of the sensor is also automatically performed so that a user can start using the capture window to collect and analyze data. No other configuration is required for the application.

If you want to re-calibrate the system, shut the system down, or modify individual registers of the devices on the CN0540 that can also be done either using the CN0540 Plugin or using the DEBUG panel to write/read specific registers. This is optional and typically application specific.

Below is a picture of what the CN0540 IIO Plugin looks like.

User interface

Section User Control Description Value
Power Control SW_FF Checks the current status of the ADG5421's FF Pin Low(normal)
High(over voltage)
Shutdown Shutdowns power from the AD7768-1 Disabled(Power On)
Enabled(Power down)
ADC Driver Settings FDA Status ADA4945 Operational Status Checked(Enable)
Un-Checked(Disabled)
FDA Mode ADA4945 Power Mode Checked(Full Power)
Un-Checked(Low Power)
Sensor Calibrations Calibration Result The Calibration is set for a 10V calibration 10.0V
Input Voltage(mV) Calibrated AD7768-1 Input voltage offset ~ 0.0V
Shift Voltage(mV) Calibrated LTC2606 Level Shifting Voltage ~ 0.0V
Sensor Voltage(mV) Calibrated Sensor Input voltage ~ 10.0V
Voltage Monitor Vin+ (mV) Input voltage coming from the sensor
Vgpoi2 (mV) Not Used N/A
Vgpoi3 (mV) Not Used N/A
Vcom (mV) ADA4945 Common Mode input voltage ~2.5 V
Vfda+ (mV) AD7768-1 Ain+ input voltage
Vfda- (mV) AD7768-1 Ain- input voltage

IIO Capture Window

For CbM applications, most customers are typically interested in the frequency domain plots. To obtain a FFT plot, do the following:

  1. Use the drop down menu labeled “Plot Type” and select “Frequency Domain”.
  2. Set the number of samples to 16384
  3. Set the averaging to 3

You should see a nice plot like this when connected to the CN0532 sensor.

End of Document

resources/eval/user-guides/circuits-from-the-lab/cn0540/de10-nano.txt · Last modified: 25 Feb 2022 18:23 by Brandon Bushey