Δευτέρα, 5 Σεπτεμβρίου 2011

INFRARED REMOTE CONTROL CODE HACKING FOR HVAC DEVICES

In a modern house , most electronic devices are controlled by an infrared remote. Hacking the infrared codes gives you endless possibilities:  Using a micro controller you can built an universal HVAC controller which can map the desired indoor temperatures and control all devices like air conditioning units, ceiling fans , heaters etc. You can use input from:
  • outdoor/indoor  humidity temperature and solar radiation sensors
  • input and return water temperatures from heater 
  • solar collector and/or electric boiler temperatures
  • time of day - season rtc
  • solar radiation sensors
  • movement sensors (to control temp of an occupied room)
  • internet weather forecast data
  • rain sensors
to control
  • oil boiler set point
  • air conditioning unit temperature and/or functions  (eg dehydrating)
  • ceiling fan speed to equalize  temperature in a room 
  • fan coil fan speed control
To be more specific you can control oil boiler set point by using a common servomotor connected mechanically to the water temperature knob,  infrared diodes to transmit commands to airconditioning units and ceiling  fans. I personally use three one-wire (or LM35DZ) sensors (one at the floor level, one at 1m height (bed level)  and one at 2.8m (ceiling level) to control ceiling fan speed  in conjunction with all other HVAC devices to maintain a steady comfort temperature and to not waste energy by over heating ceiling in winter or over freezing floor in summer. Using movement sensors the system knows when a person is in the room and acts accordingly - even at night when the person is sleeping.

Below are some hacked infrared codes from my HVAC devices:

HITACHI Inverter Air conditioning

At first a pulse of 9,2ms (of 38khz)  must be send followed by a 4.48ms pause
"1" (pause ) duration is 1620us, "0" (pause)  is 600us and signal (38KHZ) duration is 580us.
After last bit we have a pause of 40.6ms. Each pulsetrain  must be send once.
All pulses must be send. I have to separate them in command and common parts in order to use a micro controller for temperature control.

Power on (All Auto -mode auto, fan speed auto, set temp auto)
{1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,0,0,1,1,0,0} 
{0,1,0,0,1,0,0,1,1,0,1,1,0,1,1,0,1,1,0,0,1,0,0,0,0,0,1,1,0,1,1,1,0,0,1,0,0,0,0,0,1,1,0,1}  {1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0} {1,0,1,0,0,0,0,1,0,1,0,1,1,0,0,0,1,1,1,1,0,1,1,1,0,0,0,0}
{0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1}

Power off :Repeat all the above and  change red sequence with this:
{1,0,1,0,0,0,0,1,0,1,0,1,1,0,0,0,0,1,1,1,0,1,1,1,1,0,0,0}

Westinghouse ceiling fan infrared control hack (UC7130T)
 
We have no header or "wake-up" pulse here. Logic "0" is a pause of 840us followed by a pulse of 420us of 38KHZ and logic "1" is a pause of 430us  followed by a pulse of 820us of 38KHZ. After last bit we must wait for 15ms to send same sequence again. Each sequence  must be send at least 3 times. Infrared sender must have a powerful output (multiple leds and/or high voltage (9V) on collector - darlington driver).

{0,1,0,0,0,0,0,0,0,0,0,1,0}   FAN OFF
{0,1,0,0,0,0,0,0,0,1,0,0,0}   FAN SPEED 1 (MIN)
{0,1,0,0,0,0,0,0,1,0,0,0,0}   FAN SPEED 2 (MED)
{0,1,0,0,0,0,0,1,0,0,0,0,0}   FAN SPEED 3 (MAX)
{0,1,0,0,0,0,0,0,0,0,0,0,1}   LIGHT ON/OFF
{0,1,0,0,0,0,0,0,0,0,1,0,0}   LIGHT SLEEP




Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου