Posts

Review December 1 of Wemos sensor network.

Image
 REview of where we're up to with "spud sensor" , Boardwalk ESPNow Network Thu Dec  1 11:16:16 NZDT 2022.  Software used two Arduino programs to talk to two Wemos Mini ESP8266s. One was the sender that sampled temperatures and humidities and sent them through I2C to Wemos I. They were stored in buffers, these samples then sent on to Wemos II via ESPNow. Sometime the sender was in  the garden on the top of the Boardwalk vege place. ESPNow worked well for this job.  The receiver Wemos waits for orders from serial terminal, including one to send the log file which it gets from the sender, Wemos I. There's a Python program serial13.py that takes 100 bytes of the logged sensor information, tidies it up a bit then can be passed to Excel as a comma delimited file for graphs etc.  So data a goes : HTU via I2C to Wemos I Wemos I via ESPNow to Wemos II Wemos II via serial to Python (or Terminal) Python file via clicks to Excel Sender: https://pastebin.com/bC1G7L...

Spud sensor update 3 August 2022

Image
 Sender WemosI going ok. This is driven by C:\Users\Dell\Documents\Arduino\WorkingOctober22\SpudSensor94H\SpudSensor94H.ino which takes values of temperature and humidity from HDU21 device,with  SparkFun driver, and sends these values to Wemos II, the Listener. Listener's display on serial terminal looking a bit crude but works OK. https://pastebin.com/Fvw5NZbS is the Sender program that reads the HUD21 device and sends info. via espNow to Listener program on WemosII below.. C:\Users\Dell\Documents\Arduino\WorkingOctober22\SpudSensor94H\SpudSensor94H.ino https://pastebin.com/TGdvqSh5 is the Listener program C:\Users\Dell\Documents\Arduino\WorkingAugust22\SantosSensor7\SantosSensor7.ino (NB not ...Sensor6.ino above. Slight improvement. Next task is to tidy up listener code and include semaphore codes that help transfer file chunks from Sensor to Listener. Codes currently are 51 = normal file chunk being delivered from Sensor 59=last fule chunk-ette of extras. (<200 byte...

Wemos ESPNow Sensor Update

Image
 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:\Us...

Information eg pinouts

Image
 

Real time LDR readings sent to receiver Wemos Mini

Image
 Sent LDR readings to wemos min about 500mm away via ESP Now. The sender uses https://pastebin.com/fKpkv94Y, Sender8 and the receiver uses https://pastebin.com/1xJhw3fa , receiver3with Blink Sender is in the foreground of photo below. Receiver is above metallic pig on window sill. Next put sender with LDR in box or container outside in various positions and check it can send LDR data OK. This would prove the basic outside reading of sensor values to PC inside.
Image
 Second Range test, about 100m line of sight from Mancave window to back of farm. Went for a walk with yoghurt pottle containing powerbank at 5v, usb to WeMos mini #1. The receiver ESP8266 was Blue Tacked to window and received packet containing some data from C structure, arbitrary with one int for number of packets sent. The sender at the paddock where window looks out onto sneds packets at rate of about 200ms and blinks each time it receives acknowledge signal from receiver stuck to window above garage. If there was blinking the packets were being sent and received ok. At about 100m the signals were a bit jumpy especially if something was put in front of sender including human body. Sender code (Arduino, compiled to ESP Arm): https://pastebin.com/aD3pf95z Receiver Code: (ditto) : https://pastebin.com/1xJhw3fa  Back against fence. Blinking OK

Preliminary Range Test for Wemos Mini ESP now

Image
 Took receiver Wemos Mini 2 outside with sender Wemos Mini 1 sending a structure of three numbers every three seconds. The Rx Mini toggled little blue on board LED every time it received a packet. Worked will with LED toggle visible up to the back of the board-walk garden and around the front of the house to the edge of the Haha. Did not receive outside master bedroom near patio there. Want to now look at sending simulated sensor packets from boardwalk garden.