Part Number: PGA450Q1EVM
Other Parts Discussed in Thread: TIDA-00151, PGA450-Q1, TIGER,
Hi!
I do not get the expected response from the PGA450Q1EVM-S (TIDA-00151), purchased April 2019 when interfacing using an Arduino MEGA on Serial1 UART programmed with the sketch PGA450Q1EVMS_UART_Demo.ino from TI.
My problem seems very similar to an issue brought up by Jared Rawlins in a post: http://e2e.ti.com/support/tools/sim-hw-system-design/f/234/p/728573/2749777#jktype=e2e&pi320995filter=all&pi320995scroll=false&pi320995=2
I'm powering the PGA450Q1EVM-S with 13.8V, 1A DC, joined grounds with the arduino I receive seemingly random data from the sensor unit when I run the sketch. It didn't seem like Jared solved his problem on the forum.
Grateful for advice.
Output from serial monitor after running command 0 repeatedly, 18 times, then command 1 long range, then command 2, 6 times followed by command 4, twice, to give you an idea what it prints:
PGA450Q1EVM-S UART Demo
Enter command number to run:
0: Test UART communication.
1: Trigger a short or long distance burst and capture with hard-coded drive and receive settings.
2: Read first instance of threshold crossing for closest object detected.
3: Update an EEPROM value.
4: Read all 768 bytes of FIFO data
5: Burst and capture ultrasonic profile based on EEPROM configuration of drive and receive settings.
6: Threshold values report for selected mode of operation (short or long).
7: Not used in example firmware. Reserved for custom user defined function.
255,255,
255,255,
255,255,
83,255,
255,255,
255,255,
255,255,
255,255,
255,255,
255,255,
255,255,
255,255,
255,255,
255,255,
83,255,
255,255,
255,255,
255,255,
CMD1 input selection: 0=listen, 1=short, 2=long
255,255,
255,255,
255,255,
255,255,
255,255,
255,255,
ERROR - Did not receive data from PGA450-Q1. SerialAvailable=1
ERROR - Did not receive data from PGA450-Q1. SerialAvailable=1
0,255,
sometimes command 0 also returns:
18,52,
Changing the sketch to print HEX formatted strings to serial monitor (using: Serial.print(UART_RX[n], HEX); ) responds to repeated command 0 calls as below:
FF,FF,
53,FF,
53,FF,
12,34,
FF,FF,
12,34,
FF,FF,
34,B9,
FF,FF,
FF,FF,
FF,FF,
FF,FF,
FF,FF,
FF,FF,
FF,FF,
FF,FF,
FF,FF,
FF,FF,
B9,FF,
From the http://www.ti.com/lit/ug/sldu019b/sldu019b.pdf I find that I should expect 0x12, 0x23 to be returned after a command 0 call.
Grateful for advice.