電子發(fā)燒友App

硬聲App

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示
創(chuàng)作
電子發(fā)燒友網(wǎng)>電子資料下載>類型>參考設(shè)計>采用基于PC的軟件GUI的AD8302 Arduino屏蔽板用戶指南

采用基于PC的軟件GUI的AD8302 Arduino屏蔽板用戶指南

2021-04-09 | pdf | 1.57MB | 次下載 | 2積分

資料介紹

This version (14 Jan 2021 05:29) was approved by Robin Getz.The Previously approved version (03 Jan 2021 21:55) is available.Diff

EVAL-AD8302-ARDZ

EVAL-AD8302-ARDZ

The EVAL-AD8302-ARDZ shield illustrates the functionality of the AD8302, a gain and phase detector which operates for frequencies up to 2.7 GHz. The voltage outputs of the AD8302 are routed to the ANALOG IN connector of the Arduino base board. This allows the RF power detector’s output voltage to be easily digitized and processed by the Arduino base board’s integrated six-channel ADC.

The power supply for the board comes from the Arduino base board through the POWER connector (5V). So there is no need to connect an external power supply.

The EVAL-AD8302-ARDZ is designed to work as a shield for EVAL-ADICUP3029 and DC2026C(also called Linduino One). For EVAL-ADICUP3029, PC software GUI and device development drivers are available.

Shield Specifications

  • Input RF Frequency Range: DC to 2.7GHz
  • Input RF Power Range: -60dBm to 0dBm
  • Maximum RF Input Power (Abs Max Rating): 10dBm
  • Supply:
    1. Voltage: 5V
    2. Operates at around 35mA
  • Quiescent Current: 19mA to 25mA
  • Input signal characteristic:
  • Recommended Calibration:
  • Output Voltage Range:
    1. VMAG: ~30mV to ~1.8V
    2. VPHASE: ~30mV to ~1.8V
    3. VREF: ~1.72V to ~1.88V
  • Has power down interface

Functional Block Diagram

Functional Block Diagram

Typical Hardware Setup for Measurement

Operational Setup

Software GUI for EVAL-ADICUP3029

Software Installation

  1. Set up EVAL-ADICUP3029 serial driver as in 1. Install mBed windows serial driver...
  2. Download the software on the product page or click here.
    If previously downloaded evaluation software cannot detect board, download the evaluation software again to get the software fix version.


  3. Extract the Software GUI.zip to your computer.
  4. Connect the EVAL-ADICUP3029 board using micro USB cable
  5. Set the S2 switch to USB.
    EVAL-ADICUP3029pic_selectUSB
  6. In the extracted files look for power_detector-firmware.hex then copy the hex file to Computer?DAPLINK drive
    |DAPLINK_screencap
    After loading the hex file to the DAPLINK drive the window explorer must automatically close or else you need to load the hex file to the drive again.


  7. After the windows explorer automatically closes, reset the EVAL-ADICUP3029 board by pressing the S1 (reset) button on the board.
  8. Go to extracted files and look for power_detector.exe file and double click to run the software. The Connection Window will open.

APP_window

Software Operation

Connection Window

  1. Mount EVAL-AD8302-ARDZ to the EVAL-ADICUP3029 and connect EVAL-ADICUP3029 to computer as in Typical Hardware Setup for Measurement
  2. Click the refresh button on Port Name to Identify the port where an EVAL-ADICUP3029 is installed
    APP_window
    If there is more than one EVAL-ADICUP3029 installed, select the port where EVAL-ADICUP3029 and EVAL-AD8302-ARDZ connected
  3. Set Baudrate to 115200
  4. Select Auto-detect on Shield type.
  5. Click Connect. The Measurement Window should Open.
Console Log must indicate AD8302 shield detected with ADiCUP. If previously downloaded evaluation software cannot connect, go back to Software Installation step 2 and download the evaluation software again to get the software fix version.

Measurement Window

