Category Archives: Developer

Arduino IR Samsung AR7000M A/C

I know… I’ve already one project to control my AC by my thermostat, but Samsung smart is not so open protocol and the work is going slowly but summer is already here!!!!

So I’ve already setup my thermostat to control my AC by IR, but let’s proceed by steps and create the hardware to communicate to turn on and off the AC.

BOM

First of all take:

Connect the IR led to the transistor to the Pin 3 of the Arduino following that scheme.

image

Here the 2N2222 PinOut:

image

Now connect the switch

image

The switch is temporary and will be substituted by the Ecobee contacts but for testing purposes is rather easy to implement and proof it’s working.

Code

Upload next code to make it working:

Test your new controller if drive correctly your AC.

Next step is to connect it to the Ecobee thermostat.
See you at next post.

Home Bridge & Samsung AC

!!! Still not completed!!!

Install Node.JS

sudo apt-get update sudo apt-get upgrade
node —version
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs

Install NPM

npm install npm -g
sudo npm install update
sudo npm -g install node-expat

Install Samsung Air Conditioner

git clone https://github.com/CloCkWeRX/node-samsung-airconditioner.git

edit package.json and change xml2json version:

 , "xml2json"     : "0.9.1"
sudo npm install node-samsung-airconditioner

Result:

/home/pi

└─┬ samsung-airconditioner@0.2.2
└─┬ xml2json@0.9.1
├── hoek@2.16.3
├─┬ joi@6.10.1
│ ├── isemail@1.2.0
│ ├── moment@2.14.1
│ └── topo@1.1.0
└─┬ node-expat@2.3.15
└── nan@2.4.0

After that you need to wait I writ the homebridge-samsung plugin…