Free 186 More Best Homemade Tools eBook:  
New: 300+ fresh build posts/day from 275 forums → BuildThreads.com

User Tag List

Results 1 to 2 of 2

Thread: Special function thermostat with Arduino Mini Pro + DS1820

Threaded View

  1. #1
    Supporting Member ruxu's Avatar
    Join Date
    May 2017
    Location
    Southern Finland
    Posts
    24
    Thanks
    1
    Thanked 149 Times in 19 Posts

    ruxu's Tools

    Special function thermostat with Arduino Mini Pro + DS1820

    In order to prevent unwanted heating water flow in our combined ground/solar/wood heating I needed a special function thermostat that would activate flow valves at 45 degrees C and keep them activated until the temperature drops below 40 degrees C. The ones I found commercially were very expensive Jumo thermostats - so it was time to dig in the electronic projects junk box.

    Suitable parts I found was,
    - a Arduino Mini Pro microcontroller
    - a Dallas DS1820 temperature sensor
    - a optocoupled 5V SPDT relay
    - a 4,7kohm resistor
    - a used iPhone 5W charger
    - some connectors, wires and cables

    The only thing I had to buy was a DIN rail enclosure. Welleman had a D2MG closure for under 5 euros.

    Click image for larger version. 

Name:	ThermostatInternals.jpg 
Views:	157 
Size:	229.5 KB 
ID:	41978

    Here is a picture of the wired internal parts of the thermostat. The Arduino has the FTDI pins fitted so it is possible to reprogram it even when it is fitted in the enclosure. In order to be able to fit the iPhone charger the wall plug pins had to be shortened and the width of the charger filed from 35mm to 33mm. The relay board is mounted on the charger with double sided tape.

    Click image for larger version. 

Name:	ThermostatEnclosure.jpg 
Views:	152 
Size:	234.5 KB 
ID:	41979

    The Welleman D2MG enclosure.

    Click image for larger version. 

Name:	ThermostatAndSensor.jpg 
Views:	179 
Size:	239.8 KB 
ID:	41980

    The assembled thermostat and sensor cabling.

    And finally here is the Arduino code if someone would need a similar thermostat. My_DS1820Thermostat.ino.txt Remove the .txt extension and put the file in a folder named My_DS1820Thermostat
    Last edited by ruxu; Feb 19, 2022 at 06:00 AM.

  2. The Following 3 Users Say Thank You to ruxu For This Useful Post:

    mwmkravchenko (Feb 27, 2022), nova_robotics (Feb 21, 2022), odd one (Feb 22, 2022)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •