An Infrared LED Controller

By Aleksandar | 13 October 2017 | 14 Comments
Today, you will learn how you can build a simple IR LED Controller. Just combine an IR remote with some LEDs and you've got the perfect introduction to IR controlling. The parts for this build are provided by Kuman, you can find them in their Arduino UNO Kit.


Step 1: Parts Needed

1 x Arduino board (I'm using an UNO)
1 x USB Cable
1 x IR Receiver
1 x IR Remote
3 x LEDs (Colors doesn't matter)
3 x 220 ohm resistors
1 x 9V Battery and clip (Optional)

Step 2: Insert the Parts Into the Breadboard


Start by inserting the necessary parts into the breadboard. Their positions doesn't matter, lay them down however you like. These include the LEDs, the needed resistors and the IR receiver. One end of the resistor goes to the anode of the LED (+) and the other - to an empty breadboard row.

Step 3: Connecting the LEDs


After the step above, you should end up with the anode (the longer lead) of each LED connected to a resistor. Now, connect each resistor to the corresponding Arduino Pin (you can change it later in the code). They are as follows: 6, 4 and 2. The other end of the LEDs (- or cathode) to the GND rail of the breadboard.

Step 4: Connecting the IR Receiver
The pin on the left goes to Pin 8 of the Arduino (you can change it in the code later). The middle one goes to the negative rail of the breadboard (GND) and the one on the right - to the positive rail (5V). You are now ready with the hardware part! Now comes the software.



Step 5: Uploading the Code and Setting Up the Remote



Connect the Arduino to your PC. Choose the right COM port and upload the code that you can find here. Feel free to change the pin numbers and modify the code however you want. Don't disconnect your Arduino yet.
Setting up the remote
Open up the Serial Monitor and point your remote to the receiver. Press the buttons that you want to use for controls one by one and take note of the codes that appear on the screen. You can take a look at the second picture above for reference. I'm using the 0, 1, 2 and 3 of the remote. After deciding which ones you are going to use, modify them in the code after each "case" of the "switch" by simply deleting the values that I've used, writing down "0x" (without the quotes) followed by the key coded that you want. Do this for each one of the LEDs plus the the 0, which turns all of them off.

Step 6: Showcase
PplAI
January 10,2021 20:27
Medicine information sheet. Effects of Drug Abuse. <a href="https://viagra4u.top">how can i get generic viagra pill</a> in Canada. All information about meds. Get now. <a href=https://www.androidmag.biz/products/PSP_MP5_portativnaya_igrovaya_pristavka>A
f88tw
August 15,2020 15:57
f88tw|Wacoal|I appreciate your kind assistance. http://mypaper.pchome.com.tw/f88tw http://mypaper.pchome.com.tw/f88tw/post/1370781143 http://mypaper.m.pchome.com.tw/f88tw/post/1370781143
f88tw
August 15,2020 15:57
f88tw|Wacoal|I appreciate your kind assistance. http://mypaper.pchome.com.tw/f88tw http://mypaper.pchome.com.tw/f88tw/P1 http://mypaper.pchome.com.tw/f88tw/post/1379131888 http://mypaper.pchome.com.tw/f88tw/post/1378915496 http://mypaper.pchome.com.t
f88tw|Wacoal
July 30,2020 15:40
f88tw|Wacoal|I appreciate your kind assistance. http://mypaper.pchome.com.tw/f88tw/post/1370781143 http://mypaper.m.pchome.com.tw/f88tw/post/1370781143
f88tw|Wacoal
July 30,2020 15:39
f88tw|Wacoal|I appreciate your kind assistance. http://mypaper.pchome.com.tw/f88tw http://mypaper.pchome.com.tw/f88tw/P1 http://mypaper.pchome.com.tw/f88tw/post/1370781143 http://mypaper.m.pchome.com.tw/f88tw/post/1370781143
f88tw|Wacoal
July 30,2020 15:39
f88tw|Wacoal|I appreciate your kind assistance. http://mypaper.pchome.com.tw/f88tw http://mypaper.pchome.com.tw/f88tw/P1 http://mypaper.pchome.com.tw/f88tw/post/1379131888 http://mypaper.pchome.com.tw/f88tw/post/1378915496 http://mypaper.pchome.com.t
f88tw
July 26,2020 17:54
f88tw|Wacoal|I appreciate your kind assistance. http://mypaper.pchome.com.tw/f88tw http://mypaper.pchome.com.tw/f88tw/P1 http://mypaper.pchome.com.tw/f88tw/post/1379131888 http://mypaper.pchome.com.tw/f88tw/post/1378915496 http://mypaper.pchome.com.t
f88tw|Wacoal
July 13,2020 15:50
f88tw|Wacoal|I appreciate your kind assistance. http://mypaper.pchome.com.tw/f88tw http://mypaper.pchome.com.tw/f88tw/P1 http://mypaper.pchome.com.tw/f88tw/post/1370781143 http://mypaper.m.pchome.com.tw/f88tw/post/1370781143
DonaldMit
September 09,2019 15:26
Invest $ 5,000 in cryptocurrency once and get $ 70,000 passive income per month: https://chogoon.com/srt/w5xf8?udCT2kK
otbiwijay
October 13,2018 13:25
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
hicoliqiafus
October 13,2018 13:07
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
ejocooajaqwed
October 13,2018 12:34
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
inidoteyev
October 13,2018 12:31
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
AngelakfoSr
October 18,2017 08:31
Jkxlszkhm Как купить <a href=https://www.1prikid.ru/koshelki-portmone/>женские кошельки</a> wanlima омск Где рядом купить коженные <a href=https://www.1prikid.ru/koshelki-portmone/>кошельки женские</a>
Leave a Reply
Your email address will not be published.Required fields are marked. *
Name *
Email *
Content
Popular blog
Categories