APP_window
The shield measures Gain and Phase Difference based on a 2-point calibrated linear response characterized for a specific frequency. By using default calibration coefficients, the 2-point linear response corresponds to the datasheet specifications of AD8302. By using the user calibration coefficients, the frequency dependent 2-point linear response corresponds to the calibration made by the user.

If calibration is skipped at some frequencies, the default calibration coefficients will be used (user calibration coefficients and default calibration coefficients are INITIALLY the same).


Related topic: Calibration of EVAL-AD8302-ARDZ

To skip Calibration and use Default Calibration Coefficients:

  • Check the box to use default calibration coefficients
  • Uncheck to use user calibration coefficients

To make single measurement:

  1. Enter the frequency of the input RF signal
  2. Uncheck Continuous Measurement
  3. Click Measure Button
Not entering the correct frequency may result to less accurate measurements.


To continuously make measurements:

  1. Enter the frequency of the input RF signal
  2. Check Continuous Measurement
  3. Click Measure Button
  4. Click Stop to stop measuring at the last measurement
Not entering the correct frequency may result to less accurate measurements.


To switch windows:

Click Connection or Calibration to switch to respective window.

Calibration Window

  • Gain Calibration

APP_window

  1. Select the frequency
  2. Input to J1 an RF signal of-20dBm
  3. Input to J2 an RF signal of-40dBm
  4. Click Measure
  5. Input to J1 an RF signal of-40dBm
  6. Input to J2 an RF signal of-20dBm
  7. Click Measure
  8. Click Calibrate
  • Phase Calibration

APP_window

  1. Select frequency
  2. Set the signal power of inputs to -30dBm
  3. Set phase between inputs to be 45o
  4. Click measure
  5. Set phase between inputs to be 135o
  6. Click measure
  7. Click Calibrate
User must be able to synchronize the phase of input signals perhaps, by using external devices/equipment, to do this calibration

If desired frequency of calibration or measurement is not on the list, calibrate on the immediate higher frequency available and on the immediate lower frequency available. If desired frequency is higher/lower than the available frequency selection, calibrate only on the highest/lowest frequency selection

Calibration Methodology

Calibration can be implemented using 2, 3, or 4-point calibration techniques which can be used to approximate nearly linear response characteristics such as in AD8302. A typical characteristic of the AD8302 for magnitude difference of 1.9GHz input signals is shown in Figure 1. This is TPC4 from the AD8302 datasheet.

fig50

Figure 1. AD8302 Characteristic Response to Magnitude Difference for 1.9GHz Signals

Two-point calibration is the simplest calibration technique. This models the magnitude transfer function of the AD8302 and ADC as a single straight line

MAG = (CODE/SLOPE)+INTERCEPT

Where

MAG is the RF Power Magnitude being measured

CODE is the ADC code

SLOPE is the slope of the AD8302transfer function's linear model (unit is LSBs/dB)

INTERCEPT is the (extrapolated) input RF power level which would yield and ADC code of 0 (this is a theoretical value with a unit of dBm)

SLOPE and INTERCEPT are calculated and stored during the calibration process by applying two known RF power levels, MAG1 and MAG2 (these RF power levels should be within the linear input range of the AD8302) and measuring the corresponding ADC codes, CODE1 and CODE2. The equations for calculating SLOPE and INTERCEPT are as follows:

SLOPE = (CODE1–CODE2)/(MAG1?MAG2)


INTERCEPT = MAG1-(CODE1/SLOPE)

If there is some non-linearity in the transfer function of the RF detector, the number of calibration points can be increased to improve measurement accuracy. To implement three-point calibration, three known power levels are applied MAG1, MAG2 and MAG3 (MAG1 should be greater than MAG2 which should be greater than MAG3) and the corresponding ADC codes are noted (CODE1, CODE2, CODE3)

This results in two SLOPE values and two INTERCEPT values which are calculated using the equations

SLOPE1 = (CODE1–CODE2)/(MAG1?MAG2)


SLOPE2 = (CODE2–CODE3)/(MAG2?MAG3)


