element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Upcycle IoT Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Upcycle IoT Design Challenge
  • More
  • Cancel
Upcycle IoT Design Challenge
Blog Using (obsolete) home appliances to optimize energy consumption - blog 3, instrumentation
  • Blog
  • Forum
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Upcycle IoT Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: JWx
  • Date Created: 31 Jan 2024 4:29 PM Date Created
  • Views 1542 views
  • Likes 8 likes
  • Comments 16 comments
  • Upcycle IoT Design Challenge
Related
Recommended

Using (obsolete) home appliances to optimize energy consumption - blog 3, instrumentation

JWx
JWx
31 Jan 2024

Intro

In the previous blog post we have researched the method of controlling household refrigerator operations, but doing it blindly/open-loop can lead to sub-optimal results. Thus, some measurement method has to be prepared. To not make big modifications in the fridge construction (which can lead to decrease of thermal insulation, water vapor condensation and other problems), I have decided to use wireless temperature sensor. 

Sensor

Use of an outdoor weather station sensor was inspired by the story I have read sometimes in the past, when somebody was troubleshooting his fridge by measuring temperature inside using such a sensor. That choice is not an intuitive one - after all, what is the most recognizable characteristic of the fridge? That people can stick magnets to it's walls. Which means that they are made of ferromagnetic metal. That probably shields RF signal. But that's theory - let's see if correct.

To not create controversies with other fridge users, my outdoor sensor was put into food-certified plastic bag and then placed in the freezer (first) before being moved to the uppermost shelf, near the termostat. Below is the photo of it - it is a second-hand Oregon RTGN318 working on 433 MHz frequency band, using proprietary (but well-researched) communication protocol. 

Oregon outdoor sensor

Data gathering station

To obtain data from the sensor, small SBC (OrangePI Zero) with RTL-SDR dongle was used

OrangePi

It has some issues - mainly: limited memory (256MB) and a CPU with the tendency to running hot (especially inside a case and with daughterboard installed), but as it already serves as a print server, it is most convenient hardware for quick tests.

On this SBC, typical software stack was configured:

  • rtl_433 to control SDR module and decode messages,
  • rtl to influxdb relay to forward messages to the database,
  • influxdb as a database (in fact, this time influxdb had to be started on different machine due to memory shortage caused by growing dataset)
  • grafana as visualization tool

Rtl_433 influxdb relay was copied from the example (/usr/share/doc/rtl-433/examples/rtl_433_influxdb_relay.py) and then modified to include correct database connection parameters.

Then, rtl_433 and data relay were executed in different screen sessions (it is a temporary installation after all) using following commands:

python3 ./rtl_433_influxdb_relay.py

while `/bin/true` ; do date; rtl_433  -R 12 -F syslog:127.0.0.1:1433 ; sleep 10; done

As we see, rtl_433 is loading only one protocol parser (-R 12) and executes in the loop - version from official system repository was crashing every few days.

By default, relay script is loading data into the "rtl433" database, each sensor type into different measurement (table equivalent).

Data can then be selected using sql-like query language:

select * from "Oregon-RTGN318" where time > now() - 1d;

[...]

2024-01-31T16:48:31.532522Z 1 1 50 181 -4.1
2024-01-31T16:49:24.322516Z 1 1 50 181 -4.1
2024-01-31T16:49:24.424488Z 1 1 50 181 -4.1
2024-01-31T16:51:10.22942Z 1 1 50 181 -3.9
2024-01-31T16:51:10.292678Z 1 1 50 181 -3.9
2024-01-31T16:52:03.184808Z 1 1 50 181 -3.7
2024-01-31T16:52:03.313972Z 1 1 50 181 -3.7

or displayed in visualization tool like Grafana

image

As we can see, temperature curve is quite interesting - our mechanical thermostat seems to have hysteresis window of about 10°C

  • Sign in to reply
  • JWx
    JWx over 2 years ago in reply to JWx

    but - if one thinks about it - thermostat in the car also has several degrees of hysteresis. Mine opens at about 85-87°C and closes near 78°C. And my second sensor seems to have very long integration window - it is installed for about an hour and still reports 13°C (slowly decreasing from 20+°C) - to be seen what it will report tomorrow...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • JWx
    JWx over 2 years ago in reply to beacon_dave

    not likely I think - when I move knob from "4" to "6" it goes down  to -8°C or even -9°C

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 2 years ago in reply to JWx

    Could it be that the thermostat is always on and the thermal cut-out on the compressor is tripping in and out ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • JWx
    JWx over 2 years ago in reply to JWx

    I am currently writing sensor data analysis - but maybe I should delay it to verify by a second sensor...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • JWx
    JWx over 2 years ago in reply to DAB

    I was surprised too - but the sensor seems ok, was produced by the reputable company (if it isn't counterfeit) and should be rated for this temperature range (-20°C can be encountered in the winter). But maybe I should install second one just in case - thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube