» Electronics » Arduino »Lighting control using a conventional IR remote control

Lighting control using a conventional IR remote control


In this material, we present an interesting idea that will allow you to control the lighting using any IR remote control.

We recommend starting with watching the author’s video



We will need:
- two rechargeable batteries;
- boxes for batteries;
- fee Arduino Nano;
- IR receiver VS1838B;
- relays for Arduino;
- any convenient box.

First you need to assemble all the components together according to the following scheme.

We conveniently place everything in a box, which we will use as a case.

Let's move on to programming. Open the sketch or code, the link to which will be at the end of the article, connect the Arduino Nano board to the computer.

On the computer, click the serial port monitor button. A popup should open.

Next, we present the remote control to the IR receiver and press the button that we want to use to turn on the relay, that is, the lighting. Then we click on the button that we want to use to disconnect.

In the pop-up window, the codes of the on and off buttons should appear. The author of the idea, they are on the first and third line.

We find the line “If the Enable button is pressed” in the sketch and in parentheses we change the code to the one we received.

Similarly, insert the code for the power button.

We insert the batteries, turn on and check the operation of the relay.

If everything works as intended, then you can safely connect a light bulb to the relay and enjoy the result.

7.7
1
7

Add a comment

    • smilesmilesxaxaokdontknowyahoonea
      bossscratchfoolyesyes-yesaggressivesecret
      sorrydancedance2dance3pardonhelpdrinks
      stopfriendsgoodgoodgoodwhistleswoontongue
      smokeclappingcraydeclarederisivedon-t_mentiondownload
      heatirefullaugh1mdameetingmoskingnegative
      not_ipopcornpunishreadscarescaressearch
      tauntthank_youthisto_clueumnikacuteagree
      badbeeeblack_eyeblum3blushboastboredom
      censoredpleasantrysecret2threatenvictoryyusun_bespectacled
      shokrespektlolprevedwelcomekrutoyya_za
      ya_dobryihelperne_huliganne_othodifludbanclose

We advise you to read:

Hand it for the smartphone ...