INTERCEPT1 = MAG1-(CODE1/SLOPE1)


INTERCEPT2 = MAG2-(CODE2/SLOPE2)

After calibration when measuring RF input power, the power is calculated using the appropriate equation

MAG = (CODE/SLOPE1)+INTERCEPT1   (if CODE > CODE2)

or

MAG = (CODE/SLOPE2)+INTERCEPT2   (if CODE < CODE2)

To decide which equation and calibration coefficients to use, the CODE from the ADC should be compared to CODE2 (CODE2 is the demarcation point between the two calibration regions). This will indicate which region of the AD8302's transfer function the RF power magnitude is located. For example, if the ADC CODE is greater than CODE2, this will indicate that the input power is greater than MAG2. So SLOPE1 and INTERCEPT1 should be used to calculate the input power. Because of the need to identify the region in which the measured RF input power is located, the CODE2 value should also be stored after calibration along with the SLOPE1, SLOPE2, INTERCEPT1 AND INTERCEPT2.

This technique can be extended to four or more calibration points. This may improve measurement accuracy at the cost of more complex calibration.

Development on EVAL-ADICUP3029

Development packages are available for C and Python. Other development environments may be used but this development guided is focused on software development on CrossCore Embedded Studio (for C) and on Pycharm(for Python).

C Development Guide

Installations

  1. Download and install mBed windows serial driver
Assumes a fresh installation of all required software

Setting Up CrossCore Embedded Studio

  1. Install the following packs by following the How to install or upgrade Packs for CCES guide:
    • ARM.CMSIS.5.4.0
    • AnalogDevices.ADuCM302x_DFP.3.1.2
  2. Switch back to C/C++ window c-dev-window and close CCES 2.8.1
  3. Run the “AD8302 Sample C Code and Header Files.exe” and select “C:/Users/YourUsername/cces/2.8.1” as the destination folder. The ad8302 folder should appear in C:/Users/YourUsername/cces/2.8.1 .
    rfdet-c-unzip
    rfdet-c-folder-ad8302
  4. Launch CCES 2.8.1 and select workspace C:/Users/YourUsername/cces/2.8.1. If the ad8302 has been installed elsewhere, choose that location as workspace. Switch to C/C++ window if it's not the current window.
    rfdet-c-workspace
  5. To open the unzipped folder in the workspace, click File → Open Projects from File System. A new window will pop up and ask you to select the project or folder that you want to open. Select the proper directory then click Finish.
    rfdet-c-import-ad8302

On the left side of the window, the structure of the loaded sample code should match the structure in the image shown below.
rfdet-c-proj-ad8302

Development on CrossCore Embedded Studio

  1. Connect your EVAL-ADICUP3029 and power up the RF power detector shield then click Build rfdet-c-hammer.
    rfdet-c-console-ad8302
  2. After it finishes building, click Debug and click Application with GDB and OpenOCD (Emulator). Copy the following Debug configurations on the new window that will appear then click the Debug button.
  3. On the Debug window, click the Resume to run and display the results on the Console window.

Python Development Guide

Installations

Assumes a fresh installation of all required software

  1. Download python 3.7.0 version. Choose the right version depending on operating system. For windows, choose Windows x86-64 executable installer. (Do not run installer yet)
  2. Run installer as Administrator. During installation, check Add Python 3.7 to PATH before clicking Install Now
    rfdet-py-path
  3. Install pyserial. For windows, enter pip3.7 install pyserial on command prompt.
  4. Download and install PyCharm community version
  5. Download and install mBed windows serial driver

Setting Up PyCharm

  1. Install Power Detector Python Code Example.exe, the destination folder used is the “Scripts” directory where the python3.7 is located. For windows, the location path is similar to C:/Users/MyUsername/AppData/Local/Programs/Python/Python37/Scripts
    rfdet-py-scripts
  2. Launch PyCharm and set up PyCharm interpreter by clicking file?settings?Project?Project Interpreter choose python 3.7 then click “Ok”.

