3 ms·
Good exercise but FYI ESPHome is probably the way to go for most people. All the sensors you mentioned are likely already supported and just need to be added t
by roger_ 4y ago
Good exercise but FYI ESPHome is probably the way to go for most people.
All the sensors you mentioned are likely already supported and just need to be added to a yaml file.
- _l0wh 4y agoI didn't know about this. I'll definitely check it out. Thanks!
- xconverge 4y agoAlso look at the failure time and make sure you are sleeping correctly when not reading. esphome has this implemented and it is really great, it wakes up 10 seconds early, starts the fan/airflow, then takes the reading, then sleeps (for 50 seconds) in my case where I want to sample every 1 minute. Without this the lifetime of the sensor is around 1 or 1.5 years of continuous use if I recall correctly.
- aulin 4y agoEven as an experiment with the sole purpose of learning stuff and having fun I find Arduino libs tend to hide all the fun stuff effectively diminishing the learning experience. Sometimes it's good to reinvent the wheel (like writing the driver yourself with the sdk) if your goal is to understand how why it works.