This project is based on ChilliChump`s Project.
Its goal is to control a diesel heater to be a frost guard.
The states are as follows:
It is done with an Arduino, DHT22 (temperature sensor) and a 433MHz Transmitter. We sniff and use the protocoll of the original remote control of the heater.
I use the very nice Arduino Extension for VSCode, sadly it is deprecated...
- Basic 433MHz Send & Receive Test
- Sniff Remote Control Codes
- DHT22 integration & test
- Programming
- Design Circuit Board
- Build Circuit Board
- Final Tests
- Integration
You can install the rc-switch library in the library manager of the Arduino IDE.
Then the ReceiveDemo_Advanced and the SendDemo can be found under "Examples" in the IDE. Just load it on two separate Microcontrollers and open the serial monitor on the receiving one with baudrate 9600. You should now see the received data which was sent from the transmitting Microcontroller.
I used the receive demo advanced example script to sniff the remote control codes:
Decimal: 2794262960 (32Bit)
Binary: 10100110100011010001000110110000
Tri-State: not applicable
PulseLength: 257 microseconds
Protocol: 1
Decimal: 2794259720 (32Bit)
Binary: 10100110100011010000010100001000
Tri-State: not applicable
PulseLength: 257 microseconds
Protocol: 1
Decimal: 2794260720 (32Bit)
Binary: 10100110100011010000100011110000
Tri-State: not applicable
PulseLength: 257 microseconds
Protocol: 1
Decimal: 2794259080 (32Bit)
Binary: 10100110100011010000001010001000
Tri-State: not applicable
PulseLength: 256 microseconds
Protocol: 1
The DHT22 can be tested with the Unified Sensor Example.
You can install the DHT sensor library in the library manager. Then the DHT_Unified_Sensor example can be found under "Examples" in the IDE. Just load in on the Microcontroller and open the serial monitor with baudrate 9600. You should see actual temperature and humidity in the serial monitor.
Connect to the Microcontroller via serial Inferface:
- Baudrate: 115200
- No line endings!
Then enter "Admin" and send as plain UTF-8 characters.
You can now do the following:
- Switch On
- Switch Off
- Set Debug Temperature
- Disable Debug
- Trigger Error
- Print actual Settings
- Reset State to Off
- Trigger serial Report
Every other key ends Admin Mode. You can reenter it by typing "Admin" again.