Introduction: ESP8266 TV Remote for Homekit
Hi, in this instructable, i want to show my latest project.
ESP8266-03 TV remote board.
Can control with Homekit, or any TCP socket client.
Powered from 5V with micro USB connector.
Step 1: Step 1: the PCB and the Circuit.
The circuit is very simple.
A basic voltage regulator circuit powering the ESP8266-03.
There is only 1 pinout used for the ir led control (GPIO13).
Used a XC6206 voltage regulator, maybe you can use AMS1117 or same with higher output current.
The SMD IR led have surprisingly good range.
Circuit printed to special PCB paper. (better than regular copy papers)
Step 2: Step 2: ESP8266 Code
ESP8266:
For the ESP programming, im used Arduino IDE with sparkfun ESP8266 library.
ESP ir library found on github:
https://github.com/markszabo/IRremoteESP8266
In the code, you need to add your net ssid and password on the proper place (see in the pic)
And need to change the ir value too for your tv type.
In this tutorial im not show again how to get you tv remote ir codes, here is my old tutorial link for that (from 3:13):
Homekit:
There is a previous homekit tutorail too, so im not repeat myself, there is the link:
https://www.instructables.com/id/Raspberry-Pi-2-Hom...
Im created a new accessory for the tv remote (just copy of a light accessory) and added reference to call the tvonoff.py file. This file control the tv. (see the pic).
There is the link for the files (homekit accessory js, homekit py, ESP arduino code):
https://drive.google.com/file/d/0B6GR9Hj5Ut61Z0dYW...
Upload the .ino file to your ESP with arduino IDE
Copy the .py file to the homekit HAP-NodeJS folder
Copy the .js file to the homekit HAP/NodeJS/accessoires folder.
Don't forget to change the ESP ip address in the python file.
Check the youtube video for testing.
Thanks: Imre
5 Discussions
Question 2 years ago on Introduction
I was wondering if you would be willing to sell me one.?
3 years ago
Why do you need the Raspberry Pi? Can't you just implement a HomeKit Server on the ESP8266 directly?
Reply 2 years ago
Actually the answer is "Yes, but...". See this project https://github.com/HomeACcessoryKid/ESP8266-HomeKit . However, this is not within the Arduino framework so you will not be able to use that Arduino IR library.
Reply 3 years ago
I presume you already found your answer, but in case you didnt, the answer is "NO".
4 years ago
This is awesome- thanks for sharing. Do you have a parts list for the build? Where can I get the PCB etching file?