@scalerobotics
I have import your code to Proteus Sim and playing around with your code.
It seems to work ok (I have to use meters instead of feets here).
My MPX4115A arrived yesterday (4pieces) so it is time to make the real thing and figure out how it works. I am going to use my schematic ommiting the opamp and hope oversampling method works (12f683,internal 8Mhz,MPX,3caps -> total part count 5!)
For the moment I put everythimg in SIM (i used 12f683 with internal 8Mhz) and here what I found:
According to simulation at 50.400kPa I read 17646 feet ALT (lower limit) and
at 99.900kPa I read 5 feet ALT (upper limit) that is with this code we measure aprox. 49,500Kpa difference. (two screenshots attached)
Note: We must also use calibration data and/or Level0 default presure
(Please note that in the sim I can only vary sensor kPa in .100 increaments)
Bookmarks