Hello all,
I propose here a very simple assembly with these two functions : extend your wifi and get weather datas.
(particularly interesting if you place your board outside... under cover of course)
I haven't invented much, it's a compilation and adaptation (meritorious!) of various codes found on the net. Sources and authors are cited at the top of the .ino file.
All you need is an ESP WEMOS with, better still, an antenna ; e.g. this kit:
https://fr.aliexpress.com/item/1005005933528007.html
(warning: an ESP32 won't do)
and a BME280 sensor :
https://fr.aliexpress.com/item/1005006995581799.html
(a 5 V phone charger could replace the on-board power supply)
Watch out for the small zero-ohm resistor which must be turned if you're using the external antenna ! (a simple bridge will probably work just as well)
No wiring diagram (laziness!)... pins are defined in the code
Beware of the choice in line 149 of the code.
Because in reality the network is not “extended” but the ESP creates a second access point ; the choice is to differentiate it or not... both solutions have their advantages/disadvantages !
Any idea of the result?
On the wifi side: (I've chosen a single name for both APs) :
The ESP will be able to provide about 4Mb. Enough for HD1080 video streaming (... but only one! )
BME280 side: your web page :
(in the code, take care to compensate for sensor calibration if necessary)
///////////////////////////////////////// ENJOY ///////////////////////////////////////////
ESP8266_WifiExtender_and_BME280_AF.ino (8,1 Ko)
html.h (9,1 Ko)