Multiple sensors with NodeMCU ESP8266 | ESP Wi-Fi | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Multiple sensors with NodeMCU ESP8266
No permission to create posts
June 24, 2018
7:34 am
Avatar
panoss
New Member
Members
Forum Posts: 4
Member Since:
June 24, 2018
sp_UserOfflineSmall Offline

I 've built this example and works fine.
Now I want to have multiple sensors (I use NTC thermistors as sensors) and so I 've built this, but I must modify the software.

The difference between these 2 circuits is:
In the first example, the thermistor is the bottom resistor of the voltage divider.
In the second example, the thermistor is the top resistor of the voltage divider.

The part of the code that I have to modify is:

float logR = log( 10000 * ( 1024 / readValue - 1 )); // Separate the calculation for simplicity and debugging

celsiusTemperature = 1 / ( aConst + bConst * logR + cConst * pow(logR,3) ) - 273.15; // Calculate the temperature in Celsius
fahrenheitTemperature = celsiusTemperature * 9 / 5 + 32;

Any help is welcome.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

anis, 43994554AKS, suda, marisol, qkpham, SANGAMNATH B

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457