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.

Linux/PGA460-Q1: PGA460-Q1 is not working with Arduino Mega.

Part Number: PGA460-Q1
Other Parts Discussed in Thread: ENERGIA, PGA460

Tool/software: Linux

Hi,

I'm using the PGA460-Q1 as an Arduino Mega.

first, i downloaded PGA460EnergiaLibrary-1.0.3, and i modified the example code "GetDistance_RevB" .

#include "Energia.h" -> #include "Arduino.h"

byte SD -> byte SDD

Using UART 0(Monitoring), UART 1(PGA460)

I have checked UART1 works independently using Serial Communication.

The hardware connection is as follows.

The test pin was tied to 220kΩ and 5V of Arduino Mega. and SCLK pin tied to GND.

Below is the log,

Configuring the PGA460 with the selected settings. Wait...
ERROR - Did not receive system diagnostics!
System Diagnostics - Frequency (kHz): inf
System Diagnostics - Decay Period (us): 0.00
ERROR - Did not receive temp/noise!
System Diagnostics - Die Temperature (C): -42.67
ERROR - Did not receive temp/noise!
System Diagnostics - Noise Level: 0.00
EEPROM programmed successfully.
Retrieving echo data dump profile. Wait...
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
ERROR - Did not receive measurement results!
ERROR - Did not receive measurement results!
ERROR - Did not receive measurement results!

Let me know the solution. Thank you.

  • Hadjae,
    What is the value of VPWR? The PGA460 requires 6-28V to operate correctly. The 5V USB based supply will not be sufficient enough to power the PGA460.

    To check if your UART port is correctly communicating with the PGA460, send a basic command, such as a register read command. Here is an example master transmit sequence in hex: {09 2B CB}
    where:
    •09 is the register read command and addr 0
    •2B is the register address to read EE_CRC (usually returns a non-zero value)
    •CB is the checksum for this transmit sequence

    The PGA460 should return three values when using this command:
    •Diagnostic field (0x40) if master transmit was successful
    •Register address value
    •PGA460 generated checksum

    Note that the PGA460 UART frame is not completely standard, since the PGA460 requires two-stop bits. Be sure you have configured your master's UART port for two-stop bits, rather than the default one-stop bit. I would recommend you run with a baud rate of 9600 for initial testing. Though not recommended, a baud rate of 9600 works with one-stop bit when using Energia.

    For the physical connections, the TXD pin of your master must connect to the RXD pin of the PGA460, and vice-versa.