This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PGA460PSM-EVM: Configuring UTR-1440K-TT-R (Default transducer) with PGA460PSM-EVM for distance values

Part Number: PGA460PSM-EVM
Other Parts Discussed in Thread: PGA460, BOOSTXL-PGA460, ENERGIA

Hi,

We need to know how to calibrate the PGA460PSM-EVM for UTR-1440K-TT-R (default transducer) for measuring distance. I tried to use the following thresholds from ,

Can I have any link briefly explaning about all parameters used here! (pga460q1 datasheet doesnot state any parameters in brief)

/* UTR-1440K-TT-R transducer example register configuration
byte USER_DATA1 = 0x00
byte USER_DATA2 = 0x00
byte USER_DATA3=0x00
byte USER_DATA4=0x00
byte USER_DATA5=0x00
byte USER_DATA6=0x00
byte USER_DATA7=0x00
byte USER_DATA8=0x00
byte USER_DATA9=0x00
byte USER_DATA10=0x00
byte USER_DATA11=0x00
byte USER_DATA12=0x00
byte USER_DATA13=0x00
byte USER_DATA14=0x00
byte USER_DATA15=0x00
byte USER_DATA16=0x00
byte USER_DATA17=0x00
byte USER_DATA18=0x00
byte USER_DATA19=0x00
byte USER_DATA20=0x00
byte TVGAIN0=0x9D
byte TVGAIN1=0xEE
byte TVGAIN2=0xEF
byte TVGAIN3=0x2D
byte TVGAIN4=0xB9
byte TVGAIN5=0xEF
byte TVGAIN6=0xDC
byte INIT_GAIN=0x03
byte FREQUENCY=0x32
byte DEADTIME=0x80
byte PULSE_P1=0x12
byte PULSE_P2=0x12
byte CURR_LIM_P1=0x72
byte CURR_LIM_P2=0x32
byte REC_LENGTH=0x09
byte FREQ_DIAG=0x00
byte SAT_FDIAG_TH=0xEE
byte FVOLT_DEC=0x7C
byte DECPL_TEMP=0x8F
byte DSP_SCALE=0x00
byte TEMP_TRIM=0x00
byte P1_GAIN_CTRL=0x29
byte P2_GAIN_CTRL=0x29
byte EE_CRC=0x76
byte EE_CNTRL=0x04
byte P1_THR_0=0x41
byte P1_THR_1=0x11
byte P1_THR_2=0x11
byte P1_THR_3=0x10
byte P1_THR_4=0xFF
byte P1_THR_5=0xFF
byte P1_THR_6=0x00
byte P1_THR_7=0x01
byte P1_THR_8=0xF8
byte P1_THR_9=0x20
byte P1_THR_10=0xC6
byte P1_THR_11=0x30
byte P1_THR_12=0x38
byte P1_THR_13=0x50
byte P1_THR_14=0x80
byte P1_THR_15=0x00
byte P2_THR_0=0x41
byte P2_THR_1=0x11
byte P2_THR_2=0x11
byte P2_THR_3=0x10
byte P2_THR_4=0xFF
byte P2_THR_5=0xFF
byte P2_THR_6=0x00
byte P2_THR_7=0x01
byte P2_THR_8=0xF8
byte P2_THR_9=0x20
byte P2_THR_10=0xC6
byte P2_THR_11=0x30
byte P2_THR_12=0x38
byte P2_THR_13=0x50
byte P2_THR_14=0x80
byte P2_THR_15=0x00
*/

The following were not configured 
//byte BPF_A2_MSB=0x89
//byte BPF_A2_LSB=0x52
//byte BPF_A3_MSB=0xFC
//byte BPF_A3_LSB=0xCE
//byte BPF_B1_MSB=0x01
//byte BPF_B1_LSB=0x99
//byte LPF_A2_MSB=0x7F
//byte LPF_A2_LSB=0x33
//byte LPF_B1_MSB=0x00
//byte LPF_B1_LSB=0x67
//byte TEST_MUX=0x00
//byte DEV_STAT0=0x80
//byte DEV_STAT1=0x00
//byte THR_CRC=0xF9

Can you please let us know why the sensor is returning distance values even if no objects are present?

Does the user data register have something to do with transducer configuration?

BPF , LPF and other registers were not configured are they essential?

Thank you

  • Hello Deepak,

    Thanks for your post. The details of each register is in the datasheet and its explained in detailed and its present in relevant section of the datasheet and explained as applicable. There isn't one document and its spanned across our datasheet. 

    For your question(s). I would recommend that you refer to a couple of app notes here. We have Frequently asked Questions  about PGA460 that can assist in the optimization. 

    There is also an app note that talks about detailed software guide.

    Also, please refer to our Ultrasonic Hardware and Software optimization guide as well. 

    Would you look through these and let us know if these documents helped you get guidance ? 

  • Hi,

    Can I please know about AFE_GAIN_RNG (Analog front end gain range?) , how will I fix that range?

    The DECPL_TEMP=0x8F  thus my AFE_GAIN_RNG computes to a range of 46 to 78 dB.

    But since it is a range value I am not able to calculate my initial gain , gain (1-5) respectively.

    For example,

    INIT_GAIN=0x03; Thus GAIN_INIT = 3

    Init_Gain = 0.5 * (GAIN_INIT+1) + value(AFE_GAIN_RNG) [dB]

    Init_Gain =0.5 * (3 + 1) + (46 to 78) dB

    Init_Gain = 2 +  (46 to 78) dB

    Thus initial gain is in the range 48 to 80 dB 

    How is this possible ? I suppose it should be a fixed value and not a range. I get the similar problem with respect to Gains 1 to 5 !

  • Hi Deepak,

    The TVGAIN3-TVGAIN6 registers fine tune the selected gain based on the range selected.  For the Gain calculations, you want to use the minimum value mentioned in the gain range as the offset to add to the TVGAINx registers.

    Regards,

    Mekre

  • Hi Mekre,

    Thank you so much for reply. In the GUI software for preset 2 I get the following gain ranges ,

    init gain = 58.5

    g1 = 60.5

    g2 = 63.5 

    g3 = 68.5

    g4 = 74.5

    g5 = 82.5 

    Are these gain suitable for UTR-1440K-TT-R transducer?  If so can you please give me an example what values should I use from TVGAIN3 - TVGAIN6 and INIT_GAIN ?

    Thank you

  • Also can I please know why values are assigned to P1_THR_6 to P1_THR_15 registers? As their properties in datasheet state "Presetx Threshold Lx level (Bit4) This bit-field powers-up uninitialized" How can I calculate and assign thresholds? 

  • Hello Deepak,

    The gain values are an application specific and its an iterative process and its needs to be tried and tested and can vary across application, object and heavily dependent on return signature. It’s a loop process and can be obtained by trial and error. As this process is time consuming and requires several iterative lab measurements on your side I would suggest is to run through various settings in the GUI to see what values give you the best reading. I would also like to direct you to the TI Precision Labs video series which contains info on setting up thresholding for the EVM: https://training.ti.com/pga460-ultrasonic-sensing-evm-gui-introduction?context=1128182-1128162

    Once you have found the best settings that work for your application the GUI allows you to capture the register map and save as text file “.txt” in order to use them as a reference. Instructions on how to do this can be found here: https://e2e.ti.com/support/sensors/f/1023/t/640810

    Regards,

    Isaac

  • Hi,

    Thank you so much for your reply, I have PGA460PSM-EVM connected with arduino based controller ( seeeduino xiao). Unfortunately I do not have BOOSTXL-PGA460 , In my case is it possible to use the GUI , which can may be simulate threshold and gain values?

  • Hello Deepak,

    Currently the GUI only works with the MSP430, specifically the MSP430F5529LP. Since you are using an Arduino based microcontroller all the changes would have to be done manually through your own code.

    Regards,

    Isaac 

  • Can you please provide me with predefined tuned values , for UTR-1440K-TT-R (Default transducer), we need values for 2m distance and 8m distance , It would be very useful if you can support us as we are into calibration of this sensor for more than 3 weeks! 

  • Hi Deepak,

    As pointed out the GUI and the MSP432 would help you in getting the optimized values as desired per your application. The GUI helps you in fine tuning the setup and review the register values using the GUI that can be updated on your code to interface with Arduino. We can provide assistance in guiding you to point to the resources that can assist you in completing the calibration. Would you like to know more about how you can order the EVM through our website ? Optimizing the GUI is certainly be less than 3 weeks.  

  • Hi,

    Thank you so much Sure please send us the link to buy it, Is there any way , we can configure only using the pga460psm-evm and arduino? As we bought 6 psm-evm modules to be installed in our prototype electric vehicle! Another question is that default settings are given for MA58MF14-7N transducer in the energia library, so will that work without any need for us to calibrate? It would also be very helpful if we can get extensive support while production from your end!

  • Hello Deepak,

    Here is the link to buy the EVM

    Every transducer is different and the settings will certainly have to be tweaked for every application and also for every scenario. As we understand that this can be very specific we have detailed all of our application notes and datasheet with all fo the information so our customer can continue to fine tune their systems and see what works best. Ultrasonic in general is a trial and error approach. You will need to try the settings and fine tune it as needed. I would recommend to review our documentation and use the GUI tools available to assist here. We are happy top provide any guidance and we are not the experts in calibration of the transducer. If you have any specific questions in regards to any of our content please do let us know and we are happy to provide any guidance here. As you continue to fine tune your system let us know if you have any specific questions on the content. 

    Arjun

    Applications Manager, Sensing. 

  • Hi we have the following values, 

    The one on the left is the original distance (in m) and the values on the right is the value that is returning values by sensor (in m)

    I dont find any standard pattern being followed , are there any ways to calibrate using this data?

    Dist values average
    0.8 10.57 10.13 10.83 10.83 10.61 10.594
    0.8 9.69 9.96 9.82 9.95 10.26 9.936
    0.9 9.03 8.94 9.29 9.03 9.25 9.108
    0.9 6.1 6.23 6.18 6.05 6.14 6.14
    1.0 8.8 8.76 8.93 8.8 9.19 8.896
    1.0 9.11 9.24 9.67 9.72 9.46 9.44
    1.1 8.53 8.4 8.53 8.48 8.61 8.51
    1.1 8.09 8.26 8.44 7.78 7.87 8.088
    1.2 7.38 7.34 7.29 7.42 7.51 7.388
    1.2 7.12 6.94 7.21 7.25 7.07 7.118
    1.3 3.42 3.34 3.47 3.26 3.43 3.384
    1.3 7.28 7.63 6.97 7.11 7.28 7.254
  • Hello Deepak,

    Thanks for the data! Let me obtain some calibrated threshold values using the PGA460EVM GUI and the PUI UTR-1440K-TT-R. That should solve the issue with the inconsistent data that you are currently having. Give me until Friday and I should have those values for you to try on your system.

    Regards,

    Isaac