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": "100000010010100110000000011001000000111­01",
      "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": "100000010010110110000000011001000001001­01",
      "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": "100000010010101100000000011001000001000­00",
      "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": "100000010010101000000000011001000000111­10",
      "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": "100000010010100110000000011001001000111­10",
      "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": "100000010010100100000000011001001000111­01",
      "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": "100000010010100000000000011001001000110­11",
      "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": "100000010010011100000000011001001000110­01",
      "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": "100000010010011000000000011001001000101­11",
      "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