VTI SCP1000 Pressure Sensor
Jaime
Posts: 16
Do any of you already have the code to interface this sensor to the BS2 (Basic Stamp).. I know theres a lot of material to interface this sensor to the the Propeller but for the Basic Stamp I have not seen nothing yet.. If somebody has a piece of code , along with the schematics to connect the voltage level translator (3.3V->5V, since this sensor works with 3.3V) which really works would be greately appreciated.
Thanks a lot for your feedback
microwaveteach@hotmail.com
Thanks a lot for your feedback
microwaveteach@hotmail.com
Comments
It says it supports the "SPI" protocol -- which on the BS2 is implemented as "SHIFTOUT/SHIFTIN", if that helps.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
·
·· The sample code available is for the Propeller (spin) only; the BASIC Stamp code has been tested with resistors as apposed to using the buffer IC·chip, which seemed to work decently (minus some formatting issue), The temperature stated 775 °C as apposed to 77.5 °C but the Pascal’s were not correct by a good margin; so there was not an official release of the sample code until we could get it to work correctly.
As time is always a valuable commodity, here is the code that we found online. Again; this is not a Parallax code, but from a Paul Hopkins; so thank you Paul for providing a template to work from. As time permits, we will verify the code; but for now here is what is available; perhaps someone can isolate the programming error. If so, please contact me at support@parallax.com (ATTN: JD) so I can verify and reward if possible.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
·
microwaveteach@hotmail.com
I embarked on the project of running the SCP1000 on my basic stamp board (of education). I followed the setup of some of the earlier posts and used 1kOhm resistors between the data pins and the board (as in the attached figure). However, more importantly I used an LM2937ET 3.3 Voltage regulator so that my input voltage was approx. 3.3V.
I got some basic stamp code from one of the earlier posts that was misinterpreted to read incorrect pressures and had the temperature reading in deci-degrees Celcius. I have since edited this code to display Pa, C, and Farenheit (however the interpretation of the pressure was not easy since the number is too big for the largest data type in basic stamp 2 - the word). Note that I also removed some things that were not used so that I didn't fill the EEPROM. If you run into this trouble wait for my post coming next week with my reduced code that puts all of this on a data logger in real time.
Good luck everyone,
Brent
bmperrea@cord.edu diagram.jpg
Note that for this to even run you either need the same data logger or you need to get rid of the code that deals with the data logger since otherwise it will never synchronize.
Good luck,
Brent
Brent
Thank You.