You are reading a single comment by @AkosLukacs and its replies. Click here to read the full conversation.
  • memory is ok. but rh and temp -1. why?..

     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v04 (c) 2019 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >
    { "err": true, "checksumError": true,
      "raw": "10000001001010011000000001100100000011101",
      "temp": -1, "rh": -1 }
    { "free": 1981, "usage": 319, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.969 }
    start: Date: Thu Jan 1 1970 00:00:15 GMT+0000 end: Date: Thu Jan 1 1970 00:00:21 GMT+0000 elapsed: 5565.295
    _____
    { "err": true, "checksumError": true,
      "raw": "10000001001011011000000001100100000100101",
      "temp": -1, "rh": -1 }
    { "free": 1981, "usage": 319, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.952 }
    start: Date: Thu Jan 1 1970 00:00:25 GMT+0000 end: Date: Thu Jan 1 1970 00:00:31 GMT+0000 elapsed: 5564.528
    _____
    { "err": true, "checksumError": true,
      "raw": "10000001001010110000000001100100000100000",
      "temp": -1, "rh": -1 }
    { "free": 1981, "usage": 319, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.949 }
    start: Date: Thu Jan 1 1970 00:00:35 GMT+0000 end: Date: Thu Jan 1 1970 00:00:41 GMT+0000 elapsed: 5549.423
    _____
    { "err": true, "checksumError": true,
      "raw": "10000001001010100000000001100100000011110",
      "temp": -1, "rh": -1 }
    { "free": 1981, "usage": 319, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.953 }
    start: Date: Thu Jan 1 1970 00:00:45 GMT+0000 end: Date: Thu Jan 1 1970 00:00:51 GMT+0000 elapsed: 5564.674
    _____
    { "err": true, "checksumError": true,
      "raw": "10000001001010011000000001100100100011110",
      "temp": -1, "rh": -1 }
    { "free": 1972, "usage": 328, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.967 }
    start: Date: Thu Jan 1 1970 00:00:55 GMT+0000 end: Date: Thu Jan 1 1970 00:01:01 GMT+0000 elapsed: 5570.317
    _____
    { "err": true, "checksumError": true,
      "raw": "10000001001010010000000001100100100011101",
      "temp": -1, "rh": -1 }
    { "free": 1972, "usage": 328, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.97 }
    start: Date: Thu Jan 1 1970 00:01:05 GMT+0000 end: Date: Thu Jan 1 1970 00:01:11 GMT+0000 elapsed: 5568.358
    _____
    { "err": true, "checksumError": true,
      "raw": "10000001001010000000000001100100100011011",
      "temp": -1, "rh": -1 }
    { "free": 1972, "usage": 328, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.964 }
    start: Date: Thu Jan 1 1970 00:01:15 GMT+0000 end: Date: Thu Jan 1 1970 00:01:21 GMT+0000 elapsed: 5565.552
    _____
    { "err": true, "checksumError": true,
      "raw": "10000001001001110000000001100100100011001",
      "temp": -1, "rh": -1 }
    { "free": 1972, "usage": 328, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.963 }
    start: Date: Thu Jan 1 1970 00:01:25 GMT+0000 end: Date: Thu Jan 1 1970 00:01:31 GMT+0000 elapsed: 5576.903
    _____
    { "err": true, "checksumError": true,
      "raw": "10000001001001100000000001100100100010111",
      "temp": -1, "rh": -1 }
    { "free": 1972, "usage": 328, "total": 2300, "history": 126,
      "gc": 0, "gctime": 1.963 }
    start: Date: Thu Jan 1 1970 00:01:35 GMT+0000 end: Date: Thu Jan 1 1970 00:01:41 GMT+0000 elapsed: 5576.975
    _____
    
  • Do you have a pullup resistor (4k7 - 10k) between the data and VCC?
    IIRC without an external resistor, it didn't work properly with the ESP32, I think it's internal pullup resistor is not strong enough.

About

Avatar for AkosLukacs @AkosLukacs started