Menu

writing the code for DHT22 temperature-humidity sensor to arduion code

2017-12-24
2017-12-24
  • sami aldoseri

    sami aldoseri - 2017-12-24

    Dear Robert

    First we would like to thank you for your effort on the projects

    and can we get help and support to help to writing the code for DHT22 temperature-humidity sensor to the latest arduion code wiiht ascom driver, and how to connect with ST6128 driver boards

    waiting for suppot

    best regards
    sami

     
  • brownrb

    brownrb - 2017-12-24

    Hi Sami
    I send you PM for this.Basically bad idea. Much cheaper to use DS18B20 probe, just as accurate and less problems. Cannot use humidity, only temperature. Connection to ST6128 is found in firmware file.

    Regards
    Robert

    See zip file for st6128 with DHT22 - only support temperature, ASCOM does NOT support humidity.
    I did not test this code as I do not have ST6128 with SHT22

     

    Last edit: brownrb 2017-12-24
  • brownrb

    brownrb - 2017-12-24

    // Stepper Motor stuff, control pins for ST6128 board
    D3 // wire to DIR+
    D4 // wire to PUL+
    D8 // wire to ENA+

    To set step mode and current, you do this by setting jumpers on the ST6128 board itselef - they cannot be changed in software or by application

    See pdf

     

    Last edit: brownrb 2017-12-24
  • brownrb

    brownrb - 2017-12-24

    By way of explanation:
    The ASCOM standard for focusers does NOT have any support for humidity, only temperature.

     
  • sami aldoseri

    sami aldoseri - 2017-12-24

    Dear Robert

    thank you for the first reply

    can you please guiding me on how to connect the DHT22 with arduion nano !!

    regards

     
  • brownrb

    brownrb - 2017-12-24

    DHT22 has 4 pins,
    Looking at the front, left pin is VDD, next pin is DATA and next pin is NULL and right pin is GND
    Connect VDD to 5V of Arduino
    Connect DATA to D2 of Arduino
    Connect GND to GND of Arduino

     
    • sami aldoseri

      sami aldoseri - 2017-12-24

      Dear Robert

      Thank you for your help

      Can please tell me do I need to pullup the 4.7K - 10K resistor, that Comes with from the data pin to VCC.

       
  • brownrb

    brownrb - 2017-12-24

    Pullup resistor is NOT needed with DHT22

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.