Skip to content

Input Device: IR Remote

marco-117 edited this page Feb 10, 2021 · 5 revisions

Now you can controll your TonUINO with an IR Remote Control! How cool is that! Okay we have the year 2021, and an IR Remote control would be cool in the 00s, now you need an "app" to get someone frome behind the stove....

Anyways, this feature allows you to use every IR remote control you want or have in youre houshold. You just need an IR reciver. I recoment the TSOP38238. This one for example:

Tsop38238 -BerryBase

And if you need a remote control, this one fits very good:

Remote Control - BerryBase

You can find this remote control all over the internet togheter with an IR reciver, but these recivers are not very good.

Wirering

The wirering is simple, you need 2.5-5.5V, GND and a digital Input. Per default i use digital input 6.

TSOP38238

Software integration

I use the IRRemote Libary in the Version 3.0.1. You have to install this Libary and Version in your Arduino IDE!

In the Configuratiion.h you can find some #defines for the aktivation and configuration of the IR Remote control.

#define IRREMOTE //activates the function

#define IRREMOTE_PIN 6 //pin used for the ir receiver output

Learning of IR Codes

How do you teach your TonUINO wich button of your remote control does what?

  1. go into the admin menu via the three button combo or RFID Tag
  2. Navigat to the ir remote learning menu
  3. start the learning
  4. choose wich kind of control do you want to link to a button
  5. the TonUINO asks you to push the button
  6. if the button was succesfully recognize, the TonUINO tells you so and stores the ir code
  7. the button is now usable, even in the current learning
  8. if you are finish with the learning, push the pause button for long or if you have programmed it, press the ir or analog button for shut down. You will get beck to a higher menu or directly to the admin menu.
  9. if you dont want to do anything else in the admin menu, leav it with a long push on the pause or a programmed shut down button.
  10. after leaving the admin menu the ir codes are stored in the EEPROM and will be useable after reset

Note: You dont have to link all commands with an button on your ir control, you also can link only one.