Introduction: Arduino Controlled Air-pulsed Heating System

Introduction

Our central air-pulsed heating system (Multicalor Sphere 30:http://multicalor.be/wp-content/uploads/2015/03/IH... is circulating the air in all the rooms of our house while the thermostat is only in the living room. The non-living rooms are temperature controlled via the amount of air-flow going to each room. Such system has low flexibility. Recently, we started to use our hall as a secondary living room, mainly for watching a large screen Sony TV in the evening. To obtain an independent controllable temperature in the hall, I designed an air-flow mouth with a stepper motor driven valve under control of a second thermostat linked to an arduino Uno board. The mechanics are rather simple and I am proud to say that I managed the programming all on my own.

A critical element was the noise coming from the electricity net via the power supply (an old IBM laptop power supply). I had to add several ferrite cores (https://www.amazon.com/Wellcn-Pcs-Ferrite-Cores-Di... to remove high-frequency electronic noise from the net over the DC power wire entering the system. A second system was the control of the valve position with an attached magnet and a magnet sensor.

Step 1: Components Used

Arduino Uno (https://www.sparkfun.com/products/11021).

Ferrite core 7 mm (https://www.amazon.com/Wellcn-Pcs-Ferrite-Cores-Diameter-Black/dp/B01KLVUQ38/ref=sr_1_20_sspa?ie=UTF8&qid=1521382044&sr=8-20-spons&keywords=ferrite+magnets&psc=1).

Step-down DC converter (Ebay: LM2596HV LM2596S DC-DC Step Down CC-CV Adjustable Power Supply Module).

Stepper motor (https://www.sparkfun.com/products/13656).

Stepper motor driver (https://www.sparkfun.com/products/12859).

Two valve attached magnets were from an old hard drive.

Valve magnet sensor was bought from Gotron (https://www.gotron.be/magneetcontact-0-5a-at-100v-...

Honeywell thermostat: Round non-programmable model (https://yourhome.honeywell.com/en/products/thermostat/round-non-programmable-thermostat).

Two metal bars with screws 6 mm.

Two U-form metal bars to connect the system to the air duct.

Wooden board of 5 mm thickness.

Step 2: Assembly of the Valve and Electronics

A wooden board was cut to the size of the opening of the air duct outflow (rectangular in this case) and connected to the stepper motor with an aluminium bar. Furthermore, two magnets were added to the wooden board as shown in the picture above. The connection of the aluminium bar to the stepper is with a piece of PVC tube. There are no heavy forces around in the system and the speed of closing and opening is easily controlled in the code by setting the step time.

The set-up of the electronics, the stepper motor and Power supply is shown in the second picture. The components are listed at the right side of the photo. The stepper motor has 4 wires to connect to the driver, the magnet sensor has two wires which are connected to A2. The thermostat has two wires which are connected to 5V and analogue A0.

The electronic heart is in the plastic box (regular electricity shop). It contains the arduino board, the power supply converter (19 V for the stepper and 5 V for the arduino board, right region) and the stepper driver (left under).

The LED is directly on the board pin 13.

Step 3: The Arduino Code and Testing

The code is rather simple while only two variables are used: val for the themperature and val2 for the valve position. In this way the valve position is always known and even if the current falls away, the program will restore itself. The only problem not foreseen would be when the current falls away during the stepping of the motor. As the movement always goes for 90 degrees, the valve would probably continue to stay half open. After a full Winter of operation, this has not happened to me. The stepper allows manual repositioning after the current has been cut off.

It is possible to play with the delay times. My experience is that the circling time should not be too short. Reading of the temperature every 5 minutes is more than sufficient.

The lower analogue value reading is not zero, nor unique. It is around 700. The high value reading (closed circuit is much more stable and it is much better to use this value.

//Stepper Motor on digital 8 en 9, 8 is dirpin, 9 is steppin
//Thermostate with LED on when Tset larger than Tenvironment

//careful with polarity of LED, long leg on 13, when no resistor is used //magnet sensor only at 1 side of air duct (upper side) int ledPin = 13;

//13 has resistor in line, led is connected to pin 13 int dirPin = 8; int stepPin = 9; int inputPin = 0;

//sensorpin on analogue 0 int inputPin2 = 2;

//magnetsensor on analoog 2 int valveOpen;

//situation of valve, 0 = open, 1 = closed

void setup(){

Serial.begin(9600);//open serial port, to communicate with temp sensor

pinMode(ledPin,OUTPUT);//pin 13 is an output voor de led

pinMode(dirPin,OUTPUT);//direction of stepper

pinMode(stepPin,OUTPUT);//stepper pin of motor

pinMode(inputPin,INPUT);//sensorpin from thermost on analoge A0

pinMode(inputPin,INPUT);//sensorpin magnet on A2

digitalWrite(8,LOW);// set dirpin op low

digitalWrite(9,LOW);}

void loop(){ int val2=analogRead(inputPin2);//read magnet sensor

delay(50);

int val=analogRead(inputPin);//read temperature

Serial.println(val); Serial.println(val2);//print

delay(50);

if (val > 1020 && val2 > 1020)//check if the input is higher than 800 (infact it reads 1023 if circuit is closed), {digitalWrite(ledPin,HIGH);//LED on means heating is on

int i;

for (i = 0; i <= 799; i++)//open valve with loop1

{ digitalWrite(stepPin, LOW);

digitalWrite(stepPin, HIGH); delay(3);}//opens the valve

delay(180000);}//time with open valve

else { if (val > 1020 && val2 < 1020 )

digitalWrite(ledPin,HIGH); delay (180000); }//

if (val < 1020 && val2 < 1020) { digitalWrite(ledPin,LOW);

int i;

for (i = 0; i <= 799; i++)//open valve with loop1

{ digitalWrite(stepPin, LOW);

digitalWrite(stepPin, HIGH);

delay(3); }//close the valve

delay(180000); }

else { if (val < 1020 && val2 > 1020)

{digitalWrite(ledPin,LOW);

delay(180000); } }}