logo elektroda
logo elektroda
X
logo elektroda

ESP - temperature reading and relay control in the Android app

Arek1984 3789 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 15385658
    Arek1984
    Level 16  
    Hello,
    i want to make some modules on esp - temperature reading and relay control in arduino.
    The whole thing is to be controlled from an android app and possibly via www.

    How is this to be done?
    Directly esp => app inventor? Or esp => broker mqtt => app inventor?

    I'm just starting to play with programming so I want as simple a way of communication as possible.
  • ADVERTISEMENT
  • #2 15540876
    voyo
    Level 12  
    In principle, a single chip with the ESP8266 should suffice for this, take a slightly "larger" module, such as the ESP12 has more GPIO pins, and you can handle both temperature measurement and relaying.
    But if you want to have several, and want to "communicate" - consider rather pinning the modules together over I2C .
    MQTT - cool, but requires an additional server (broker), such a solution will not be immune to WIFI (IP) communication problems.
    You have specified too little data/requirements to help better.
  • ADVERTISEMENT
  • #3 15930835
    Krzychoelektroda
    Level 2  
    Arek1984 wrote:
    Hello,
    i want to make some modules on esp - temperature reading and relay control in arduino.
    The whole thing is to be controlled from an android app and possibly via www.

    How to make it?
    Directly esp => app inventor? Or esp => broker mqtt => app inventor?

    I'm just getting started with programming so I want as simple a way of communicating as possible.


    I have several ESPs and NANOs hooked up to the same BLYNK app on my phone
    There are BLYNK libraries installed in the modules which communicate with the application. Everything is quite simple and intuitive. Communication over WiFi
  • ADVERTISEMENT
  • #4 16031456
    krzbor
    Level 28  
    I recommend a different solution - I have a traditional computer running as a web server with PHP. I only connect to this machine, which is the 'contact box'. The various machines check in periodically to see if there is anything to do. ESPs always work as a client. Example - opening a gate. Once the page is loaded and authorised, I can select 'open gate'. This will write the relevant contents of some file (via PHP). ESP calls periodically (e.g. every 1s) another page (PHP script) and if it learns that there is a command to open the gate, it will send the appropriate signal. This solution has a great advantage - all the key data is on one computer. So you can independently test the temperature and independently switch on the heater. You can programme the heater to switch on at a time (no need for an RTC in the system). You can turn off the heating when there is an active alarm, you can determine the advance of the radiator switching on based on the outside temperature, etc. The simplicity of ESP programming is also a big advantage - he's basically not 'smart', and I have the ease of changing the page in PHP - much more convenient than ESP programming
  • #5 16984060
    Arek1984
    Level 16  
    The matter was dealt with using domoticz.
ADVERTISEMENT