Contained in this post are supplemental notes and online resource links for the WeatherSense 9001 Arduino-ESP32 Weather Station project.
Projects, videos and instructional blog posts like this take a lot of effort to research and produce. I have over 100 hours in this project so far. If this has been helpful or interesting, please consider a donation to help offset the extensive time and effort I put into these projects. Your support for small creators like me is greatly appreciated. Also, it has been shown that donating will allow much positive karma, fortune and mojo to come your way.
CrowPanel firmware code differences
CrowPanel devices may have different firmware versions depending on date of manufacture. My order from June 2024 included one CrowPanel 5.0″ with firmware v2 and one CrowPanel 7.0″ with firmware v3. As of fall 2024, Elecrow has indicated that all future releases will be v3, but I cannot confirm this.
Therefore, it should be noted that while most of the code is the same for both firmware versions, there are a few small differences as seen in my GitHub code for CrowPanel 5.0″ (v2) vs CrowPanel 7.0″ (v3).
For CrowPanel with firmware v2, the PCA9557 library and related code is not used.
For firmware v2, the PCA9557 library does not need installed. The following lines of code were removed from the WeatherSense .ino file for use with the CrowPanel 5.0″ (v2) :
#include <PCA9557.h>
PCA9557 Out; //for touch timing init
//touch timing init
Wire.begin(19, 20);
Out.reset();
Out.setMode(IO_OUTPUT);
Out.setState(IO0, IO_LOW);
Out.setState(IO1, IO_LOW);
delay(20);
Out.setState(IO0, IO_HIGH);
delay(100);
Out.setMode(IO1, IO_INPUT);
SquareLine Studio Chart Series
It seems that SquareLine Studio (or lvgl) cannot plot decimal values on a chart. As this relates to the WeatherSense 9001 project, the barometric pressure chart on the second UI page therefore does not show correct barometric unit values of in/Hg like 29.95″ or 30.05″. Instead it shows values multiplied by 100 like 2995 and 3005 in order to retain the needed precision but also display correctly on the chart.