AMS5812-0030-D-B Amplified Pressure Sensor
The AMS5812-0030-D-B is a high-precision OEM pressure Sensor.
This Device is available from ControlEverything.com [SKU: AMS5812_I2CS_0030-D-B]
https://www.controleverything.com/content/Pressure?sku=AMS5812_I2CS_0030-D-B
This Sample code can be used with Raspberry pi, Arduino and Beaglebone Black.
Download and install pi4j library on Raspberry pi. Steps to install pi4j are provided at:
Download (or git pull) the code in pi.
Compile the java program.
$> pi4j AMS5812.java
Run the java program.
$> pi4j AMS5812
Download and install Arduino Software (IDE) on your machine. Steps to install Arduino are provided at:
https://www.arduino.cc/en/Main/Software
Download (or git pull) the code and double click the file to run the program.
Compile and upload the code on Arduino IDE and see the output on Serial Monitor.
Login to your Photon and setup your device according to steps provided at:
https://docs.particle.io/guide/getting-started/connect/photon/
Download (or git pull) the code. Go to online IDE and copy the code.
https://build.particle.io/build/
Verify and flash the code on your Photon. Code output is shown in logs at dashboard:
https://dashboard.particle.io/user/logs
Setup your BeagleBone Black according to steps provided at:
https://beagleboard.org/Getting-Started
Download (or git pull) the code in Beaglebone Black.
Compile the c program.
$>gcc AMS5812.c -o AMS5812
Run the c program.
$>./AMS5812
#####The code output is the pressure in PSI and temperature in degree celsius and fahrenheit.