Hello my friends. Yes, thermostat again but it has real time clock and wireless communication with Ferroli Combi. It has two parts. One of (master one) measuring temperature, show the temp with LCD and send the temp info to Combi with Arduino Pro Mini. Sure, you can use Arduino Uno, as a matter of size. The other one (the slave), receives the temp info, processes it according to the code and time data.
But first things first, let's create the master one.
Step 1: Measure the temperature of the room.It's easy with DHT11, you know that. DHT11 can measure the ambient temperature with 1 degree of precision. It is okay for me. Easily connect your DHT11 to Arduino Pro Mini. You can use LM35, etc.
So we know the temperature. Code is easy:
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Hum% : ");
lcd.print((float)DHT11.humidity);
lcd.setCursor(0, 1);
lcd.print("Temp: ");
lcd.print((float)DHT11.temperature)
delay (3000);
I include the code for showing DHT11 working status to us. The library I use for DHT11 has a (chk) command for checking of the DHT11 measuring status. If the value of chk is "zero", its okay. Otherwise check your connections or DHT11 Sensor.
int chk = DHT11.read(DHT11PIN)
lcd.print(chk)
Finally, connect to nRF24 to your pro mini. This code for the writing the communicate status check result to LCD.
boolean gonderimDurumu = verici.send(FAST);
if (gonderimDurumu == true)
lcd.print("Send..");
else
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Cant Send...");
}
Step 3: Creating Slave oneConnect other nRF24, relay, Bluetooth module and DTS1302 Real time Clock module to Arduino Uno. Relay must connect to your Combi 's room thermostat bridge. It is usually bridged with a jumper wire.
There is a important tip for the setting up the clock module for the first time.
Important !: Use this line only once then deactive it. Otherwise it will always back to the your first clock setting time with every reset or energy interruption.
myRTC.setDS1302Time(00, 48, 23, 04, 26, 01, 2017); // Seconds, minutes, hours, weekday, day, mounth, year (Monday is the first weekday)
This is mine, you can create yourself:
You can easily force this program by Bluetooth (BT) commands with your smartphone etc. Do to this I use "Bluetooth Terminal" app. When you send "a" command by BT, combi will in "Forced Mode" and start heating promptly. If you think room temp is okay then send "b" command by BT to combi. It will in your schedule and wait for RF data to decision.
Comments