Wemos ESPNow Sensor Update

 Thought I'd just catch where we are in sending ESPNow data from garden, especially spuds, to man cave "boss" WEmos.

Working OK with sensing temperature and humidity on the desk using #include "SparkFunHTU21D.h" in Code. There are pictures on previous posts of Wemos Mini I and II, called sender or Sensor or Slave to Boss or Receiver or master. Think I need better and more consistent names.

 The half second sensing loop is too short, so when sensor Wemos goes back nto garden it will have delay of, say, one hour. Need to sort out sleep routines. Currently just waiting til millis times out after 5000.

Want to make sure it's known what happens during the loop in sensor sending program, so put in little "stop watch" readings, about 5 of them, during main phases. Spent several hours going through outputs of millis that were feed out to serial terminal. See photos below:

( The relevant files are 

sender sensor routine: https://pastebin.com/i5sc1zF6  C:\Users\Dell\Documents\Arduino\WorkingAugust22\SpudSensor94\SpudSensor94.ino

globals: https://pastebin.com/9FVGFDaT  C:\Users\Dell\Documents\Arduino\WorkingAugust22\SpudSensor94\globals.h

helperCode: https://pastebin.com/5eZcpG8A  C:\Users\Dell\Documents\Arduino\WorkingAugust22\SpudSensor94\helperCode.h

These pics are from work book 2B8 with 9/22 on spine. There, in the book, is an expanded account of what's going on. 


Below: some notes about timing the sensor packet sending and reading.



Comments

Popular posts from this blog

Spud sensor update 3 August 2022

WEMOs mini going