Hacker News new | ask | show | jobs
by IgorPartola 1960 days ago
Hey! I actually emailed you when I started but haven’t heard back so I assumed the project was not being worked on.

The biggest thing I found was that the PMS sensor has seen two generations of revisions. I built an original AirGradient and it’s sitting on my night stand currently but for new builds I am using a PMSA003 instead of PMS5003. Also I am substituting a DS-CO2-20 from Plantower for the CO2 sensor. That CO2 sensor seems to be well regarded and is slightly cheaper. And lastly I rewrote the drivers to be a bit different and a little more organized/readable/efficient. It doesn’t add much in terms of functionality, was just an excuse to write some C but I think it came out nice.

I redesigned the PCB to tie the PMS sensor’s SET and RESET pins to 3.3V per the data sheet. It seems to work fine without that with the PMS5003 but I haven’t yet received the new PCBs so I don’t know how it’ll work out. The PMSA003 has a different, slightly more convenient 1.27mm 2x5 connector so it’s easy to mount and get all the connections onto a PCB but isn’t breadboard friendly.

One other difference is that I’m not using a the Wemos OLED shield in favor of a stand-alone 0.96” OLED screen for double the resolution horizontally (your instructions show that one but not in the PCB build). And I wrote a different UI for it, plus added a button the PCB to do things like reset the sensor settings.

There are probably other things I’m forgetting but my email is in my profile if you want to move this conversation to that medium and once I polish up the code a bit more I am happy to share it. I will likely continue using these sensors with HA but I see no reason that you can’t use some of this in your work if you find it useful. I was planning on publishing the code and plans under a BSD license.

Overall, I wanted to thank you for the amazing work you did on AirGradient. I wouldn’t have been able to start on this project nearly as easily without your plans and code. It’s really impressive work very polished.