Might need some coding help.

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
flygremlin
 
Posts: 16
Joined: Wed Nov 07, 2018 2:20 pm

Might need some coding help.

Post by flygremlin »

Hi guys and gals,
Full disclosure my coding skills are pretty bad. But, I'm working on a project where I would be able to read a pressure or vacuum reading in a small hand held devise. I'm hoping I can do it with just these 2 products:

Pressure sensor:
https://www.adafruit.com/product/3965

ESP32 Board:
https://learn.adafruit.com/esp32-s2-rev ... er/pinouts

My issue will be the coding. I'd like to have a display in PSI, inches of vacuum, and hectopascal. How difficult do you think it would be to program this? I wonder if I can ask GPT this question...

Any help would be awesome thanks guys!

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: Might need some coding help.

Post by adafruit_support_bill »

There is example code in the library that displays PSI and hPa. You can start with that.
https://learn.adafruit.com/adafruit-mpr ... duino-test

Convertng to inHg from PSI is as simple as applying a conversion factor: https://www.sensorsone.com/inhg-to-psi- ... ion-table/

User avatar
flygremlin
 
Posts: 16
Joined: Wed Nov 07, 2018 2:20 pm

Re: Might need some coding help.

Post by flygremlin »

Hi guys,
So I got this feather today and I'm trying to load my .py code to it. But when I drag the code and or libraries to the drive and eject it. it doesn't save anything. I must be missing something but I have no idea what. Any ideas?

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: Might need some coding help.

Post by adafruit_support_bill »

I'm not an expert on the Python side of things. Probably best to post that question in the CircuitPython part of the forum here: posting.php?mode=post&f=60

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”