logo elektroda
logo elektroda
X
logo elektroda

Smokehouse analogue thermometer for PT1000, LM358 and ESP8266

sznickers 960 46
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • ADVERTISEMENT
  • #33 21776200
    sznickers
    Level 11  
    Thank you, gentlemen.
  • #34 21777172
    sznickers
    Level 11  
    I'm struggling with DS18B20 sensors. It used to work nicely for me and I have several of them. They are placed in each room and from each to the garage to the ESP with a cable connected by twisted-pair ....FTp cat 6e shielded cable. I've changed the pull-up resistors from 4.7 kOhm down, tried at 5v and 3.3v but it keeps blowing up for me. Maybe the important thing is that in one pair of twisted pair cables - e.g. white and blue are in one screen, maybe the point is that it would be better if each cable in a separate screen ? and separately the +, separately the signal? There are also different lengths of cables. I connect 3 by wire (+,-,signal). I am also combining on different GPIOs.
  • #35 21777349
    fachman1964
    Level 3  
    I am currently working on a weather station and have come to the conclusion that not every pin of the ESP32 WROOM is suitable for 1-wire operation. In my case it works well on pin 4. I can send you a piece of code that works.
  • ADVERTISEMENT
  • #37 21777397
    sznickers
    Level 11  
    Thank you.
    It is precisely those end pins that are a good topic. The ones that can be supposedly only as input:
    GPIO 34
    GPIO 35
    GPIO 36
    GPIO 39
    So, I ask myself, what to use them for? I tried connecting 1-wire to them-it doesn't work. SDA SCL doesn't either. Well, unless just as a button.
    I'm currently operating on ESP32 WTH01 boards-with RJ45 socket-cable connectivity, so a lot of pins are out of my menu. I have a PCF8574 (i2C) input/output extension module - I've connected relays to it and it works beautifully, but it's rather impossible to connect a ds180b20 to this module, for example.

    ESP32 WT32 pin diagram with function labels and connected component notes

    Added after 1 [minute]:

    >>21777349 you are probably talking about Arduino, I am working on ESP-Easy for now, but arduino I will also learn because there you can connect several 7 segment displays to one board. I have some of the sensors also on GPIO-4.
  • ADVERTISEMENT
  • #38 21777470
    tos18
    Level 42  
    Put pulse counters on input only

    also be interested in DS2482-100, DS2482-800, DS2484
  • #39 21777531
    sznickers
    Level 11  
    >>21777470
    Thanks-good idea with the pulse counter on those pins-that's what I'll do.
    As for that 1-Wire bridge.
    Looks cool this one, has 8 ds18b20 inputs and still addressable, so there are lots of options
    https://botland.com.pl/konwertery-pozostale/2...emma-qtqwiic-adafruit-6027-5904422388065.html
    but it is expensive - so cheaper to buy a new board and enlarge the switch to rjs.
    This one from ali:
    https://pl.aliexpress.com/item/10050097088722...ect_id%3A1005009708872261%7C_p_origin_prod%3A
    a bit different and I don't know how many sensors can be connected here, maybe just one.
    I am still considering the option of temperature sensors over i2c (for rooms)
    LM75A-expensive.
    He has addressing, so you could have a lot of them, the only question is how such a sensor will behave on a long shielded cable. But I read that in such a situation you have to give SDA and SDL in separate shields.
    https://pl.aliexpress.com/item/32659878517.ht...9e94eee824aa32a2f0433b9&afSmartRedirect=y

    Added after 16 [minutes]:

    tos18 wrote:
    Pulse counters give on input only

    Works :) thanks
    Interface fragment showing pulse counter setup for GPIO-35

    Added after 51 [minutes]:

    Such a curiosity.
    Same YF-B6 pulse counters, same type, same diameter, Hall ch. based flow meters.
    Connected in series - one after the other - i.e. same flows.
    Each individually connected on a different ESP board on the same pin 35.
    Both have the same settings, yet one calculation result has to be divided by 36 and the other 46 to indicate the same thing - so they are in series.
  • #40 21778739
    sznickers
    Level 11  
    As for the 1-wire and ds18b20 - several sensors on long cables to individual rooms, I see the cause in the power supply - not sure what the issue is is the power supply. It runs fine on +3.3v and a 3.3kOhm resistor, on +5v it doesn't want to work.
    i took the +3.3v from the esp, but the question is how many such sensors can be max connected on 3.3 to the board so as not to overload it, so
    question like this:
    If I would take an inverter from 5v to 3.3v and connect it to the 5v power supply of the whole circuit and take this 3.3v directly from this voltage inverter. Will this be good?
  • #41 21778843
    tos18
    Level 42  
    sznickers wrote:
    When it comes to 1-wire and ds18b20 - several sensors on long cables to individual rooms I see the cause in the power supply - not sure what the issue is is the power supply. It works fine on +3.3V and a 3.3kOhm resistor, on +5V it doesn't want to work.

    Maybe capacitors yes 100n each on the power supply at each DS ?
  • #42 21778851
    sznickers
    Level 11  
    I think I've found the likely cause-but thanks for the hint with the capacitors-I'll check that too.
    The cause is probably that I fly one by one with these ds and connect it once at 3.3v once at 5.0v and check where it goes, group it, then connect it together and test.
    For me you have to take a correction-I'm not an electrician or an electronics engineer, it's my hobby. And so I learn by trial and error.
  • #43 21779957
    sznickers
    Level 11  
    I have another proposal. We find a so called troll, and throw it out because it interferes with other ds, we give a new one-Ds18b20. Cheap Chinese, probably the original ds18b20 would work better.

    Added after 1 [minute]:

    >>21778843
    A capacitor will perhaps help with long cables.
  • ADVERTISEMENT
  • #44 21779966
    tos18
    Level 42  
    sznickers wrote:
    I have another conclusion. We find a so called troll, and throw him out because he interferes with other ds, we give a new one-Ds18b20. Cheap china

    Maybe the problem with the Chinese is the duplication of sensor serial numbers (serial number).
  • #45 21779985
    sznickers
    Level 11  
    >>21779966
    this is also an interesting conclusion, but what would the whole long number have to agree on ?
    28-af-7f-3c-00-00-00-3e [DS18B20]
    it's like hitting the lottery
  • #46 21780085
    tos18
    Level 42  
    Check maybe you've hit the jackpot. Maybe it's your troll
  • #47 21780244
    sznickers
    Level 11  
    When one ds18b20 sensor is on one pin it's easier, but when there are several it can get off. And if I have a decisive temperature sensor, e.g. the supply temperature sensor from the fireplace - which switches on my circulating pump-thermostat, when the sensor blew out, the rule didn't work - that's why I'm testing with these analogues - maybe they will be more reliable.
ADVERTISEMENT