how to control a led with infrared Remote using arduino - Arduino Tutorial

Опубликовано: 17 Март 2026
на канале: Dark ink electronics
85
1

like, share , subscribe

the codes in IF statement my be different from a remote to another.
make sure to replace them by you remote controller codes or follow the video ^_^

0:00 start
0:05 installing lib " IRremote "
0:39 circuit overview
0:58 getting hexdecimal value from remote
1:45 creating our version of code
3:20 different pins of IR sensor
3:44 end

led pin : 11
inferared sensor pin: 12
inferared sensor vcc pin = 3.3 v. if it doesn't work (doesn't print signal it in Serial monitor) then give it 5 v otherwise you will damage it

if the sensor print the same value over and over even if you pressed another btn (which means another hexdecimal value). you're maybe having a cables problem.

at the buttom of my code, there is a delay of 500 ms " delay(500); "
you can delete it to enhance response of your code
the purpose of it was a personal choice to avoid a lot of messages in Serial monitor

code (this code is not 100% working fine. you may need to copy or correct some of it while watching my video):
https://drive.google.com/drive/folder...

Follow me on :

Electronics Channel :    / @dark_ink_electronics  
Music Channel :    / @kzbeats_0  
twitter :   / darkpinkp  
soundcloud :   / user-163169075  


#DarkPink_Electronics #electronics #programming