logo elektroda
logo elektroda
X
logo elektroda

D1 Mini: Connecting 4 DS18B20 Sensors for Browser Temperature Monitoring

maroo78 1041 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18216041
    maroo78
    Level 9  
    Welcome.

    I have acquired a D1 mini and I would like to first connect 4 DS18B20 sensors to the board - the indications and be able to read them in any browser at home. Here 3 options I want to try: simply be an app, cloud that is peeking in the browser, version with Blynk and version with Supla.

    I have a problem - I've never had any contact with this kind of device, I don't know programming languages (my contact with programming languages is high school and before that C64 ;D) I've connected, I've managed to upload a program with flashing diode - and that's it. I have ESP_A85FBD visible but it doesn't work, is it from this contraption? I installed ESP WiFi and ESPWebServer, uploaded the program to control the relay and now it's silent, when I reset it blinks once.

    I can't find simple instructions: board states, steps necessary for WiFi to work - described for a total layman. From what I can find on the web it is either a fragment of some problem or a thrown phrase and immediately another topic. Do I have to program the module differently each time for Supel, Blynk? Is it possible to program the DS18B20 sensor board in such a way that I can take readings via Blynk as well as Supla or Domoticz without reprogramming?

    I must admit that I feel defeated - I have chaos because I have read, surfed the net and rather messed up my head. So, a simple tutorial in steps of what would work and how. Ultimately I want to put a server on an RPi down the line, there I would like to integrate WiFi, 433MHz hardware and control the whole thing remotely.

    Greetings
    Marcin
  • ADVERTISEMENT
  • #2 18216111
    Korteks
    Level 10  
    maroo78 wrote:
    Tomorrow I want to set up a server on the RPi, there I would like to integrate WiFi, 433MHz hardware and control the whole thing remotely.
    .
    If the end goal is to have an RPi then do on it and not an ESP or other Arduino, because that's different to RPi. In RPi you have a system (Linux/Debian) in Arduino nothing, in ESP RTOS. It's a completely different philosophy of writing programs than on Linux.
  • ADVERTISEMENT
  • #3 18216791
    khoam
    Level 42  
    maroo78 wrote:
    I have a problem - I've never been exposed to this kind of contraption, I don't know programming languages (my contact with programming languages is high school and before that C64 ;D)
    .
    Then maybe start with the Python language. There is suitable firmware available for the ESP8266 (Wemos D1 mini), and there is also very good Python support on the RPI. Over time you might switch gradually to C++.
    https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html

    maroo78 wrote:
    Is it possible to program the DS18B20 sensor board in such a way that I can take readings via Blynk as well as Supla or Domoticz without reprogramming?
    .
    Each of the systems you mentioned requires dedicated firmware on the ESP8266. In theory you could write such a "universal" firmware yourself (in C/C++), but this is already quite difficult.

    Korteks aka LChucki aka o_Tadeusz aka R-MIK wrote:
    In RPi you have a system (Linux/Debian) in Arduino nothing, in ESP RTOS.
    .
    There are several Arduino HALs based on RTOS, while the Arduino HAL in the ESP8266 is not based on RTOS.
  • ADVERTISEMENT
  • #4 18256944
    maroo78
    Level 9  
    Ok, it's been a while though I haven't had much opportunity to try and act. But here's the thing - I've uploaded the WiFi standalone, then played around with Blynk and got a temperature reading from the sensor, I can also use the widget to control the brightness of the LED on the board, I've already understood more or less what and how, and I've already set the direction - Blynk + RPi in the near future to bypass the limitations of Blynk, and I don't need to operate from the network, plus something like HTTP Request with shortcuts to control defined elements also from outside Blynk. I'm planning to monitor the heating + control a few light points and the hardest part - roller shutters. And here I see a wall for the time being as I have the roller shutters controlled with a variable code in the Keeloq system, will it be possible to find and program something that the roller shutters will accept? Difficult. I also have a Broadlink for 433MHz control, sockets, lights, soon the entrance gate. Will it be possible to compose a D1 with a Boadlink? Both in total operate on the same WiFi, the question is whether D1 can be programmed to trigger specific Broadlink actions. Why yes? Well, for the ESP I would have to load 433MHz transmitters and receivers and I have the Broadlink - so it would be a shame not to use it, especially as it has sufficient radio for my whole property - no problem with coverage.
  • ADVERTISEMENT
  • #5 18257079
    khoam
    Level 42  
    maroo78 wrote:
    I also have a Broadlink for 433MHz control,
    .
    What is the specific model?

    maroo78 wrote:
    question if it is possible to program the D1 to trigger specific Broadlink actions.
    .
    Theoretically yes ;) .
  • #6 18260817
    maroo78
    Level 9  
    The model is a Bradlink RM Pro+. Theoretically a lot is possible, but how to practically embrace the subject? Has anyone already combined like this? I would be spared the particular problem of 433MHz transmitters, range, ease of programming further devices. After all, RM Plugin Lite allows you to read the details of the codes so if such a combination doesn't work, I'll use 2 solutions in parallel.
ADVERTISEMENT