Announcement

Collapse
No announcement yet.

Hardware needed for a home thermostat

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hardware needed for a home thermostat

    Hello everyone.
    I would like design a home thermostat using an gen4-uLCD-32DCT-CLB display module.
    It must include three ambient sensors like temperature, humidity and CO2, one WiFi module and it should be able to communicate with another device by a custom protocol (N2Open) via RS-485.
    Is it necessary to add a host microcontroller to the design or can Diablo16 processor do for me?
    What would be the first step to start the project?

    Below attached I show you the project approach
    Thank you very much.
    Attached Files

  • #2
    Hi,

    Sorry for the delay in response.

    Assuming that your sensors are giving out analog 0-3.3v outputs and you'll be communicating with the WiFi Module and the RS-485 module serially, the gen4-uLCD-32DCT-CLB should be able to handle all of this.

    However, to ensure that all these devices are getting enough power, you might need a separate power supply for some of them.

    Additionally, I'm not really familiar with N2Open protocol, however, these links might help you on RS-485 Communication.

    4D Makers - DMX Controller
    https://www.4dmakers.net/projects/de...dmx-controller

    10 Volt RS-485 to Display
    https://forum.4dsystems.com.au/node/50569

    These application notes might help you get started.

    ViSi Getting Started - First Project for Picaso and Diablo16
    https://www.4dsystems.com.au/appnote/4D-AN-00119/

    Custom RS-485 Communication Protocol
    https://www.4dsystems.com.au/appnote/4D-AN-00148/

    Designer or ViSi Analogue Input
    https://www.4dsystems.com.au/appnote/4D-AN-00052/

    I hope this was helpful.

    Best regards,
    Michael

    Comment


    • #3
      Hi Michael.
      Thanks for the reply.
      I think I'll finally choose to use a host, since the treatment of analog inputs + rs485 + wifi + project Visi Genie for the Diablo16 seems too complicated for me.
      However, I have a small problem. Should I need a host with at least two serial lines? One to communicate with the Display and another for my device. Can I use the spi bus to communicate my host with the display? This way I could use an ATMega328P (Arduino Uno) with only one serial line.
      Thanks for your help.

      Comment


      • #4
        Hi,

        Sorry for the delay in response.

        The specification of your host would depend on how you would like to manage the traffic between your devices. As you may know, the gen4-uLCD-32DCT is capable of supporting three Hardware serial lines.

        You may find more information about this on the display's Datasheet.

        gen4-uLCD-32D Series
        https://www.4dsystems.com.au/product/gen4_uLCD_32D/

        Can I use the spi bus to communicate my host with the display?
        Yes, however, please note that the SPI on a Diablo16 is master mode only.

        These forum threads might help.

        SPI connection
        https://forum.4dsystems.com.au/node/63594

        SSI Interface
        https://forum.4dsystems.com.au/node/63930

        Best regards,
        Michael

        Comment

        Working...
        X