Giter VIP home page Giter VIP logo

ir-mobile's Introduction

Remote Lighthouse

React Native App + Arduino Uno + ESP32 WiFi module

Replace every remote control in your house with a single app. ir-mobile will listen to the infrared codes your remote controls emit and map them to buttons in the app.

Hardware

  • ESP32 WiFi/Bluetooth Module
  • IR Transmitter LEDs
  • IR receiver component
  • rgbLED
  • various resistors/transistors

You will need to install

API

  • GET ESP_IP_ADDRESS/rec: puts hardware in 'listening' mode for IR codes
  • GET ESP_IP_ADDRESS/stop: stops record mode
  • GET ESP_IP_ADDRESS/send?type=CODE_TYPE&value=CODE_VALUE&length=CODE_LENGTH: transmit code via IR
  • GET ESP_IP_ADDRESS/check: returns value of any IR codes heard
  // Successful call to /check returns the following JSON object
  {
      type: oneof 'NEC', 'JVC', 'PANASONIC', 'RC5', 'RC6',
      value: hex string representing an unsigned long,
      length: length of the IR code in bits
  }

Where ESP_IP_ADDRESS is the address of the ESP on your network, for example 192.168.86.99

Wiring

esp32 pinout

Flash bin to ESP-32

  • ./esptool.py --port /dev/tty.SLAB_USBtoUART write_flash --flash_mode qio --flash_size 4MB --flash_freq 80m 0x10000 /Users/danielmerrill/Dev/ir-mobile/ESP32-ir-mobile/ESP32-ir-mobile.ino.esp32.bin
  • Run from the folder where you downloaded esptool above^^ replace the serial port after --port with whatever the esp32 is listed as, and the path for the .bin and you should be good to go
  • Once flashed you can verify it's working by restarting the esp32 with the serial monitor open in Arduino IDE

Other references used:

ir-mobile's People

Contributors

computerjazz avatar

Stargazers

 avatar Ahmad Syarifuddin Randiko avatar

Watchers

 avatar

ir-mobile's Issues

ipv4 vs ipv6

android must use getIPV4Address, ios does not have that method

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.