Home Automation with Power Platform #1: Raspberry PI to Remote Controller

Published Aug 16 2020 05:00 PM 3,315 Views
Microsoft

A few months ago, I had a chance to do live streaming with Cheese (@seojeeee) about this topic – Part 1 and Part 2 in Korean. I know it's warm and humid in the summer season in Korea. Therefore, I implemented this feature for my air-conditioning system at home, as well as other home appliances that work with remote controllers. However, as I have very little knowledge of Raspberry PI and other hardware, it was really challenging. This is the post to note to future self and others who might be interested in this topic.

 

  • Part 1: Turning Raspberry PI into Remote Controller
  • Part 2: Turning on/off Home Appliances Using Raspberry PI, Serverless and Power Platform

 

The sample codes used in this post can be found at this GitHub repository.

 

Check Hardware and Software Specs

 

It might be only me, but I found that Raspberry PI and its extension modules like IR sensor are very version sensitive. I Google'd many relevant articles on the Internet, but they are mostly outdated – not valid information any longer. Of course, this post will also have a high chance to be obsolete. Therefore, to avoid visitors from being disappointed in the future, it would be a great idea that I specify which hardware and software spec I used.

 

 

LIRC Module Installation

 

The very first step is to install LIRC after setting up the Raspberry PI OS. Enter the command below to install LIRC.

 

sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install lirc -y

 

Your Raspberry PI OS has now been up-to-date and got the LIRC module installed.

 

 

LIRC Module Configuration

 

Let's configure the LIRC module to send and receive the IR signal.

 

Bootloader Configuration

 

By updating the bootloader file, when Raspberry PI starts the LIRC module starts at the same time. Open the bootloader file:

 

sudo nano /boot/config.txt

 

