Other Parts Discussed in Thread: MSP-EXP430F5529LP, , ENERGIA, PGA460, PGA460-Q1, TIDA-060024
Hey there,
I'm using MSP-EXP430F5529LP and PGA460PSM-EVM. I did connection (the PGA460PSM-EVM's UART pins to the MSP-EXP430F5529LP (PGA460 TXD to MSP430 p3.4 and PGA460 RXD to MSP430 p3.3)) and uploaded " PGA460 Energia Library and Code Example (Version 1.0.9) (Rev. I)" code with Energia. Then, I opened serial port display (COM6) and system worked. But it wanted to set all settings from me on keyboard. I did some settings and it run but it gave always 0.35m distance. Never it saw correct distance and I don't know what I should. COM6 display as follows.
You can see my settings on this picture but I want to re-write for you can understand better:
Communication Mode: 0=UART
UART kBaud: 0=9.6
P1 and P2 Thresholds: 1=%50
Transducers Settings: 1=Murata MA40M1S-R
TVG Range: 2=53-84dB
Fixed TVG Level: 1=%50
Minimum distance: 0.1m*BYTE (I wrote 1 for BYTE) => 0.1*1= 0.1m
Run System Diagnotistics: 1=Yes
Echo Data Dump: 1=P1BL
Burn/Save User EEPROM: 1=Yes
Command Cycle Delay: 100ms*BYTE (I wrote 1 for BYTE) => 100*1=100ms
Number of Objects to Detect (1-8) = 1
USART Address of PGA460 (0-7) = 0
I looked GetDistance.ino for this settings (Communication Mode, P1 and P2 Thresholds, Transducers Settings, TVG Range, Fixed TVG Level) But I don't know what should be others (Minimum distance, Run System Diagnotistics, Echo Data Dump, Burn/Save User EEPROM, Command Cycle Delay, Number of Objects to Detect, USART Address of PGA460)
Is this settings right? If not, can you say correct settings?
Measured distances as follows.
Without setting, at first, when I pressed "s", it did not take any measurements:
Later I tried again to entered "s", it worked good firstly but a few seconds later it stuck and measured 0.3m consistently:
I changed sensor's place, but measured distance didn't changed.How can I fix it? I will use PGA460 in my project and I need to run correct this module for understand better.
And I saw maximum 1.5m distance, I need 3m. In the code, it seems to be able to measure even more than 3 meters. How should I set this up or where am I wrong?