Giter Club home page Giter Club logo

project-air-urc's Introduction

Arduino IR Universal Remote Controller

Goal: to store, manually or by recording, and to send NEC codes through IR module

Setup

Devices

In my case I've used some low-cost component that you can easily find on the web. I bought them on AliExpress

Obviously you are not forced to use my same configuration, many other guides suggest to use single diodes as Tx and Rx instead modules.

Connections

Arduino-IR Connections

Code

Let's refer to the project you can find in projects/

Initialization of the recevier:

IRrecv irrecv(RECV_PIN)

Initialization of the sender:

IRsend irsend

Store the decoded results:

decode_results results

Optionaly we can store more signals, according to each button of a remote control for example, and then we can send different signal pushing different buttons.

Get the value of the decoded signal

results.value [unsigned long]

Get the number of bits of the decoded signal

results.bit [int]

Send the received signal using value and number of bits

irsend.sendNEC(code_value,code_bits); It is better to use NEC codes to be sure We can store the number of bit of the recevied signal into a variable and then we can use it to send the signal

Considerations

Send function

IRsend.sendRC5(unsigned long data, int n_bits)

Decode funtion

IRrecv.decode(&decode_results results)

Applications

  • Remote Controller

Improvements

  • Store more decoded signals
  • Assign a button to a signal
  • Integration of display
  • (...)

[email protected]

project-air-urc's People

Contributors

dmat93 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.