Uncomment the following lines and correct the pin number. The default values before being uncommented were 17 for gpio-ir and 18 for gpio-ir-tx. But it should be swapped (line #5-6).

 

Of course, it might be working without swapping the pin numbers. But it wasn't my case at all. I had to change them to each other.

 

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

dtoverlay=gpio-ir,gpio_pin=18
dtoverlay=gpio-ir-tx,gpio_pin=17

 

LIRC Module Hardware Configuration

 

Let's configure the LIRC module hardware. Open the file below:

 

sudo nano /etc/lirc/hardware.conf

 

Then enter the following:

 

LIRCD_ARGS="--uinput --listen"
LOAD_MODULES=true
DRIVER="default"
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

 

LIRC Module Options Configuration

 

Update the LIRC module options. Open the file with the command:

 

sudo nano /etc/lirc/lirc_options.conf

 

Change both driver and device values (line #3-4).

 

#driver         = devinput
#device         = auto
driver          = default
device          = /dev/lirc0

 

Once you've completed by now, reboot Raspberry PI to recognise the updated bootloader.

 

sudo reboot

Send this command to check the LIRC module working or not.

 

sudo /etc/init.d/lircd status

 

 

It's now working!

 

Remote Controller Registration

 

This is the most important part of all. I have to register the remote controller I'm going to use.

 

Use Remote Controller Database for Registration

 

The easiest and promising way to register the remote controller is to visit Remote Controller Database website, search the remote controller and download it. For example, as long as you know the remote controller model name, it can be found on the database. I just searched up any LG air-conditioner.

 

 

If you can find your remote controller details, download it and copy it to the designated location.

 

sudo cp ~/.lircd.conf /etc/lirc/lircd.conf.d/.lircd.conf

 

Manual Registration for Remote Controller

 

Not every remote controller has been registered to this database. If you can't find yours, you should create it by yourself. Winia makes my air-conditioning system, but it doesn't exist on the database. I've got a local branded TV which doesn't exist on the database either. I had to create them. To create the configuration file, Raspberry PI should be double-checked whether the IR sensor on it captures the remote controller signal or not. First of all, stop the LIRC service.

 

sudo /etc/init.d/lircd stop

 

 

Run the following command to wait for the incoming IR signals.

 

sudo mode2 -m -d /dev/lirc0

 

If you're unlucky, you'll get the following error message. Yeah, it's me.

 

 

It's because both the IR sender and receiver are active. At this time, we only need the receiver, which is for capturing the IR signals. Disable the sender part. Open the bootloader.

 

sudo nano /boot/config.txt

 

We used to have both gpio-ir and gpio-ir-tx activated. As we don't need the sender part, for now, update the file like below (line #5-6).

 

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

dtoverlay=gpio-ir,gpio_pin=18
#dtoverlay=gpio-ir-tx,gpio_pin=17

 

Once completed, reboot Raspberry PI using the command, sudo reboot. Once it's restarted, run the following command so that you can confirm it works.

 

sudo mode2 -m -d /dev/lirc0

 

 

Now it's waiting for your IR signal input. Locate your remote controller close to Raspberry PI and punch some buttons. You'll find out the remote controller buttons are captured.

 

 


We confirm the incoming signals are properly captured. It's time to generate the remote controller file. Enter the following command:

 

sudo irrecord -d /dev/lirc0 --disable-namespace

 

Once running the command above, it gives you instructions to follow. Record your buttons by following the instruction. By the way, the recording application sometimes doesn't work as expected. Yes, I was in the case. I had to use a different approach. Instead of using irrecord, I had to use mode2 to capture the button signals. Run the following command:

 

sudo mode2 -m -d /dev/lirc0 > .lircd.conf

 

Record the button signals. When you open the <remote_controller_name>.lircd.conf file, you'll be able to see some number blocks.

 

 

The number blocks in the red rectangle are the set of the controller button. As the last value of the box is an outlier, delete it. And remove all others except the number blocks. Let's add the followings around the number blocks.

 

  • Add begin remote ... begin raw_codes before the fist number block. They are from the random file on the database. I don't know what the exact value might look like. I just copied and pasted them to the file (line #1-13).
  • Give each number block a name like name SWITCH_ON. Each button has a different value represented by the number block. Therefore give those names extensively (line #15, 22).
  • Add the lines at the end of the final number block (line #29-30).

 

begin remote

  name   tv
  flags RAW_CODES
  eps            25
  aeps          100

  ptrail          0
  repeat     0     0
  gap    20921


  begin raw_codes

    name SWITCH_ON
     8996     4451      552      574      551      576
      552      576      551      579      550      575
      553     1683      577      550      551     1683
      ...
      564

    name SWITCH_OFF
     9000     4453      578      548      580      548
      578      549      556      572      552      576
      552     1683      577      551      550     1683
      ...
      573

  end raw_codes
end remote

 

After this update, copy this file to the LIRC directory.

 

sudo cp ~/.lircd.conf \ 
    /ect/lirc/lircd.conf.d/.lircd.conf

 

When you go to the directory, you'll be able to find those files. I've got both files registered for an air-conditioner and TV.

 

 

As we don't need devinput.lircd.conf any longer, rename it.

 

sudo mv devinput.lircd.conf devinput.lircd.conf.dist

 

Remote controllers have been registered. Open the bootloader for the update.

 

sudo nano /boot/config.txt

 

Update the IR sender part (line #5-6).

 

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

dtoverlay=gpio-ir,gpio_pin=18
dtoverlay=gpio-ir-tx,gpio_pin=17

 

Run sudo reboot to reboot Raspberry PI. Check whether the LIRC module is working or not.

 

sudo /etc/init.d/lircd status

 

We can confirm that the LIRC module read both air-conditioner and TV configurations and ready for use!

 

 

Theoretically, we can register as many remote controllers as we like!

 

Controlling Air-Conditioner and TV on Raspberry PI

 

Let's check whether the remote controller on Raspberry PI. Enter the following command to see the list of names that I can execute.

 

irsend LIST  ""

 

I've registered both air-conditioner (winia) and TV (tv). The following screenshot is the result I've got. Each remote controller has more buttons, but I only need two buttons – on and off. Therefore, I only registered those two buttons.

 

 

OK. Let's run the command.

 

irsend SEND_ONCE tv SWITCH_ON

 

Although the terminal shows nothing, I actually turn on and off the TV.

 

Can you see the TV being turned on and off?

 

 


Unfortunately, I can make my air-conditioner working. I might have incorrectly captured the IR signal for the air-conditioner. But TV works! To me, the air-conditioner was the top priority. I should spend more time to get it working. If I have a more sophisticated device to capture the IR signal, it would be better.


So far, we have walked through how Raspberry PI turns into a remote controller that turns on and off home appliances. In the next post, I'll build a Power App and Power Automate that talks to Azure Functions app to access to the remote controller (Raspberry PI) outside the home network.

 

This article was originally published on Dev Kimchi.

%3CLINGO-SUB%20id%3D%22lingo-sub-1586165%22%20slang%3D%22en-US%22%3EHome%20Automation%20with%20Power%20Platform%20%231%3A%20Raspberry%20PI%20to%20Remote%20Controller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1586165%22%20slang%3D%22en-US%22%3E%3CP%3EA%20few%20months%20ago%2C%20I%20had%20a%20chance%20to%20do%20live%20streaming%20with%20%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fseojeee%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ECheese%20(%40seojeeee)%3C%2FA%3E%20about%20this%20topic%20%E2%80%93%20%3CA%20href%3D%22https%3A%2F%2Fyoutu.be%2Fq8TuRTw0OsQ%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EPart%201%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fyoutu.be%2F2iaSu9kOQGE%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EPart%202%3C%2FA%3E%20in%20Korean.%20I%20know%20it's%20warm%20and%20humid%20in%20the%20summer%20season%20in%20Korea.%20Therefore%2C%20I%20implemented%20this%20feature%20for%20my%20air-conditioning%20system%20at%20home%2C%20as%20well%20as%20other%20home%20appliances%20that%20work%20with%20remote%20controllers.%20However%2C%20as%20I%20have%20very%20little%20knowledge%20of%20Raspberry%20PI%20and%20other%20hardware%2C%20it%20was%20really%20challenging.%20This%20is%20the%20post%20to%20note%20to%20future%20self%20and%20others%20who%20might%20be%20interested%20in%20this%20topic.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EPart%201%3A%20%3CSTRONG%3E%3CEM%3ETurning%20Raspberry%20PI%20into%20Remote%20Controller%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EPart%202%3A%20Turning%20on%2Foff%20Home%20Appliances%20Using%20Raspberry%20PI%2C%20Serverless%20and%20Power%20Platform%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EThe%20sample%20codes%20used%20in%20this%20post%20can%20be%20found%20at%20this%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fdevkimchi%2FRaspberry-PI-Remote-Controller-Sample%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%20repository%3C%2FA%3E.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1294381714%22%20id%3D%22toc-hId--1293578501%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22%23check-hardware-and-software-specs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22check-hardware-and-software-specs%22%3E%3C%2FA%3E%20Check%20Hardware%20and%20Software%20Specs%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20might%20be%20only%20me%2C%20but%20I%20found%20that%20%3CA%20href%3D%22https%3A%2F%2Fwww.raspberrypi.org%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ERaspberry%20PI%3C%2FA%3E%20and%20its%20extension%20modules%20like%20IR%20sensor%20are%20very%20version%20sensitive.%20I%20Google'd%20many%20relevant%20articles%20on%20the%20Internet%2C%20but%20they%20are%20mostly%20outdated%20%E2%80%93%20not%20valid%20information%20any%20longer.%20Of%20course%2C%20this%20post%20will%20also%20have%20a%20high%20chance%20to%20be%20obsolete.%20Therefore%2C%20to%20avoid%20visitors%20from%20being%20disappointed%20in%20the%20future%2C%20it%20would%20be%20a%20great%20idea%20that%20I%20specify%20which%20hardware%20and%20software%20spec%20I%20used.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EHardware%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.raspberrypi.org%2Fproducts%2Fraspberry-pi-2-model-b%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ERaspberry%20PI%202%20Model%20B%20v1.1%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.amazon.com%2FIR-Remote-Control-Transceiver-Raspberry%2Fdp%2FB0713SK7RJ%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EIR%20Remote%20Shield%20v1.0%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESoftware%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.raspberrypi.org%2Fdownloads%2Fraspberry-pi-os%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ERaspberry%20PI%20OS%20LITE%3C%2FA%3E%3A%20Debian%2010%20(Buster)%20base%2C%20released%20on%202020-05-27%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.lirc.org%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ELIRC%20(Linux%20Infrared%20Remote%20Control)%3C%2FA%3E%3A%20v0.10.1%2C%20released%20on%202017-09-10%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1193131119%22%20id%3D%22toc-hId-1193934332%22%3ELIRC%20Module%20Installation%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20very%20first%20step%20is%20to%20install%20LIRC%20after%20setting%20up%20the%20Raspberry%20PI%20OS.%20Enter%20the%20command%20below%20to%20install%20LIRC.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20apt-get%20update%20-y%20%26amp%3B%26amp%3B%20sudo%20apt-get%20upgrade%20-y%0Asudo%20apt-get%20install%20lirc%20-y%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYour%20Raspberry%20PI%20OS%20has%20now%20been%20up-to-date%20and%20got%20the%20LIRC%20module%20installed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-01.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-01.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--614323344%22%20id%3D%22toc-hId--613520131%22%3ELIRC%20Module%20Configuration%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20configure%20the%20LIRC%20module%20to%20send%20and%20receive%20the%20IR%20signal.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-76238130%22%20id%3D%22toc-hId-77041343%22%3EBootloader%20Configuration%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBy%20updating%20the%20bootloader%20file%2C%20when%20Raspberry%20PI%20starts%20the%20LIRC%20module%20starts%20at%20the%20same%20time.%20Open%20the%20bootloader%20file%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20nano%20%2Fboot%2Fconfig.txt%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUncomment%20the%20following%20lines%20and%20correct%20the%20pin%20number.%20The%20default%20values%20before%20being%20uncommented%20were%2017%20for%20%3CCODE%3Egpio-ir%3C%2FCODE%3E%20and%2018%20for%20%3CCODE%3Egpio-ir-tx%3C%2FCODE%3E.%20But%20it%20should%20be%20swapped%20(line%20%235-6).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EOf%20course%2C%20it%20might%20be%20working%20without%20swapping%20the%20pin%20numbers.%20But%20it%20wasn't%20my%20case%20at%20all.%20I%20had%20to%20change%20them%20to%20each%20other.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%23%20Uncomment%20this%20to%20enable%20infrared%20communication.%0A%23dtoverlay%3Dgpio-ir%2Cgpio_pin%3D17%0A%23dtoverlay%3Dgpio-ir-tx%2Cgpio_pin%3D18%0A%0Adtoverlay%3Dgpio-ir%2Cgpio_pin%3D18%0Adtoverlay%3Dgpio-ir-tx%2Cgpio_pin%3D17%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1731216333%22%20id%3D%22toc-hId--1730413120%22%3ELIRC%20Module%20Hardware%20Configuration%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20configure%20the%20LIRC%20module%20hardware.%20Open%20the%20file%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20nano%20%2Fetc%2Flirc%2Fhardware.conf%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20enter%20the%20following%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3ELIRCD_ARGS%3D%22--uinput%20--listen%22%0ALOAD_MODULES%3Dtrue%0ADRIVER%3D%22default%22%0ADEVICE%3D%22%2Fdev%2Flirc0%22%0AMODULES%3D%22lirc_rpi%22%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-756296500%22%20id%3D%22toc-hId-757099713%22%3ELIRC%20Module%20Options%20Configuration%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUpdate%20the%20LIRC%20module%20options.%20Open%20the%20file%20with%20the%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20nano%20%2Fetc%2Flirc%2Flirc_options.conf%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EChange%20both%20%3CCODE%3Edriver%3C%2FCODE%3E%20and%20%3CCODE%3Edevice%3C%2FCODE%3E%20values%20(line%20%233-4).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%23driver%20%20%20%20%20%20%20%20%20%3D%20devinput%0A%23device%20%20%20%20%20%20%20%20%20%3D%20auto%0Adriver%20%20%20%20%20%20%20%20%20%20%3D%20default%0Adevice%20%20%20%20%20%20%20%20%20%20%3D%20%2Fdev%2Flirc0%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20you've%20completed%20by%20now%2C%20reboot%20Raspberry%20PI%20to%20recognise%20the%20updated%20bootloader.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20reboot%0A%3C%2FPRE%3E%0A%3CP%3ESend%20this%20command%20to%20check%20the%20LIRC%20module%20working%20or%20not.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20%2Fetc%2Finit.d%2Flircd%20status%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-02.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-02.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20now%20working!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-745793396%22%20id%3D%22toc-hId-746596609%22%3ERemote%20Controller%20Registration%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20the%20most%20important%20part%20of%20all.%20I%20have%20to%20register%20the%20remote%20controller%20I'm%20going%20to%20use.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1436354870%22%20id%3D%22toc-hId-1437158083%22%3EUse%20Remote%20Controller%20Database%20for%20Registration%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20easiest%20and%20promising%20way%20to%20register%20the%20remote%20controller%20is%20to%20visit%20%3CA%20href%3D%22http%3A%2F%2Flirc-remotes.sourceforge.net%2Fremotes-table.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ERemote%20Controller%20Database%20website%3C%2FA%3E%2C%20search%20the%20remote%20controller%20and%20download%20it.%20For%20example%2C%20as%20long%20as%20you%20know%20the%20remote%20controller%20model%20name%2C%20it%20can%20be%20found%20on%20the%20database.%20I%20just%20searched%20up%20any%20LG%20air-conditioner.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-03.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-03.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20can%20find%20your%20remote%20controller%20details%2C%20download%20it%20and%20copy%20it%20to%20the%20designated%20location.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20cp%20~%2F.lircd.conf%20%2Fetc%2Flirc%2Flircd.conf.d%2F.lircd.conf%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--371099593%22%20id%3D%22toc-hId--370296380%22%3EManual%20Registration%20for%20Remote%20Controller%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENot%20every%20remote%20controller%20has%20been%20registered%20to%20this%20database.%20If%20you%20can't%20find%20yours%2C%20you%20should%20create%20it%20by%20yourself.%20Winia%20makes%20my%20air-conditioning%20system%2C%20but%20it%20doesn't%20exist%20on%20the%20database.%20I've%20got%20a%20local%20branded%20TV%20which%20doesn't%20exist%20on%20the%20database%20either.%20I%20had%20to%20create%20them.%20To%20create%20the%20configuration%20file%2C%20Raspberry%20PI%20should%20be%20double-checked%20whether%20the%20IR%20sensor%20on%20it%20captures%20the%20remote%20controller%20signal%20or%20not.%20First%20of%20all%2C%20stop%20the%20LIRC%20service.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20%2Fetc%2Finit.d%2Flircd%20stop%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-04.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-04.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERun%20the%20following%20command%20to%20wait%20for%20the%20incoming%20IR%20signals.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20mode2%20-m%20-d%20%2Fdev%2Flirc0%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you're%20unlucky%2C%20you'll%20get%20the%20following%20error%20message.%20Yeah%2C%20it's%20me.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-05.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-05.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20because%20both%20the%20IR%20sender%20and%20receiver%20are%20active.%20At%20this%20time%2C%20we%20only%20need%20the%20receiver%2C%20which%20is%20for%20capturing%20the%20IR%20signals.%20Disable%20the%20sender%20part.%20Open%20the%20bootloader.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20nano%20%2Fboot%2Fconfig.txt%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20used%20to%20have%20both%20%3CCODE%3Egpio-ir%3C%2FCODE%3E%20and%20%3CCODE%3Egpio-ir-tx%3C%2FCODE%3E%20activated.%20As%20we%20don't%20need%20the%20sender%20part%2C%20for%20now%2C%20update%20the%20file%20like%20below%20(line%20%235-6).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%23%20Uncomment%20this%20to%20enable%20infrared%20communication.%0A%23dtoverlay%3Dgpio-ir%2Cgpio_pin%3D17%0A%23dtoverlay%3Dgpio-ir-tx%2Cgpio_pin%3D18%0A%0Adtoverlay%3Dgpio-ir%2Cgpio_pin%3D18%0A%23dtoverlay%3Dgpio-ir-tx%2Cgpio_pin%3D17%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20completed%2C%20reboot%20Raspberry%20PI%20using%20the%20command%2C%20%3CCODE%3Esudo%20reboot%3C%2FCODE%3E.%20Once%20it's%20restarted%2C%20run%20the%20following%20command%20so%20that%20you%20can%20confirm%20it%20works.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20mode2%20-m%20-d%20%2Fdev%2Flirc0%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-06.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-06.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20it's%20waiting%20for%20your%20IR%20signal%20input.%20Locate%20your%20remote%20controller%20close%20to%20Raspberry%20PI%20and%20punch%20some%20buttons.%20You'll%20find%20out%20the%20remote%20controller%20buttons%20are%20captured.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2FWrTlpCHl1ZA%22%20width%3D%22710%22%20height%3D%22399%22%20allowfullscreen%3D%22allowfullscreen%22%20loading%3D%22lazy%22%3E%3C%2FIFRAME%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EWe%20confirm%20the%20incoming%20signals%20are%20properly%20captured.%20It's%20time%20to%20generate%20the%20remote%20controller%20file.%20Enter%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20irrecord%20-d%20%2Fdev%2Flirc0%20--disable-namespace%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20running%20the%20command%20above%2C%20it%20gives%20you%20instructions%20to%20follow.%20Record%20your%20buttons%20by%20following%20the%20instruction.%20By%20the%20way%2C%20the%20recording%20application%20sometimes%20doesn't%20work%20as%20expected.%20Yes%2C%20I%20was%20in%20the%20case.%20I%20had%20to%20use%20a%20different%20approach.%20Instead%20of%20using%20%3CCODE%3Eirrecord%3C%2FCODE%3E%2C%20I%20had%20to%20use%20%3CCODE%3Emode2%3C%2FCODE%3E%20to%20capture%20the%20button%20signals.%20Run%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20mode2%20-m%20-d%20%2Fdev%2Flirc0%20%26gt%3B%20.lircd.conf%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERecord%20the%20button%20signals.%20When%20you%20open%20the%20%3CCODE%3E%3CREMOTE_CONTROLLER_NAME%3E.lircd.conf%3C%2FREMOTE_CONTROLLER_NAME%3E%3C%2FCODE%3E%20file%2C%20you'll%20be%20able%20to%20see%20some%20number%20blocks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-07.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-07.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20number%20blocks%20in%20the%20red%20rectangle%20are%20the%20set%20of%20the%20controller%20button.%20As%20the%20last%20value%20of%20the%20box%20is%20an%20outlier%2C%20delete%20it.%20And%20remove%20all%20others%20except%20the%20number%20blocks.%20Let's%20add%20the%20followings%20around%20the%20number%20blocks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAdd%20%3CCODE%3Ebegin%20remote%20...%20begin%20raw_codes%3C%2FCODE%3E%20before%20the%20fist%20number%20block.%20They%20are%20from%20the%20random%20file%20on%20the%20database.%20I%20don't%20know%20what%20the%20exact%20value%20might%20look%20like.%20I%20just%20copied%20and%20pasted%20them%20to%20the%20file%20(line%20%231-13).%3C%2FLI%3E%0A%3CLI%3EGive%20each%20number%20block%20a%20name%20like%20%3CCODE%3Ename%20SWITCH_ON%3C%2FCODE%3E.%20Each%20button%20has%20a%20different%20value%20represented%20by%20the%20number%20block.%20Therefore%20give%20those%20names%20extensively%20(line%20%2315%2C%2022).%3C%2FLI%3E%0A%3CLI%3EAdd%20the%20lines%20at%20the%20end%20of%20the%20final%20number%20block%20(line%20%2329-30).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Ebegin%20remote%0A%0A%20%20name%20%20%20tv%0A%20%20flags%20RAW_CODES%0A%20%20eps%20%20%20%20%20%20%20%20%20%20%20%2025%0A%20%20aeps%20%20%20%20%20%20%20%20%20%20100%0A%0A%20%20ptrail%20%20%20%20%20%20%20%20%20%200%0A%20%20repeat%20%20%20%20%200%20%20%20%20%200%0A%20%20gap%20%20%20%2020921%0A%0A%0A%20%20begin%20raw_codes%0A%0A%20%20%20%20name%20SWITCH_ON%0A%20%20%20%20%208996%20%20%20%20%204451%20%20%20%20%20%20552%20%20%20%20%20%20574%20%20%20%20%20%20551%20%20%20%20%20%20576%0A%20%20%20%20%20%20552%20%20%20%20%20%20576%20%20%20%20%20%20551%20%20%20%20%20%20579%20%20%20%20%20%20550%20%20%20%20%20%20575%0A%20%20%20%20%20%20553%20%20%20%20%201683%20%20%20%20%20%20577%20%20%20%20%20%20550%20%20%20%20%20%20551%20%20%20%20%201683%0A%20%20%20%20%20%20...%0A%20%20%20%20%20%20564%0A%0A%20%20%20%20name%20SWITCH_OFF%0A%20%20%20%20%209000%20%20%20%20%204453%20%20%20%20%20%20578%20%20%20%20%20%20548%20%20%20%20%20%20580%20%20%20%20%20%20548%0A%20%20%20%20%20%20578%20%20%20%20%20%20549%20%20%20%20%20%20556%20%20%20%20%20%20572%20%20%20%20%20%20552%20%20%20%20%20%20576%0A%20%20%20%20%20%20552%20%20%20%20%201683%20%20%20%20%20%20577%20%20%20%20%20%20551%20%20%20%20%20%20550%20%20%20%20%201683%0A%20%20%20%20%20%20...%0A%20%20%20%20%20%20573%0A%0A%20%20end%20raw_codes%0Aend%20remote%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20this%20update%2C%20copy%20this%20file%20to%20the%20LIRC%20directory.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20cp%20~%2F.lircd.conf%20%5C%20%0A%20%20%20%20%2Fect%2Flirc%2Flircd.conf.d%2F.lircd.conf%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20you%20go%20to%20the%20directory%2C%20you'll%20be%20able%20to%20find%20those%20files.%20I've%20got%20both%20files%20registered%20for%20an%20air-conditioner%20and%20TV.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-08.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-08.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20we%20don't%20need%20%3CCODE%3Edevinput.lircd.conf%3C%2FCODE%3E%20any%20longer%2C%20rename%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20mv%20devinput.lircd.conf%20devinput.lircd.conf.dist%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERemote%20controllers%20have%20been%20registered.%20Open%20the%20bootloader%20for%20the%20update.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20nano%20%2Fboot%2Fconfig.txt%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUpdate%20the%20IR%20sender%20part%20(line%20%235-6).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%23%20Uncomment%20this%20to%20enable%20infrared%20communication.%0A%23dtoverlay%3Dgpio-ir%2Cgpio_pin%3D17%0A%23dtoverlay%3Dgpio-ir-tx%2Cgpio_pin%3D18%0A%0Adtoverlay%3Dgpio-ir%2Cgpio_pin%3D18%0Adtoverlay%3Dgpio-ir-tx%2Cgpio_pin%3D17%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERun%20%3CCODE%3Esudo%20reboot%3C%2FCODE%3E%20to%20reboot%20Raspberry%20PI.%20Check%20whether%20the%20LIRC%20module%20is%20working%20or%20not.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Esudo%20%2Fetc%2Finit.d%2Flircd%20status%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20can%20confirm%20that%20the%20LIRC%20module%20read%20both%20air-conditioner%20and%20TV%20configurations%20and%20ready%20for%20use!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-09.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-09.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETheoretically%2C%20we%20can%20register%20as%20many%20remote%20controllers%20as%20we%20like!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--381602697%22%20id%3D%22toc-hId--380799484%22%3EControlling%20Air-Conditioner%20and%20TV%20on%20Raspberry%20PI%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20check%20whether%20the%20remote%20controller%20on%20Raspberry%20PI.%20Enter%20the%20following%20command%20to%20see%20the%20list%20of%20names%20that%20I%20can%20execute.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Eirsend%20LIST%20%20%22%22%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20registered%20both%20air-conditioner%20(%3CCODE%3Ewinia%3C%2FCODE%3E)%20and%20TV%20(%3CCODE%3Etv%3C%2FCODE%3E).%20The%20following%20screenshot%20is%20the%20result%20I've%20got.%20Each%20remote%20controller%20has%20more%20buttons%2C%20but%20I%20only%20need%20two%20buttons%20%E2%80%93%20%3CCODE%3Eon%3C%2FCODE%3E%20and%20%3CCODE%3Eoff%3C%2FCODE%3E.%20Therefore%2C%20I%20only%20registered%20those%20two%20buttons.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-10.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-10.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOK.%20Let's%20run%20the%20command.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Eirsend%20SEND_ONCE%20tv%20SWITCH_ON%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlthough%20the%20terminal%20shows%20nothing%2C%20I%20actually%20turn%20on%20and%20off%20the%20TV.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-11.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fsa0blogs.blob.core.windows.net%2Fdevkimchi%2F2020%2F08%2Fturning-raspberry-pi-into-remote-controller-11.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20you%20see%20the%20TV%20being%20turned%20on%20and%20off%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2FQoUmSVAxBCs%22%20width%3D%22710%22%20height%3D%22399%22%20allowfullscreen%3D%22allowfullscreen%22%20loading%3D%22lazy%22%3E%3C%2FIFRAME%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EUnfortunately%2C%20I%20can%20make%20my%20air-conditioner%20working.%20I%20might%20have%20incorrectly%20captured%20the%20IR%20signal%20for%20the%20air-conditioner.%20But%20TV%20works!%20To%20me%2C%20the%20air-conditioner%20was%20the%20top%20priority.%20I%20should%20spend%20more%20time%20to%20get%20it%20working.%20If%20I%20have%20a%20more%20sophisticated%20device%20to%20capture%20the%20IR%20signal%2C%20it%20would%20be%20better.%3C%2FP%3E%0A%3CHR%20%2F%3E%0A%3CP%3ESo%20far%2C%20we%20have%20walked%20through%20how%20%3CA%20href%3D%22https%3A%2F%2Fwww.raspberrypi.org%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ERaspberry%20PI%3C%2FA%3E%20turns%20into%20a%20remote%20controller%20that%20turns%20on%20and%20off%20home%20appliances.%20In%20the%20next%20post%2C%20I'll%20build%20a%20%3CA%20href%3D%22https%3A%2F%2Fpowerapps.microsoft.com%2F%3FWT.mc_id%3Dappsonazure-techcommunity-juyoo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPower%20App%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fflow.microsoft.com%2F%3FWT.mc_id%3Dappsonazure-techcommunity-juyoo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPower%20Automate%3C%2FA%3E%20that%20talks%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-functions%2Ffunctions-overview%3FWT.mc_id%3Dappsonazure-techcommunity-juyoo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Functions%3C%2FA%3E%20app%20to%20access%20to%20the%20remote%20controller%20(Raspberry%20PI)%20outside%20the%20home%20network.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3EThis%20article%20was%20originally%20published%20on%20%3CA%20href%3D%22https%3A%2F%2Fdevkimchi.com%2F2020%2F08%2F12%2Fturning-raspberry-pi-into-remote-controller%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EDev%20Kimchi%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1586165%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22turning-raspberry-pi-into-remote-controller-00%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212178i993F20FB2E66EF05%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22turning-raspberry-pi-into-remote-controller-00%22%20alt%3D%22turning-raspberry-pi-into-remote-controller-00%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThis%20post%20shows%20how%20to%20enable%20LIRC%20module%20on%20a%20Raspberry%20PI%20so%20that%20it%20turns%20into%20a%20remote%20controller%20for%20all%20home%20appliances.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1586165%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENode.js%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EServerless%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Aug 16 2020 05:00 PM
Updated by: