Arduino Forum

Using Arduino => Networking, Protocols, and Devices => Topic started by: dpoornima on Feb 01, 2016, 06:30 pm

Title: Pressure sensor code for ABP honeywell sensor
Post by: dpoornima on Feb 01, 2016, 06:30 pm
Hello,
I am trying to read pressure from ABP honwywell sensor. Could anyone help me with it?



The link for the datasheet is :
http://sensing.honeywell.com/honeywell-sensing-basic-board-mount-pressure-sensors-abp-series-datasheet-323005128-c-en.pdf
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: Koepel on Feb 02, 2016, 07:33 pm
Honeywell's page about the ABP series sensors : https://sensing.honeywell.com/basic-board-mount-pressure-sensors-abp-series (https://sensing.honeywell.com/basic-board-mount-pressure-sensors-abp-series)

On that page is also "Additional Resources" which requires to log in. What kind of hidden information would that be ?

They could be compatible with the other series : http://playground.arduino.cc/Main/HoneywellTruStabilitySSC-HSCPressureSensors (http://playground.arduino.cc/Main/HoneywellTruStabilitySSC-HSCPressureSensors)
After reading a few documents, I think they are more or less compatible.
Did you look at the source code of that library ? It is at: https://code.google.com/archive/p/arduino-ssc/downloads (https://code.google.com/archive/p/arduino-ssc/downloads).
I spotted the wrong use of the Wire library in that code :(

I could not find Arduino code for the Honeywell ABP series sensors.
That means you have to write your own library.
But with quick glance at the Honeywell site, I could not even find example code (for Arduino or other microcontroller) how to use the sensors.


At Adafruit.com they sell sensors together with libraries an are very open and give all the information. Also other sellers show the schematic that they build, give source code, and have a forum to ask questions, for example Sparkfun.com.
If you want to make a project, you better look at those first. They have both worldwide distribution for their products.
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: dpoornima on Feb 02, 2016, 08:02 pm
Hello,

I have gone to the honeywell additional information page but that says it does not grant access to other than marketing/sales representative.
I have seen the source code.

Is there any other way to code or read the pressure from this sensor.

Also, how do we create a library for this sensor?
I found this link online :https://www.arduino.cc/en/Hacking/LibraryTutorial
but could someone explain in detail.

I also checked adafruit and mouser. None of them had the proper sensor. :smiley-confuse:

Thank you
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: dpoornima on Feb 02, 2016, 08:08 pm
Should I try using the code with the SSC library?

Are there any things which need to be changed?


Thank you.
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: Koepel on Feb 02, 2016, 09:44 pm
You can copy the code from the library into your own project (without using or creating a library). There is a drop-down menu in the upper-right corder of the Arduino IDE. You can create a *.cpp and *.h file and copy the code into those files.

You might have to change the code in the example. Select either the < > or the " " version to include the *.h file.
Code: [Select]

// including a library with < >
#include <SSC.h>

// including a file from your own project with " "
#include "SSC.h"


I am not helping to write the code, because I don't have such a sensor. I could not find the explanation of the sensor registers, so I don't have any clue at all what to do with the data from the sensor.

Are you sure you want to continue with this sensor ? Can you get (or pay for) help ?
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: Koepel on Feb 03, 2016, 12:39 am
Use: #include "SSC.h"
You could zip the whole project and attach it, so I can try to compile it.
Do you know where your projects are ?
File / Preferences / Sketchbook location
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: dpoornima on Feb 03, 2016, 07:31 pm
Hello,

I tried using #include "SSC.h". It says compiling and doesnt show any result. I have attached the zip folder. Can you please try and let me know.
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: Koepel on Feb 03, 2016, 09:51 pm
I ment copying the *.cpp and *.h file from the library into your project.
See the attached project.

Try the i2c_scanner to find the i2c address : http://playground.arduino.cc/Main/I2cScanner (http://playground.arduino.cc/Main/I2cScanner)
See if that address matches the address in the code.
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: dpoornima on Feb 03, 2016, 10:29 pm
Hello,

The I2c address is 0x28. I tried compiling it. It worked.  Thanks a lot for being patient and helping me out. I really appreciate your help.  :D  :D  :D




Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: Koepel on Feb 04, 2016, 12:39 am
You get numbers out of the sensor :o That is more than I expected.
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: dpoornima on Feb 04, 2016, 12:49 am
Hello,

I uploaded the code. and tried to give input to the sensor .
but the serial monitor does not show anything.   ::)  :smiley-sad:

I will try it again.
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: Koepel on Feb 04, 2016, 01:14 am
Check the baudrate. They must be the same.

Look in the code for Serial.begin().
Code: [Select]

Serial.begin(115200);

Set either Serial.begin to 9600 or set the serial monitor to 115200.
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: dpoornima on Feb 04, 2016, 01:43 am
I did that.
 
The problem was with  with the bread board connections.  I corrected them now.  :smiley-sweat:
It now shows some values.

Thank you so much. :D  :D  :D


Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: jgatvl on Feb 12, 2016, 09:37 pm
dpoornima,

Are you using pull up resistors for the I2C connections? Powering w 5V or 3.3V?

Thanks!
Title: Re: Pressure sensor code for ABP honeywell sensor
Post by: dpoornima on Feb 15, 2016, 05:22 pm
Hello,

I am using pull ups for the I2C connections. I am powering a 3.3 V.