hi,
i want to read temparature values i.e. from DS18B20-Sensors (or similar) via WLAN
to a central point .
with cable and arduino namo that works fine in a one floor residance.
but in a house with more than one floor, one has to install many cables,
and i dont know, how long cables may be for getting acceptable results
via OneWire-technology..
so i'm looking for a bluetooth or wlan-solution.
dont want to mount ' big boxes ' with ardiuno in that at the end points..
@UKHeliBob makes a good suggestion - ESP32 modules are low cost and have plenty of functionality
if the house has local WiFi coverage connect ESP32 modules too it
if not you may be able to connect multiple ESP32 modules using ESP-WiFi_MESH - can depend on distances between nodes, thickness of walls etc etc
I have code for a D1 Mini that reads a DS18B20 and makes it available over WiFi. I have code for other D1 Minis to read it.
Code is written in 2 versions, one uses UDP, the other TCP. I'm happy to share it but you will find other stuff going on in there, you will have to edit to suit what you want.
so i'll test option of srnet..
at least i dont need pressure and humidity really..
and this does not need much volume at the measuring point
..guess could work with 3V-battey like CR2032 ?
It is important to remember that the sensor is primarily designed to be used for measuring the internal chip temperature and not the ambient temperature.
the DS18B20 as suggested by @PerryBebbington is worth considering
easy to interface and works OK with the ESP32
not sure how long a lead may b used but it is possible a single ESP32 could monitor several
// ESP32 DS18B20 one-wire temperature sensors - read the temperature
// connect red 3v black GND yellow (signal) pin 2
/********************************************************************/
// First we include the libraries
#include <OneWire.h>
#include <DallasTemperature.h>
/********************************************************************/
// Data wire is plugged into pin 23 on the ESP32
#define ONE_WIRE_BUS 23
/********************************************************************/
// Setup a oneWire instance to communicate with any OneWire devices
// (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);
/********************************************************************/
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
/********************************************************************/
void setup(void) {
// start serial port
Serial.begin(115200);
Serial.println("Dallas Temperature IC Control Library Demo");
// Start up the library
sensors.begin();
}
void loop(void) {
// call sensors.requestTemperatures() to issue a global temperature
// request to all devices on the bus
/********************************************************************/
Serial.print(" Requesting temperatures...");
sensors.requestTemperatures(); // Send the command to get temperature readings
Serial.println("DONE");
/********************************************************************/
Serial.print("Temperature is: ");
Serial.print(sensors.getTempCByIndex(0)); // Why "byIndex"?
// You can have more than one DS18B20 on the same bus.
// 0 refers to the first IC on the wire
delay(1000);
}
readings
Temperature is: 25.56 Requesting temperatures...DONE
Temperature is: 26.00 Requesting temperatures...DONE
Temperature is: 26.75 Requesting temperatures...DONE
Temperature is: 27.50 Requesting temperatures...DONE
Temperature is: 28.13 Requesting temperatures...DONE
Temperature is: 28.69 Requesting temperatures...DONE
Temperature is: 29.13 Requesting temperatures...DONE
Temperature is: 29.56 Requesting temperatures...DONE
Temperature is: 29.94 Requesting temperatures...DONE
Temperature is: 30.25
thanks horace
meanwhile i have found docs what seem useful for beginning with esp32..
at now i have only some experience with arduino nano + mega..
but the world is great
you can program the ESP32 using the Arduino IDE
have a look at installing-the-esp32-board-in-arduino-ide-windows-instructions
be careful, the ESP32 uses 3.3V logic microcontrollers such as Mega and Nano use 5V logic
interfacing 5V devices to the ESP32 is possible but requires level shifters, potential dividers, etc