GithubHelp home page GithubHelp logo

bharadwaj-r / wifi-cloud-tv-remote Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 202 KB

Controlling a TV over the cloud with NodeMCU and Arduino Cloud

License: MIT License

C++ 75.96% C 24.04%
arduino-cloud arduino-ide diy iot-applications ir-transmitter nodemcu nodemcu-esp8266 simple-project tv-control

wifi-cloud-tv-remote's Introduction

WiFi Cloud TV Remote

Controlling a TV over the cloud with NodeMCU and Arduino Cloud


Overview :
The main aim behind this project is to create a TV remote by using a NodeMCU and associating it with Arduino Cloud. The main advantage of this project is that it can work on any Android/iOS/PC device, which has active internet connection, overcoming the necessity to have an IR blaster built-in into the smartphone.

Required Components :

  • NodeMCU - ESP8266
  • IR Receiver - TSOP1738
  • IR LED Transmitter
  • Resistor - 1k Ohm
  • Breadboard

Software Requirements :

  • Arduino IDE
  • Arduino Cloud account

Decoding the Hex Codes for each button :
Use the code here and upload it to an Arduino/NodeMCU. Check the rpin in the code and connect the IR reciever's signal pin to the correct GPIO pin. Once uploaded, bring close any TV remote control and press any button. The IR Protocol used along with the IR Hex Code is displayed. Save them for the future use. The codes I obtained are stored here.

IR Transmitter Demo Code :
Use the code here to check if the IR transmitter LED is working. Make sure you replace the send function with that of the protocol you decoded earlier (in my case, it is sendNECRaw()). If you get an Unknown type, then please refer to this article to transmit code using sendRaw() function. Upload the code to an Arduino/NodeMCU to verify if the IR Transmitter LED is working properly. Do note that you cannot see the IR LED bursts with naked eye, but can check it with any phone camera. For each transmission, a message is also displayed in the Serial Monitor in Arduino IDE.

Note that a similar version of the code is available in Arduino IDE by default in the Examples section under IRremote. You will need to make small changes to the code in order to make it work properly.

Setting up the Arduino Cloud platform :
Follow the instructions in this repository to create a device, associate it with a thing and create a dashboard. Check the below examples for creating the dashboard for both Mobile and PC layouts.

Dashboard Setup for PC :


Dashboard Setup for Mobiles :


Uploading the code to NodeMCU :
Follow this article for uploading the code. In case of any trouble uploading the code to NodeMCU, visit the Troubleshoot Section for any possible solution for the porblem.

Versions :


Motivation Behind this project :

After learning the basics of IR transmission using different IR Protocols, I wanted to integrate it with Arduino Cloud to create a remote application. This removes a major issue where in a smartphone needs a built-in IR blaster in order to control the TV. Also, those smartphone apps work only with popular TV brands and generally don't work with STB or any other cable providers. Therefore, to solve the issue from the core, removing the dependency on IR blaster was the main solution. An ternative for this is NodeMCU with an IR Transmitter connected to the cloud. Every smartphone now has a stable internet connection and hence, replacing the IR transmission with transmission over the cloud is a viable idea.

If you like this project, please star the repository and visit my profile for many other such small projects based on IoT, Cloud and other Embedded Development boards.

wifi-cloud-tv-remote's People

Contributors

bharadwaj-r avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.