Python Development

  1. Connect the EVAL-ADICUP3029 board using micro USB cable.
  2. In the EVAL-ADICUP3029, set the S2 switch to USB.
  3. Unzip power detector development code-release.zip from evaluation software
  4. Find and copy power_detector-firmware.hex to the DAPLINK directory. Wait for the window to exit automatically. Else, repeat the Development on PyCharm guide.
  5. Press S1 (reset) button on the EVAL-ADICUP3029 and mount the EVAL-AD8302-ARDZ to the EVAL-ADICUP3029
  6. On pyCharm, go to File?Open and browse for the /PycharmProjects/example code directory.
  7. Click Project Tab located at left side of IDE and go to ad8302 folder and double click ad8302-getShieldReadings.py
  8. Change the default Port number (“COM10”) in the example code. On your computer go to Control Panel?Device Manager look for Ports (COM & LPT) find the port number of “mbed Serial Port”.
  9. Right click on any point in the working space and click Run ltc5596-getShieldReadings

Hardware Reference Information

Help and Support

For any queries regarding the hardware and evaluation software, contact as at EngineerZone.

下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評論

查看更多

下載排行

本周

  1. 1電子電路原理第七版PDF電子教材免費下載
  2. 0.00 MB  |  1491次下載  |  免費
  3. 2單片機(jī)典型實例介紹
  4. 18.19 MB  |  95次下載  |  1 積分
  5. 3S7-200PLC編程實例詳細(xì)資料
  6. 1.17 MB  |  27次下載  |  1 積分
  7. 4筆記本電腦主板的元件識別和講解說明
  8. 4.28 MB  |  18次下載  |  4 積分
  9. 5開關(guān)電源原理及各功能電路詳解
  10. 0.38 MB  |  11次下載  |  免費
  11. 6100W短波放大電路圖
  12. 0.05 MB  |  4次下載  |  3 積分
  13. 7基于單片機(jī)和 SG3525的程控開關(guān)電源設(shè)計
  14. 0.23 MB  |  4次下載  |  免費
  15. 8基于AT89C2051/4051單片機(jī)編程器的實驗
  16. 0.11 MB  |  4次下載  |  免費

本月

  1. 1OrCAD10.5下載OrCAD10.5中文版軟件
  2. 0.00 MB  |  234313次下載  |  免費
  3. 2PADS 9.0 2009最新版 -下載
  4. 0.00 MB  |  66304次下載  |  免費
  5. 3protel99下載protel99軟件下載(中文版)
  6. 0.00 MB  |  51209次下載  |  免費
  7. 4LabView 8.0 專業(yè)版下載 (3CD完整版)
  8. 0.00 MB  |  51043次下載  |  免費
  9. 5555集成電路應(yīng)用800例(新編版)
  10. 0.00 MB  |  33562次下載  |  免費
  11. 6接口電路圖大全
  12. 未知  |  30320次下載  |  免費
  13. 7Multisim 10下載Multisim 10 中文版
  14. 0.00 MB  |  28588次下載  |  免費
  15. 8開關(guān)電源設(shè)計實例指南
  16. 未知  |  21539次下載  |  免費

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935053次下載  |  免費
  3. 2protel99se軟件下載(可英文版轉(zhuǎn)中文版)
  4. 78.1 MB  |  537793次下載  |  免費
  5. 3MATLAB 7.1 下載 (含軟件介紹)
  6. 未知  |  420026次下載  |  免費
  7. 4OrCAD10.5下載OrCAD10.5中文版軟件
  8. 0.00 MB  |  234313次下載  |  免費
  9. 5Altium DXP2002下載入口
  10. 未知  |  233046次下載  |  免費
  11. 6電路仿真軟件multisim 10.0免費下載
  12. 340992  |  191183次下載  |  免費
  13. 7十天學(xué)會AVR單片機(jī)與C語言視頻教程 下載
  14. 158M  |  183277次下載  |  免費
  15. 8proe5.0野火版下載(中文版免費下載)
  16. 未知  |  138039次下載  |  免費