Control your LEDs with your TV remote?! || Arduino IR Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 มิ.ย. 2024
  • Twitter: / greatscottlab
    Facebook: / greatscottlab
    Previous video: • Li-Ion battery short c...
    Arduino IR library: github.com/shirriff/Arduino-I...
    More project info on Instructables (parts list, schematic, arduino code): www.instructables.com/id/Contr...
    Parts (affiliate links):
    Aliexpress:
    1x Arduino Nano: s.click.aliexpress.com/e/_dUL...
    2x 10k Resistor: s.click.aliexpress.com/e/_dTP...
    1x 100µF Capacitor: s.click.aliexpress.com/e/_d7d...
    1x DC Jack: s.click.aliexpress.com/e/_d6c...
    1x IRLZ44N N-channel MOSFET: s.click.aliexpress.com/e/_dWh...
    1x IR Receiver (TSOP4838): s.click.aliexpress.com/e/_d6Y...
    RGB LED strip (common anode): s.click.aliexpress.com/e/_dW9...
    Power Supply (12V 3A): s.click.aliexpress.com/e/_dY6...
    Ebay:
    1x Arduino Nano:rover.ebay.com/rover/1/711-532...
    2x 10k Resistor:rover.ebay.com/rover/1/711-532...
    1x 100µF Capacitor:rover.ebay.com/rover/1/711-532...
    1x DC Jack:rover.ebay.com/rover/1/711-532...
    1x IRLZ44N N-channel MOSFET:rover.ebay.com/rover/1/711-532...
    1x IR Receiver (TSOP4838):rover.ebay.com/rover/1/711-532...
    1x Veroboard:rover.ebay.com/rover/1/711-532...
    RGB LED strip (common anode):rover.ebay.com/rover/1/711-532...
    Power Supply (12V 3A):rover.ebay.com/rover/1/711-532...
    Amazon.de:
    1x Arduino Nano:amzn.to/1tgG8ux
    2x 10k Resistor:amzn.to/1zknpuw
    1x 100µF Capacitor:amzn.to/1wnBpS0
    1x DC Jack:amzn.to/1x5ReSt
    1x IRLZ44N N-channel MOSFET:amzn.to/1tgGBgl
    1x IR Receiver (TSOP4838):amzn.to/1rkolRN
    1x Veroboard:amzn.to/1rkoswO
    RGB LED strip (common anode):amzn.to/1A9iSPM
    Power Supply (12V 3A):amzn.to/1rkrmSn
    In this project I will show you how I repurposed the useless buttons on my TV remote to control the LEDs behind my TV. You can also use this technique to control all sorts of things with a bit of code editing. I will also talk a bit about the theory of how an infrared transmitter and an infrared receiver communicates with each other.
    Music:
    2011 Lookalike by Bartlebeats
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 615

  • @greatscottlab
    @greatscottlab  9 ปีที่แล้ว +76

    Ever wanted to use your TV remote to control your next project? Then you might find this video useful!

    • @fokkerschrauber
      @fokkerschrauber 9 ปีที่แล้ว

      Wo bistn du her? ;-)

    • @alicoolman1xx
      @alicoolman1xx 9 ปีที่แล้ว +8

      Same TV as mine and remote

    • @andrasblaho6149
      @andrasblaho6149 8 ปีที่แล้ว

      hi scoot do you have te arduino code in your site?

    • @bruhmoment647
      @bruhmoment647 8 ปีที่แล้ว

      +GreatScott! I'm having a problem with the dimming and brightening of the led. I put in my code, but it does not dim or brighten. The on/off works however...

    • @jeremyulmer4724
      @jeremyulmer4724 8 ปีที่แล้ว

      +Cheese Shmabe do you have the LED on a PWM pin on the arduino?

  • @gamesnsuch7444
    @gamesnsuch7444 9 ปีที่แล้ว

    How have I not found this channel already..this is amazing

  • @johnd942
    @johnd942 7 ปีที่แล้ว +88

    You're a very talented man with a good sense of humour; even if you have strange accent! Cheers and thanks!

    • @thedavinator37
      @thedavinator37 7 ปีที่แล้ว +8

      8233Eire it's a German accent btw

    • @simongrebe6535
      @simongrebe6535 6 ปีที่แล้ว +3

      He is german

    • @markusschnepf
      @markusschnepf 4 ปีที่แล้ว +1

      @@thedavinator37 Everyone knows that. Everyone.

    • @thedavinator37
      @thedavinator37 4 ปีที่แล้ว +3

      Markus Schnepf thank you for taking the time to reply to my comment from 2 years ago.

    • @markusschnepf
      @markusschnepf 4 ปีที่แล้ว +3

      @@thedavinator37 you see, it took me 2 years to find the right words... xD

  • @esliaurkiko
    @esliaurkiko 4 ปีที่แล้ว +118

    I have the opposite problem, whenever I change the volume on my tv, my led lights change to a really fast flashing light

    • @kyujinrules
      @kyujinrules 4 ปีที่แล้ว +1

      same why?

    • @esliaurkiko
      @esliaurkiko 4 ปีที่แล้ว +3

      f u I was researching it and I guess the button in my remote is the same and the button in my led controller and it is clicking the buttons when I change the volume

    • @kyujinrules
      @kyujinrules 4 ปีที่แล้ว +1

      Aaliyah Essien ohh so is there anyway to fix it?

    • @solo1017
      @solo1017 4 ปีที่แล้ว +2

      Aaliyah Essien it changed with my roku remote is sucks

    • @esliaurkiko
      @esliaurkiko 4 ปีที่แล้ว

      f u not that I know of I’m still using two remotes because only one works on the tv but the other remotes volume works and it doesn’t change my lights really fast

  • @nosafetyswitch9378
    @nosafetyswitch9378 7 ปีที่แล้ว +1

    Very nice, simple and effective. I am thinking about total colour control using 3 mosfets, one per color and an extra button to switch between them.

  • @mokori9459
    @mokori9459 4 ปีที่แล้ว +12

    me: YES HE HAS THE SAME REMOTE AS ME
    him: *grabs a different remote*

  • @bigcheddar100
    @bigcheddar100 6 ปีที่แล้ว

    Amazing videos you always put so much effort into them. Subscribed!

  • @petioleyu
    @petioleyu 5 ปีที่แล้ว +1

    this code is very practical! Thank you very much for sharing this!

  • @redserpent
    @redserpent 6 ปีที่แล้ว

    Nice project. Thanks for the extra time devoted to the method of using the Arduino to get the remotes key codes.

  • @chinmayshalawadi1
    @chinmayshalawadi1 7 ปีที่แล้ว

    ThankYou , you were my inspiration for my new channel!!! Love Your Videos !

  • @djavelli
    @djavelli 7 ปีที่แล้ว

    This is something really creative , good job broo!!

  • @Gabirell
    @Gabirell 7 ปีที่แล้ว

    You're really great, Scott! Thanks and keep on!

  • @bumeniclas2516
    @bumeniclas2516 9 ปีที่แล้ว +1

    Hey Scott!
    First of, I'd like to mention that I love your videos! I'm very new to the world of electronics and microcontrollers and therefore would like to ask you a question regarding this project. since you have soldered all cathodes to one on the LED-strip, you cant change the light color... so is it possible to still change the lights via arduino if I'd use three MOSFET's and wire each of them to one of the cathodes?
    thanks alot!

  • @ghilashamaili2733
    @ghilashamaili2733 2 ปีที่แล้ว

    Thank you for the great content, it would be great if you add some Arduino ide programming videos. For example explaining how to program some of your old projects. It would be really helpful.

  • @gulhermepereira249
    @gulhermepereira249 9 ปีที่แล้ว

    a huge thanks from Brazil, keep it up mate

  • @Jono6671
    @Jono6671 8 ปีที่แล้ว

    you're a pretty smart guy, love these videos

  • @samuelmessiha8609
    @samuelmessiha8609 3 ปีที่แล้ว

    I am thinking of right now and who better to explain then great Scott!

  • @aleksastipanovic6723
    @aleksastipanovic6723 8 ปีที่แล้ว

    great video, i just made it myself, had almost no problems. thanks

  • @jacquesmertens3369
    @jacquesmertens3369 9 ปีที่แล้ว

    Your video inspired me to use my universal remote (Logitech Harmony) to remotely control my LED strip. No arduino needed.

  • @Comicbacon
    @Comicbacon 7 ปีที่แล้ว +1

    Im assuming this would be able to be integrated into a LED matrix (like your other video). Being able to cycle through different animations. That would be a pretty cool video!

  • @fabbbio27
    @fabbbio27 8 ปีที่แล้ว +2

    What about the voltage drop between source and drain on the mosfet when is "fully open" ? Have you measured it? Considering how much LED current (and brightness) is sensitive respect to the voltage variations, I think that it is an important parameter to check. If not, you can't reach the maximum brightness that the LED strip can achieve. However great video! Thanks for sharing!

  • @lavinog
    @lavinog 7 ปีที่แล้ว

    This gives me so many ideas. Thank you.

  • @MrJarrieta
    @MrJarrieta 6 ปีที่แล้ว

    Thanks for your videos, they have been very helpful

  • @user-hh8fe6nl5h
    @user-hh8fe6nl5h 2 ปีที่แล้ว

    Nice project I will try it. Thanks for sharing.

  • @amirfarjammiresmaeili6750
    @amirfarjammiresmaeili6750 9 ปีที่แล้ว

    i love your project.
    i learn many thing from you
    thax

  •  8 ปีที่แล้ว

    I like a lot of your projects!

  • @Torombolo9696
    @Torombolo9696 9 ปีที่แล้ว

    Truly impressive, your wat i call a genius!

  • @kyleschmitz9814
    @kyleschmitz9814 7 ปีที่แล้ว

    Hey GreatScott, I love your channel and I am a huge electronics enthuisiast. I do not have a job currently and have trouble finding good websites to buy components for projects. It would be a great help if you could tell me what sources you buy components from, or cheap places to get them. thanks, love your videos, keep uploading.

  • @akshayn3926
    @akshayn3926 8 ปีที่แล้ว

    good job,
    your video was awesome & it was very useful,
    thanks.

  • @MArifinDobson
    @MArifinDobson 7 ปีที่แล้ว

    Superb video, Danke! I am just wondering why do you need the capacitor between Vs and GND? Stabilize the voltage because of the long cable?

  • @boris.karavasilev
    @boris.karavasilev 8 ปีที่แล้ว

    This video is absolutely awesome and very usefull thanks ! :)

  • @AmyAndrewAdventures
    @AmyAndrewAdventures 8 ปีที่แล้ว

    Great video. Thankyou for making this!

  • @johnathaneilers4004
    @johnathaneilers4004 8 ปีที่แล้ว +19

    "Well why this crap?"
    Haha, this made me laugh so hard

    • @jaguarke069
      @jaguarke069 8 ปีที่แล้ว +1

      +Johnathan Eilers Oh god, I'm not alone :-) These video's put such a smile on my face and are a great source of knowledge, I love it !

    • @jaguarke069
      @jaguarke069 8 ปีที่แล้ว

      +Ncl Bgn Literally, tears in my eyes

    • @cw4608
      @cw4608 3 ปีที่แล้ว

      Johnathan Eilers me too!

  • @borkmadjai
    @borkmadjai 8 ปีที่แล้ว

    nice little project, thanks for sharing :)

  • @MrCcarter7
    @MrCcarter7 5 ปีที่แล้ว

    Another great video! Thanks again!

  • @samlu5265
    @samlu5265 8 ปีที่แล้ว

    great video as always really enjoyed it, however, how do you know which button to press? I have been trying to work on this for ages and I will play with the buttons on my remote, however my remote has numerous channels and takes a long time for me to get through all the buttons. Only occasionally will the hex code come up.

  • @axodarap
    @axodarap 7 ปีที่แล้ว +1

    Awesome stuff! What is the capacitor for though?

  • @LearnKinyarwanda
    @LearnKinyarwanda 9 ปีที่แล้ว

    good job man. I was looking for something like this.

    • @marieea2654
      @marieea2654 4 ปีที่แล้ว

      Ally NKUNDIBIZA me to

  • @didierdubos
    @didierdubos 7 ปีที่แล้ว

    Hi,
    (Hello from France)
    I'm wondering what is the power consumption when the leds are at their lowest luminosity (turned off) ?
    It might be a good idea to detect when the ON/OFF button on the remote is activated to turn on and off the leds at the same time and then there's just the arduino power consuption?
    What do you think?
    I'm watching your video nearly everyday at my office during lunch break. I really appreciate the way you expose electronic. I 'played' with electronic components since I was 10 years old (I'm 50 now) and I'm still learning from your video. Thanks for that!
    cheers

  • @rctronic9863
    @rctronic9863 9 ปีที่แล้ว

    Thank you for that Video :)
    It helped me out realy much !
    Please keep doing such nice projects and Videos.
    Is your mother tongue german ? :)

  • @Gallardo6669
    @Gallardo6669 8 ปีที่แล้ว

    thank you so so much,u r a genius.please could you teach us also how to create and program a new IR signal to control existant IR receiving devices?

  • @zaprodk
    @zaprodk 9 ปีที่แล้ว +35

    Now, modify it so you can control the color :D

  • @Vangabonders
    @Vangabonders 9 ปีที่แล้ว

    New fan. Great videos man

  • @andymouse
    @andymouse 8 ปีที่แล้ว

    just put this together with my Arduino Yun, and it worked straight of the bat, I say Mr Great Scott spiffing show old bean, what a fun and useful experiment!love ya accent by the way ha!I've subscribed to you now and watch all your other uploads, but if this hadn't worked I probably would have said "what a silly man" or words to that effect.I got my sensor out of an old Panasonic DVD player, it had...IR7501 written on it, pin 1 was signal and pin 2 was ground, if anyone is interested.I love playing with light so I love lasers, hope ya got fun shit to do with themcheers

  • @dleivam
    @dleivam 7 ปีที่แล้ว

    awesome, just what I needed it, thanks

  • @cetronics8211
    @cetronics8211 3 ปีที่แล้ว

    Thank you so much. You helped me a lot.

  • @OxygeenFR
    @OxygeenFR 8 ปีที่แล้ว +1

    Thanks Scott, i just wondered, you used an RGB LED Strip right, can we asign a useless buton to change the color of the LEDs ?

  • @arvand26
    @arvand26 7 ปีที่แล้ว

    nice project. I will try next time. thanks

  • @wendys390
    @wendys390 7 ปีที่แล้ว

    Thank you, very well done!

  • @ProneToInfection
    @ProneToInfection 7 ปีที่แล้ว

    great video! just one question, I'm curious why "you need proper interruptions between copper tracings" ?

  • @CrimsonHawk09
    @CrimsonHawk09 8 ปีที่แล้ว

    Thanks for making this. I dreamt up so many ideas that you have brought to life. Theres very little I know on the side of electronics since I'm majoring in computer engineering tech. I'm still trying to learn electronics on my own and combine the two with some ideas pending.

  • @shmerlard
    @shmerlard 9 ปีที่แล้ว

    great videos!
    very cool project

  • @k_pihl1737
    @k_pihl1737 6 ปีที่แล้ว

    Very nice video dude!!

  • @CoreyGibson43
    @CoreyGibson43 9 ปีที่แล้ว

    Really awesome tutorial.

  • @DevProdigy
    @DevProdigy 7 ปีที่แล้ว +1

    Afrotechmods and that ultra super cap!

  • @capiberra4118
    @capiberra4118 7 ปีที่แล้ว

    Cool idea. Thanks!

  • @Richie_
    @Richie_ 2 ปีที่แล้ว

    I made a similar set-up yesterday. You can control any electrical device with this.

  • @flamesflames8628
    @flamesflames8628 8 ปีที่แล้ว +1

    i love your work. I don't have an arduino nano, so how can i go about with the IR decoding without using the arduino nano? pls really need your help

  • @lukmannet
    @lukmannet 7 ปีที่แล้ว

    Cool scott, keep moving...

  • @Raimundoraimundo1992
    @Raimundoraimundo1992 8 ปีที่แล้ว +1

    usa seis botoes.. voce pode controlar tres cores rgb, e por a cor que quiser.. otimo video

  • @edisongiraldo1534
    @edisongiraldo1534 9 ปีที่แล้ว

    Greetings 'm from Colombia and I see your videos very much like me thank you very much from you where it is ?

  • @memd777
    @memd777 8 ปีที่แล้ว

    this guy is awesome... i want such guys in my home

  • @srivatsan1904
    @srivatsan1904 7 ปีที่แล้ว

    keep making cool stuff that's affordable and other folks can make too.
    P.s I noticed the German accent considering you're doing this stuff and college is free in Germany what kind of engineer exactly are you?

  • @Soldera_tools
    @Soldera_tools 8 ปีที่แล้ว

    very good pronunciation. my english isn't perfect, but i understood you from the first time!

  • @khilanpandya5880
    @khilanpandya5880 7 ปีที่แล้ว

    great scott thank you so much

  • @florinbaciu3294
    @florinbaciu3294 7 ปีที่แล้ว

    you are best of electronics

  • @Gmtail
    @Gmtail 8 ปีที่แล้ว

    Thank you, very helpful.. And I could listen to you say Hot Glue all day long..:-)

  • @Beauchot78
    @Beauchot78 8 ปีที่แล้ว

    That was really cool!!!

  • @samerazar
    @samerazar 8 ปีที่แล้ว

    awesommeeeeee!!!! I like turning my house into a smart house

  • @thanhdongsi7806
    @thanhdongsi7806 8 ปีที่แล้ว

    Can I use the ATTiny85 instead of the Arduino Nano? Great video, though!

  • @electroimpex8897
    @electroimpex8897 8 ปีที่แล้ว

    Das ist wirklich eine Richtig gute Idee

  • @jasonalmine
    @jasonalmine 8 ปีที่แล้ว

    Great! i wish i have all the tools needed :D

  • @raginimeena410
    @raginimeena410 7 ปีที่แล้ว +1

    Question:- Which tool you use for recording your computer's screen?

  • @donaldfilbert4832
    @donaldfilbert4832 8 ปีที่แล้ว

    I have learned so much watching your channel !! Thanks a ton !!! {:>)

  • @malgailany
    @malgailany 9 ปีที่แล้ว

    Great one, thanks.

  • @zannatulraiyan6764
    @zannatulraiyan6764 7 ปีที่แล้ว

    i am great fan of you like . I just love your videos. In some of your videos you have put the arduino in sleep mode. I was wondering how you do that. It would be great if you do a video based on that specific topic of "put an arduino in to sleep". :)

    • @greatscottlab
      @greatscottlab  7 ปีที่แล้ว

      I think Kevin Darrah made a video about the subject.

  • @jpspillz9218
    @jpspillz9218 8 ปีที่แล้ว

    Hi! Great video! One question though... Why exactly did you need the capacitor? I am brand new to this kind of thing.

    • @jamiebenson5505
      @jamiebenson5505 8 ปีที่แล้ว +1

      +John Spillane The capacitor is used to smooth out any "bumps" in the current flowing to the Arduino; it is a fail safe of sorts.

  • @adityapandey-lg1cc
    @adityapandey-lg1cc 7 ปีที่แล้ว

    great channel man 😄👍👍👍

  • @thedavinator37
    @thedavinator37 7 ปีที่แล้ว

    Awesome project. I might try this if my dad lets me hot glue an LED strip to his tv stand lol

  • @Time4Technology
    @Time4Technology 9 ปีที่แล้ว

    Awesome! :)
    Now i've got some use for my Arduino Nano - There are actually not that much projects out there for it..

    • @zaprodk
      @zaprodk 9 ปีที่แล้ว +3

      You can use almost any "Arduino"-project with your Nano. It's just the form factor that's different. Electrically it's the same as an Uno or similar board.

    • @Time4Technology
      @Time4Technology 9 ปีที่แล้ว

      *****
      That may be, but then I would have to rewrite the codes and use other ports

  • @vidm96
    @vidm96 9 ปีที่แล้ว

    This would really be awesome with a logitech harmony remote. You could create a fully automated home movie theater with lights that dim when the movie starts.

  • @ryankruger7401
    @ryankruger7401 8 ปีที่แล้ว

    Fantastic , it helped. thak you .

  • @WilliamStemNetwork
    @WilliamStemNetwork 8 ปีที่แล้ว +1

    Hi Scott. Do you (or anyone else reading this) have a link to a website/video explaining how to use the hexadecimal code from the receiver, and recreate it with an IR led connected to the Arduino? Any and all help will be appreciated.

  • @xxbuschxx9647
    @xxbuschxx9647 4 ปีที่แล้ว

    Great work I dont know if this is normal but I have a RCA TV remote and the red and green buttons can turn my LED light strip brightness up and down and only those two buttons I bought the light strip this year and have had my RCA flat screen for 3yrs

  • @victormontagut5865
    @victormontagut5865 6 ปีที่แล้ว

    Great idea ! Thanks : )

  • @emanuelcastanho470
    @emanuelcastanho470 5 ปีที่แล้ว

    How to do this without the arduino?
    Great video :)

  • @tommyallehamn9543
    @tommyallehamn9543 8 ปีที่แล้ว

    You are TALENTED man!
    but is it possible to shrink it to an ATTiny85? or maybe to an ATTiny13?
    and shrinking means, upload this sketch to an ATTiny instead of UNO.
    actually, I tried, but I had a problem with the timer.
    Any suggestions?

  • @wagdbikerider
    @wagdbikerider 8 ปีที่แล้ว

    you are a genius dude

  • @bantirani9342
    @bantirani9342 6 ปีที่แล้ว

    Awesome, cool too cool and definitely your are way too genius....

  • @hussainmayouf5835
    @hussainmayouf5835 7 ปีที่แล้ว +2

    What is the benefit of the capacitor ?
    Great project 👌

    • @zoksss5323
      @zoksss5323 4 ปีที่แล้ว

      Filtering voltage

  • @tamilselviselvi9839
    @tamilselviselvi9839 7 ปีที่แล้ว

    Thank you Nick b

  • @KiLL_BiLL_9
    @KiLL_BiLL_9 8 ปีที่แล้ว

    excellent brother.. :))) i love to make it ..but A problem..I am a mechanic and zero at electronic. .can You explain each and every step with Components So I can make It..and that computer codeing too..Waiting for ur rply..

  • @manuel14ism
    @manuel14ism 8 ปีที่แล้ว

    You are a fucking genius man your videos had impress me i see your videos and i ask my self if i study Electronic Engineering i will do this and even more? you are a genius man keep it up dude

  • @nemanjamaslovaric267
    @nemanjamaslovaric267 6 ปีที่แล้ว +2

    Hello GrestScott, I have one question for you. I made similar coding just for relay on and off. On arduino uno it works just fine, but when I try sending it on attiny85, nothing happens. I made some project with attiny85 and thay all works so it's not problem in programing attiny. Can you help me pls??

  • @lennybishop9840
    @lennybishop9840 5 ปีที่แล้ว

    I found a couple of remote controls from old toys, with 4 button, and an extendable antenna, instead of an IR. Do you have an instructional video on how to repurpose this type of remote? I have a total of 3, and can send you 1 for testing, and to keep if interested. They are really cool remotes, hense the reason I want to repurpose them.

  • @jacobstable9333
    @jacobstable9333 8 ปีที่แล้ว

    Hello your video is awesome and can i connect on this 120 v lamp ?

    • @iPelaaja1
      @iPelaaja1 8 ปีที่แล้ว

      Yes, if you use relay. There are thousands of tutorials online

  • @kunal_nc
    @kunal_nc 8 ปีที่แล้ว

    AWESOME PROJECTMAY I HAVE YOUR INSTRUCTABLE SITE

  • @Metroid1890
    @Metroid1890 7 ปีที่แล้ว

    On this holidays remember to share with your family a great time... by controlling the x-ma's tree's lights with the TV controller :')

  • @GokerMertturk
    @GokerMertturk 8 ปีที่แล้ว +2

    Do we have to use the capacitor ?

  • @andymouse
    @andymouse 8 ปีที่แล้ว +7

    because the carrier wave has been removed, the set up is vulnerable to stray IR light as explained by Mr Greatscott, so I flicked my cigarette lighter in front of it and behold it gave it a HEX code! Wonder how many suspicious cigarette's I would have to light to get the same HEX code ?

    • @coriscotupi
      @coriscotupi 7 ปีที่แล้ว

      I thought the carrier was removed AFTER the detector, i.e. the IR sensor is still protected?

    • @__mk_km__
      @__mk_km__ 6 ปีที่แล้ว +2

      Hmm...
      Thats quite interesting.
      So, cigarettes burn particles 36.000 times a second(36 KHz)

    • @tae6175
      @tae6175 6 ปีที่แล้ว

      Use a cigarette lighter to turn on LEDs. Lel