This library enables the developer to evaluate NXP FXPS7xxx with Arduino
Note Known Issue: This library doesn't fully support 165, 400, 550kPa devices though the library still be functionable for these devices. Will be fully supported.
Put your FXPS7xxx on your Arduino. Arduino Uno can adopt FXPS7xxx shield board without any changes.
Output | Supported? | Device Information | Datasheet | Board Information |
---|---|---|---|---|
Digital | YES | FXPS7115D4(S) | FXLS7115D4S.pdf FXLS7115D4.pdf | Device Sample + BRKFXPS7XXX-PCB + FRDM7X-INTERFACE |
Digital | Partially | FXPS7165D4(S) | FXLS7165D4S.pdf FXLS7165D4.pdf | Device Sample + BRKFXPS7XXX-PCB + FRDM7X-INTERFACE |
Digital | YES | FXPS7250D4(S) | FXLS7250D4S.pdf FXLS7250D4.pdf | BRKTSTBAPDI7250/BRKTSTBAPDS7250 + FRDM7X-INTERFACE |
Digital | Partially | FXPS7400D4(S) | FXLS7400D4S.pdf FXLS7400D4.pdf | Device Sample + BRKFXPS7XXX-PCB + FRDM7X-INTERFACE |
Digital | Partially | FXPS7550D4(S) | FXLS7550D4S.pdf FXLS7550D4.pdf | Device Sample + BRKFXPS7XXX-PCB + FRDM7X-INTERFACE |
Analog | YES | FXPS7250A4(S) | FXLS7250A4S.pdf FXLS7250A4.pdf | BRKTSTBAPA7250S + FRDM7X-INTERFACE |
Analog | Partially | FXPS7400A4(S) | FXLS7400A4S.pdf FXLS7400A4.pdf | Device Sample + BRKFXPS7XXX-PCB + FRDM7X-INTERFACE |
Analog | Partially | FXPS7550A4(S) | FXLS7550A4S.pdf FXLS7550A4.pdf | Device Sample + BRKFXPS7XXX-PCB + FRDM7X-INTERFACE |
Use Library manager pane in Arduino IDE (the books mark), put this library name (FXPS7xxx_Arduino) and click INSTALL button. This library is copied to your Arduino library folder (default: <Your Documents folder>\Arduino\libraries).
You can find example codes inside this library by selecting from [File]->[Examples]->[FXLS89xx_Arduino].
Please see the documents of docs/class_f_x_p_s7xxx___arduino.html in order to get the information of all the functions.
Category | Folder | Features |
---|---|---|
Example | examples/example_FXPS7250_pressure_analog/example_FXPS7250_pressure_analog.ino | Example codes to read the pressure data from FXPS7250A4(S). |
Example | examples/example_FXPS7250_pressure_i2c/example_FXPS7250_pressure_i2c.ino | Example codes to read the pressure data from FXPS7250DI4(S) (I2C version of FXPS7250D4(S)). |
Example | examples/example_FXPS7250_pressure_spi/example_FXPS7250_pressure_spi.ino | Example codes to read the pressure data from FXPS7250DS4(S) (SPI version of FXPS7250D4(S)). |
Documents | docs/<All data inside the folder> | The documents generated by Doxygen. Please see the link: docs/class_f_x_p_s7xxx___arduino.html |
Source | src/FXPS7xxx_Arduino.cpp | The C++ file for this library. |
Source | src/FXPS7xxx_Arduino.h | The header file for FXPS7xxx_Arduino.cpp. |
Source | src/fxps7xxx.h | The header for register definition made by NXP. |
Arduino | keywords.txt | Keywords data only used for Arduino IDE 1.x. |
Arduino | library.properties | Library properties used by Arduino and its Library manager. |
Other | Doxyfile | For Doxygen |
Other | LICENSE | License data. This is BSD 3-Clause. |
Other | README.md | This file. |
This library doesn't contain the pressure calculation data for the devices that indicates "Partially" in the list above. Will update soon.
Please read example file first (example_FXPS7250_pressure_i2c or example_FXPS7250_pressure_spi).
This library sets I2C address 0x60 at default.
First initialize the class and call begin() function.
For SPI version, the user must set SOURCEID_0 or 1 to use get_pressure_sensor_data_request(SOURCEID) function.
Self test function can be called by fxps7xxx_startup_self_test. The arguments defined in fxps7xxx_regdef.h able to be used are below. Please read the datasheet for each meaning or behavior.
FXPS7XXX_DSP_CFG_U5_STL_CTRL_P_CELL_MODE_VERIFICATION
FXPS7XXX_DSP_CFG_U5_STL_CTRL_INHIBIT_SNS_DATA_X_WRITE0
FXPS7XXX_DSP_CFG_U5_STL_CTRL_INHIBIT_SNS_DATA_X_WRITE1
FXPS7XXX_DSP_CFG_U5_STL_CTRL_INHIBIT_SNS_DATA_X_WRITE2
FXPS7XXX_DSP_CFG_U5_STL_CTRL_INHIBIT_SNS_DATA_X_WRITE3
FXPS7XXX_DSP_CFG_U5_STL_CTRL_DIGITAL_SELF_TEST0
FXPS7XXX_DSP_CFG_U5_STL_CTRL_DIGITAL_SELF_TEST1
FXPS7XXX_DSP_CFG_U5_STL_CTRL_DIGITAL_SELF_TEST2
FXPS7XXX_DSP_CFG_U5_STL_CTRL_DIGITAL_SELF_TEST3