logo elektroda
logo elektroda
X
logo elektroda

ESP8266 and DS18B20 - no temperature reading in LUA, different PRINT results

xangel 4008 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 15175485
    xangel
    Level 19  
    Hello
    As a beginner with the ESP8266 module, I have a question for those familiar with the LUA programming language:
    I attach a screen and the effect of its display in the console and my question: why does the PRINT instruction return only one number once and 8 once? Some schoolboy error, but I would like to know.
    Second thing: I attach the listing of the program (some from the net) and on the right in the screen shot you can see the effects of it. Why doesn't the program read the temperature from the Dallas? I have tried 18S20 and 18B20. The program reads the address, calculates the CRC but does not read the temperature....

    ESP8266 and DS18B20 - no temperature reading in LUA, different PRINT results
    Code: C / C++
    Log in, to see the code


    I use the module as pictured:
    ESP8266 and DS18B20 - no temperature reading in LUA, different PRINT results

    And also a quick question: which SYNTAX on Elektroda to use for pasting LUA code?

    Greetings
  • ADVERTISEMENT
  • #2 15175870
    piterek-23
    Level 33  
    HERE you have the code for the ESP8266-01 + DS18B20 system creator nettemp maybe you can pick something up.
    xangel wrote:
    And a quick question: which SYNTAX on Elektroda to use for pasting LUA code?

    "SYNTAX select" -> "Lua"? ;)
  • ADVERTISEMENT
  • #3 15176696
    xangel
    Level 19  
    I changed the code to syntax, but there is no LUA there, so I chose C.
    Maybe there is another more appropriate one?

    The code you linked to I've tried, in general I've tried probably all the code I've found on the web and none of it works for me and I got a bit confused, so I decided to write.
    Surely it's not a connection issue, as the addr reads....
  • ADVERTISEMENT
  • #4 16083198
    _JAG_
    Level 15  
    I see you have a resistor missing at DS18b20
  • #5 16083201
    piterek-23
    Level 33  
    _JAG_ wrote:
    I see you have a resistor missing at DS18b20

    I think the author of the topic over the last year has given it a go....
    You dug up a topic from exactly a year ago :D
ADVERTISEMENT