How to convert Celsius to Fahrenheit in ESP Easy

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
andy
Normal user
Posts: 65
Joined: 26 Jan 2016, 23:07

How to convert Celsius to Fahrenheit in ESP Easy

#1 Post by andy » 26 Jan 2016, 23:48

ESP Easy displays the DS18b20 output in Celsius, but I'd like to change the output to Fahrenheit. I've tried setting the formula to

Code: Select all

%value% * 9 / 5 + 32
but my 24.63° turns into 25.44°. In fact, after wiping out the formula the display changes to 24.06°, so I'm not sure the code had any effect. Also, after I submit the '+' symbol disappears replaced with a couple empty spaces - the formula now shows

Code: Select all

%value% * 9 / 5   32
Clearly I'm doing something wrong, but I can't find any documentation on how these formulas should be formatted. Anybody have some pointers?

User avatar
costo
Normal user
Posts: 504
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: How to convert Celsius to Fahrenheit in ESP Easy

#2 Post by costo » 27 Jan 2016, 00:20

Which version do you use at the moment ?

I remember the '+' symbol disappeared in an older version, think it was the stable version R48.
If so than the solution is to upgrade, preferable to R772.

edit: I mean R72 ofcourse

andy
Normal user
Posts: 65
Joined: 26 Jan 2016, 23:07

Re: How to convert Celsius to Fahrenheit in ESP Easy

#3 Post by andy » 27 Jan 2016, 00:31

Yes, I'm using R048. I'll look for R72 and see how that works - thanks!

Erm - where would I find R72?

User avatar
costo
Normal user
Posts: 504
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: How to convert Celsius to Fahrenheit in ESP Easy

#4 Post by costo » 27 Jan 2016, 00:47

here https://github.com/ESP8266nu/ you find the updated beta-versions.

You can find this information on http://www.esp8266.nu/index.php/Main_Page at the bottom of the page.
R72 seems to be pretty stable and has all the latest features.

andy
Normal user
Posts: 65
Joined: 26 Jan 2016, 23:07

Re: How to convert Celsius to Fahrenheit in ESP Easy

#5 Post by andy » 27 Jan 2016, 23:03

Okay, I've got R072 loaded and running. Still not seeing any change in temperature readings.

Here is the settings I have:
Device: Temperature - DS18b20
Name:
IDX / Var: 120
1st GPIO: GPIO-14
Device Nr: 1 ROM: 28-3b-3e-2a-7-0-0-3c
Send Data: checked
Formula Temperature: Doesn't seem to matter what is in here
Value Name 1: Temperature

The readings change when I warm or cool the thermometer, but I cannot seem to get the formula to have any effect.

Also, what is the significance of IDX / Var? It appears to want some number in there, but I can't tell what it means.

andy
Normal user
Posts: 65
Joined: 26 Jan 2016, 23:07

Re: How to convert Celsius to Fahrenheit in ESP Easy

#6 Post by andy » 27 Jan 2016, 23:52

Ha! Figured it out.

[HINT] DO NOT USE SPACES IN YOUR FORMULA [/HINT]

%value%*9/5+32

Works a treat!

MarkIngle
Normal user
Posts: 47
Joined: 10 Feb 2016, 05:06

Re: How to convert Celsius to Fahrenheit in ESP Easy

#7 Post by MarkIngle » 03 Mar 2016, 04:33

Would you mind sharing some details on your setup? I have a ESP12E Dev board and I am trying to do the same thing with a temp sensor. Currently I am not getting any readings from the sensor...only zeros! One thing that is strange is that I don't have any options for ROM..the drop down list is zero. Also I am using a temp sensor that came with an Arduino kit...I am assuming it will work. Any help would be much appreciated.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: How to convert Celsius to Fahrenheit in ESP Easy

#8 Post by tozett » 03 Mar 2016, 08:22

i had the same observation where the ROM stayed empty.
i was missing a pullup resistor.

for the 1wire setup the wiki states:
It only needs a 4k7 resistor connected between VCC and the GPIO datapin.
see (with images):
http://www.esp8266.nu/index.php/TemperatureSensor

----
BUT i think, the original topic seemed SOLVED.... ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests