Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Refrigeration Datta Logger (A Non MySensors Project)

Refrigeration Datta Logger (A Non MySensors Project)

Scheduled Pinned Locked Moved My Project
dataloggertemperaturecurrenthumiditysd card
15 Posts 6 Posters 9.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RJ_MakeR Offline
    RJ_MakeR Offline
    RJ_Make
    Hero Member
    wrote on last edited by RJ_Make
    #1

    So I've been wanting to build a Refrigeration Temp / Current logger for some time now, and I finally got around to it (spured by a post on another board). So while this is not a MySensors project, I thought it may help those who are thinking about doing something similar.

    Just about all the information to build a temp / current logger is out there on the Internets so there's nothing terribly innovative about it.

    Features:

    • Logs the following to an Adafruit SD Card Shield
      3 DHT's (Temperature and Humidity)
      1 Equipment Current
      2 Light levels
    • Uses a settings.ini file to choose logging options.
    • Uses a fairly robust error function.
    • 6.5 Second log rate (this is the fastest due to the DHT's)
    • Can log data indefinitely (Limited only by the size SD Card).
    • Core design can be used on both 125vac and 220vac equipment. (Internal Power Supply Allows for this)

    BOM:

    Core Items:

    1. UNO R3 ATmega328P
    2. Adafruit Assembled Data Logging shield for Arduino
    3. DHT22 AM2302 Digital Temperature and Humidity Sensor Module
    4. Non-invasive AC Sensor Split Core Current Transformer SCT-013-000 0-100A
    5. 1/4W Metal Film Resistors Assorted kit 75 Values
    6. Kit 10value 100pcs 4X7mm Electrolytic Capacitor Assortment
    7. 10PCS Double Side Prototype PCB Tinned Universal Breadboard
    8. 20pcs, PushButton SPST Momentary Normal OFF N/O Push Switch Red Cap Push to Make
    9. 20PCS Photo Light Sensitive Resistor Photoresistor Optoresistor 5mm GL5539
    10. Some type of case. I used a old Grasslin DTMV40-M Multi Voltage Defrost Timer case since we use them at work, but you can use any appropriately sized case.
    11. Plastic Project Box Electronic Junction Case
    12. Extension Cord
    13. Romex Connectors
    14. CONTROL WIRE 26AWG. 4 CONDUCTORS. This is VERY important and I wound up going through several different wire types and sizes. You must not use anything larger then 26AWG, and It must be stranded. 26AWG stranded telephone cable should work very well, because it's somewhat flat and will help when passing it through the refrigerator door seals.
    15. If not building your own.This Power Supply @ 9v should work

    Optionals:
    3) 10pcs PCB Panel Mount 4 Pins 3.5mm Female Socket Stereo Headphone Jack
    3) 10 PCS 4-pole 3.5mm Stereo MIC Audio Male Female Plug Jack Soldering

    If you build you own power supply:

    1. 20 Pieces ELECTROLYTIC CAPACITORS 4.7uf 400v
    2. Transformer
    3. Fuse (1A)
    4. MOV (471KD05)
    5. Tvs

    BUILDING IT UP:

    Contributing Web Sites

    https://learn.adafruit.com/adafruit-data-logger-shield

    http://www.homautomation.org/2013/09/17/current-monitoring-with-non-invasive-sensor-and-arduino/

    You can build it up on a bread board if you like, but I'm just going to start off with my actual build.

    Here's my breadboard mess.

    20141019_153251_Android.jpg

    PSU:

    I choose to build my own power supply, but you can simply use a 'wall wart'

    Here is the base PSU, without the caps, MOV and Tvs (I forgot to take pics of the final)

    Base PSU.jpg

    Distribution Board:

    The distribution board handles the current sensing, LED and Power circuits.

    20141024_190038_Android.jpg

    20141024_190100_Android.jpg

    Here is the diagram for the Current Sensing circuit section:

    CT Diagram.jpg

    Here is a diagram for the LED's circuit section:

    LED Diagram.png

    Sensor Connect Board:

    This is an option section, (You can hard wire the sensors but you will need to create a connection break of some type so you can pass the wire through the refrigerator door gasket)

    Here is a picture of the board.

    20141023_183338_Android.jpg

    Assembly:

    Case with PSU Install

    20141023_183329_Android.jpg

    Case with Sensor Connect Board Installed

    20141023_185442_Android.jpg

    First attempt with drilling the holes.

    20141023_185517_Android.jpg

    Second attempt, unfortunately after the board was glued in place. But with a conical grinder and a Dremel it worked perfectly

    20141102_205009.jpg

    Case with Distribution Board

    20141024_191009_Android.jpg

    Case with Arduino and Logging Shield Installed

    20141024_193107_Android.jpg

    20141024_193208_Android.jpg

    Case with CT, ON/OFF switch, Start Switch and LED's

    20141102_204943.jpg

    20141102_204951.jpg

    Sensors:

    20141030_180246.jpg

    20141102_204858.jpg

    Testing:

    20141102_211537.jpg

    20141102_211523.jpg

    20141102_211516.jpg

    Case with some outfitted with some 'Bling'

    20141108_115231.jpg

    20141108_115146.jpg

    Hopefully I didn't miss anything...

    Next Up.... High Temp (Oven) logger..... Well maybe next up, maybe not... ;-)

    RJ_Make

    1 Reply Last reply
    2
    • RJ_MakeR Offline
      RJ_MakeR Offline
      RJ_Make
      Hero Member
      wrote on last edited by RJ_Make
      #2

      Here is the file deposit

      https://github.com/ServiceXp/RefrigerationDataLogger

      It uses the latest DHT22 libraries and a modified version of Steve Marple's IniFile libraries

      Here is the sketch:
      https://codebender.cc/sketch:60303

      RJ_Make

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #3

        wow! nice

        RJ_MakeR 1 Reply Last reply
        0
        • hekH hek

          wow! nice

          RJ_MakeR Offline
          RJ_MakeR Offline
          RJ_Make
          Hero Member
          wrote on last edited by
          #4

          @hek

          Thank You.

          RJ_Make

          1 Reply Last reply
          0
          • bjornhallbergB Offline
            bjornhallbergB Offline
            bjornhallberg
            Hero Member
            wrote on last edited by
            #5

            Great initiative! I've always wanted to do something similar (with MySensors preferably) but I've always stumbled on the mechanical issues, like getting the wire inside the cabinets. Especially in freezers letting even a little damp/hot air in would create icing. But AWG26 may be thin enough to get around this? Thought about drilling through the cabinets, but I'd really have to have a schematic so I'd not hit anything vital. Another option would be to run a cable where each of the thermostats are, but you'd have to temporarily remove the thermostat wire and that just seems like and awful lot of work if you need to do four times or so (when you have two freezers / fridges that are split 50/50).

            RJ_MakeR 1 Reply Last reply
            0
            • bjornhallbergB bjornhallberg

              Great initiative! I've always wanted to do something similar (with MySensors preferably) but I've always stumbled on the mechanical issues, like getting the wire inside the cabinets. Especially in freezers letting even a little damp/hot air in would create icing. But AWG26 may be thin enough to get around this? Thought about drilling through the cabinets, but I'd really have to have a schematic so I'd not hit anything vital. Another option would be to run a cable where each of the thermostats are, but you'd have to temporarily remove the thermostat wire and that just seems like and awful lot of work if you need to do four times or so (when you have two freezers / fridges that are split 50/50).

              RJ_MakeR Offline
              RJ_MakeR Offline
              RJ_Make
              Hero Member
              wrote on last edited by
              #6

              Thanks @bjornhallberg, In my testing on my freezer, I found, through a bit of trial an error, that stranded 26awg wire with the outer jacket removed gave me very good results. I ran the logger for 3 days with no noticeable problem.

              Keep in mind this logger will be used by us as a diagnostic tool, (I work for an HA HVAC/R company) so it's use is temporary. If you are interested in a permanent solution look at these pics:

              20141109_081556.jpg

              The black line above is my MySensors sensor. (you can see it in the project pics above) It's a thin esata cable which allowed me to go behind the gasket.

              20141109_081616.jpg

              20141109_081653.jpg

              Using a Dremel, I was able easily cut a slice out of the door liner.

              20141109_081704.jpg

              Now of course this would only be acceptable by the wife if it's in the utility room... :-)

              Depending on the make and model of your unit, I might be able to get the refrigeration and wiring layout location for you...

              RJ_Make

              YveauxY 1 Reply Last reply
              0
              • RJ_MakeR RJ_Make

                Thanks @bjornhallberg, In my testing on my freezer, I found, through a bit of trial an error, that stranded 26awg wire with the outer jacket removed gave me very good results. I ran the logger for 3 days with no noticeable problem.

                Keep in mind this logger will be used by us as a diagnostic tool, (I work for an HA HVAC/R company) so it's use is temporary. If you are interested in a permanent solution look at these pics:

                20141109_081556.jpg

                The black line above is my MySensors sensor. (you can see it in the project pics above) It's a thin esata cable which allowed me to go behind the gasket.

                20141109_081616.jpg

                20141109_081653.jpg

                Using a Dremel, I was able easily cut a slice out of the door liner.

                20141109_081704.jpg

                Now of course this would only be acceptable by the wife if it's in the utility room... :-)

                Depending on the make and model of your unit, I might be able to get the refrigeration and wiring layout location for you...

                YveauxY Offline
                YveauxY Offline
                Yveaux
                Mod
                wrote on last edited by
                #7

                @ServiceXp said:

                only be acceptable by the wife if it's in the utility room...

                You can read my mind! That's exactly what I thought when looking at your pictures! ;-)

                http://yveaux.blogspot.nl

                RJ_MakeR 1 Reply Last reply
                0
                • YveauxY Yveaux

                  @ServiceXp said:

                  only be acceptable by the wife if it's in the utility room...

                  You can read my mind! That's exactly what I thought when looking at your pictures! ;-)

                  RJ_MakeR Offline
                  RJ_MakeR Offline
                  RJ_Make
                  Hero Member
                  wrote on last edited by
                  #8

                  @Yveaux LOL Indeed!

                  RJ_Make

                  1 Reply Last reply
                  0
                  • RJ_MakeR Offline
                    RJ_MakeR Offline
                    RJ_Make
                    Hero Member
                    wrote on last edited by RJ_Make
                    #9

                    Some Graph Examples: (I'm not very good when it comes to good graphs so....) :-)

                    2014-11-09_13-26-06.png

                    Taking a Closer look at the temp spike.
                    Closer Look at Spike.png

                    RJ_Make

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      NotYetRated
                      wrote on last edited by
                      #10

                      This is quite fantastic, thanks for the write up!I would be interested in the current monitoring tied in with MySensors though, at least in my current state that would come before refrigeration data.

                      I have been looking for a good whole home current monitoring solution.

                      1 Reply Last reply
                      0
                      • Z Offline
                        Z Offline
                        Zeph
                        Hero Member
                        wrote on last edited by
                        #11

                        Is the light sensor for (indirectly) detecting when the door is open?

                        (Or maybe it's to answer the age old question - does the light REALLY go off when you close the door :-) )

                        RJ_MakeR 1 Reply Last reply
                        0
                        • Z Offline
                          Z Offline
                          Zeph
                          Hero Member
                          wrote on last edited by Zeph
                          #12

                          Thanks for sharing this!

                          Oddly, what this inspires in me is the desire to monitor ice chests when camping, which have much more variation and uncertainty than our home refrigerator.

                          Like - block ice lasts longer than crushed, but how much does that affect the temperature curves as it melts? How much colder is the bottom of the chest than the top? How do our various ice chests compare? How much does cold meltwater help or harm the cooling? How much effect does opening the lid have? (Eg: for given conditions, perhaps each time of opening the top for 30 seconds moves the temp and melt curve along as much as 20 minutes of sealed operation - or what?).

                          I'm thinking two internal temps (maybe humidity) and light; one or two external temps (eg: top and side or bottom) and maybe light (to detect sunlight). It would need to be battery powered (externally), but wouldn't need to run for so long. For at least the bottom inside measurements, would probably need a waterproof sealed 18B20 probe. Would need entry wires sturdy enough to handle friction from a lid sliding reather than pressing shut, or an acceptable through-wall technique (which allows the electronics to be detached and is sufficiently sealed.

                          1 Reply Last reply
                          0
                          • Z Zeph

                            Is the light sensor for (indirectly) detecting when the door is open?

                            (Or maybe it's to answer the age old question - does the light REALLY go off when you close the door :-) )

                            RJ_MakeR Offline
                            RJ_MakeR Offline
                            RJ_Make
                            Hero Member
                            wrote on last edited by
                            #13

                            @Zeph Yes,

                            RJ_Make

                            1 Reply Last reply
                            0
                            • RJ_MakeR Offline
                              RJ_MakeR Offline
                              RJ_Make
                              Hero Member
                              wrote on last edited by
                              #14

                              Well, After some more testing I found a hardware bug in my particular build. I started testing the unit in a cold environment (having the controller in lower temps (~50F)) and discovered that the 4 pin audio jack connections fail. Not exactly sure why, but I'll post back my 'solution" once I figure it out myself..... (:P)

                              RJ_Make

                              1 Reply Last reply
                              0
                              • RJ_MakeR Offline
                                RJ_MakeR Offline
                                RJ_Make
                                Hero Member
                                wrote on last edited by
                                #15

                                Well I changed the connection type for the sensors due to the above issue.

                                20141202_183743.jpg

                                Tested and again after 2.5 days, it locked out on a sensor com error. So after some thought, I realized, (not sure why I didn't before) the system is not going to be 100% bullet proof, so instead of moving to a hard fault, I recoded the error handling section of the sketch to attempt to handle the occasional hiccups in reading the sensors. Pushed new sketch to Github and am testing now.

                                It will interesting to see just how many times the readings fail.

                                I shall see.....

                                RJ_Make

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                21

                                Online

                                11.7k

                                Users

                                11.2k

                                Topics

                                113.1k

                                Posts


                                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • MySensors
                                • OpenHardware.io
                                • Categories
                                • Recent
                                • Tags
                                • Popular