Menu

DS1621 Library and demo

Peter
2017-10-22
2017-10-23
  • Peter

    Peter - 2017-10-22

    I've made a library for the DS1621 TWI (I2C) temperature sensor/thermostat from Maxim (Dallas).

    Just putting this here for now, demo video to follow once the camera battery has recharged!

     

    Last edit: Peter 2017-10-22
  • viscomjim

    viscomjim - 2017-10-22

    Nice one Peter! Will have to get a couple to play with now. Thanks for the effort, we can't have enough libraries, thats for sure!

     
    • Peter

      Peter - 2017-10-22

      I have the PDIP package and they are quite slow to respond, especially when cooling down from high temperatures. I think the smaller packages (e.g. SOIC) may be better in this respect, although for typical household temperatures a PDIP is probably OK.

       
  • Peter

    Peter - 2017-10-22

    Basic demonstration showing temperature reading:

     
  • Peter

    Peter - 2017-10-23

    And a video showing the thermostat/alarm mode.

    Note that if you connect an LED directly between pin 3 and GND, the current flow heats up the chip significantly (around 10 degrees in my case). I've added a resistor in this example, but in a real world application it is probably better to connect to a buffer/transistor/PIC pin to minimise the amount of current flowing.

     
  • stan cartwright

    stan cartwright - 2017-10-23

    The lib must have taken a lot of work. Great job. I couldn't have done that.

     

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.