Skip to content
forked from d10i/TFA433

Arduino library for TFA Dostmann 30.3208 remote temperature & humidity sensors

Notifications You must be signed in to change notification settings

Spb2005/TFAReceiver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TFA 433 Receiver for Dostmann 30.3208

Use your Arduino to receive temperature and humidity data from the TFA Dostmann 30.3208 remote sensor using a 433 MHz receiver.

This library is based on a fork of d10i's original code.

It may also work with the following devices (not tested):

  • Ambient Weather F007TH Thermo-Hygrometer
  • Ambient Weather F012TH Indoor/Display Thermo-Hygrometer
  • SwitchDoc Labs F016TH

Changes Compared to d10i's Code

  • Interrupt Optimization: The checksum calculation was removed from the interrupt service routine because it triggered the interrupt watchdog timer on ESP32 platforms. Instead, the checksum is now verified inside the loop() using the receiver.checkBuf(); function. Make sure to call this in your loop() function.

  • Cross-Platform Compatibility: Fixed a compilation issue on non-AVR (non-Atmel) platforms:

    invalid conversion from 'volatile byte*' to 'const byte*' [-fpermissive]
    byte calculated = _lfsr_digest8(_buff, _BUFF_SIZE-1, 0x98, 0x3e) ^ 0x64;
    
  • Temperature Unit Selection: Added receiver.setTemperatureUnit(bool useCelsius); You can choose the temperature unit:

    • receiver.setTemperatureUnit(true); → Celsius (default)
    • receiver.setTemperatureUnit(false); → Fahrenheit
    • If not set, Celsius is used by default.

Even Better Version Available 🚀

I have created an improved version of this project which avoids decoding signals inside the ISR.
This makes the code more robust and stable, especially on ESP devices.

👉 Check it out here:
433MHz-TFA-GT-Receiver

Download

GitHub Repository: https://github.com/Spb2005/TFAReceiver

Additional Info

Hardware

Any standard 433 MHz receiver module should work.

Make sure to connect the receiver to an interrupt-capable pin:

  • On Arduino Uno/Nano: use D2 or D3

Example Usage

A working example is available in the examples/ directory. It shows how to receive and read sensor data using this library.

Credits & Inspiration

This library is a modified version of the one by d10i, which itself was inspired by:

About

Arduino library for TFA Dostmann 30.3208 remote temperature & humidity sensors

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%