#171

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2017
  • Everybody talks about Bluetooth and Wi-Fi. But one heavily used technology is often forgotten: Infrared. Today we will remember this technology and bring it into the today's world of microcontrollers like ESP32 and ESP8266 and to technologies like MQTT and node-red. And as usual, we will dig a little into the basics.
    Today
    - We will use infrared rays to detect objects
    - And find a way to make the detector immune against interference from daylight
    - We will use standard photodiodes as well as IR receivers to detect IR signals and see the difference
    - Then we will use IR instead of LoRa or Wi-Fi to transport information over the air
    - We will enable an Arduino UNO to receive, learn, and send IR codes
    - We will port the IR library to the ESP32 and implement MQTT
    - Finally, we will build a device which can control our home appliances like TVs or Lights
    - This device should be able to receive signals from an IR remote controller and transfer them via MQTT to Node-Red
    Links:
    Sketches: github.com/SensorsIot/Definit...
    Video about Phototransistors & -diodes: • Photodiode vs Phototra...
    IR code databases: irdb.tk/ , github.com/probonopd/irdb
    IR Receivers: s.click.aliexpress.com/e/3vnAUB6
    IR Sensor: bit.ly/2BdXEEJ
    IR LED & Photodiodes: bit.ly/2BcRd4G
    IR LED & Photodiodes: s.click.aliexpress.com/e/rNnmIyZ
    Reflective IR sensors: s.click.aliexpress.com/e/iYNBaUn
    ESP32: bit.ly/2sOMR3E
    Arduino UNO Clone: bit.ly/2tJE9Af
    Interesting ESP8266 IR/MQTT project: github.com/enc-X/mqtt-ir-tran...
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com/sensorsiot
    If you want to support the channel and buy from Banggood use this link to start your shopping: bit.ly/2jAQEf4 (no additional charges for you)
    Official Wemos Store: s.click.aliexpress.com/e/jUzBiIq
    profile.php?...
    / spiessa
    www.instructables.com/member/...
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my main job
    If you want to buy me a coffee: www.paypal.me/AndreasSpiess
  • НаукаНаука

Комментарии • 547

  • @grigorigahan
    @grigorigahan 22 дня назад +1

    less than 24 hours and I'm back on this channel again. I just discovered videos of people reversing their remote's using a logic analyzer. So first stop here is learning this and and back on my old standby channel. Andreas really is a treasure to this community.

  • @sullivanzheng9586
    @sullivanzheng9586 2 года назад +11

    Good to hear our vblogger sharing his lifetime wisdom of having a happy & long lasting marriage.

  • @Ikbenjanus
    @Ikbenjanus 2 месяца назад +2

    One of those rare useful (very useful) content on RUclips. Thank you sir

  • @paparoysworkshop
    @paparoysworkshop 6 лет назад +6

    I found your channel via a comment you left at EEVblog and I'm glad I did. You have a new subscriber.

  • @meetthefloccers8112
    @meetthefloccers8112 4 года назад +1

    Sir, thank you dearly for all your tutorials. I am new to ESP32 and have gained so much watching. I was needing to move IR receive to core 0 to get the update rate I needed. Would never have made it without your dual core video and your updated IR library. Thank you so much!

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      You are welcome!

    • @meetthefloccers8112
      @meetthefloccers8112 4 года назад

      ​@@AndreasSpiess Sir, I hope you would provide some additional guidance. I am having trouble getting a send. I have reviewed your git hub files and responses below. I just cant identify what output pin you are using for irsend? Is this GPIO3? There are several boards as you know. I bought an Adafruit HUZZAH 32 not a dev board. My mistake. The Adafruit board does not have GPIO3 wired out. Scouring through the library I can find the command identifying output pin assignments. Thank you for any assistance.

    • @meetthefloccers8112
      @meetthefloccers8112 4 года назад

      @@AndreasSpiess Sir, thank you again for all your wonderful vids. I am sorry I bothered you, however, I did find the command. Opening up IRremote.h in Visual Studio made it easier to locate the line is 262 - byte timerPwmPin=15. I changed the value from 3 to 15. 15 is another PWM pin on the ESP32. Once again, thank you. I really love this little chip.

    • @meetthefloccers8112
      @meetthefloccers8112 4 года назад

      Sir, like you I like to keep a happy wife. This IRsend was the final piece in an automated TV volume level mod I have been making. My wife hates the volume changing when commercials come on. I have made a hack for her using a mic input to a PID loop with time proportional output. I use the IR remote to change the setpoint of the PID. Then I average the mic input to get a smooth sound level reference. The PID adjusts the TV volume based on the setpoint, lowering the volume when commercials come on, or when she yells at me. If you raise or lower the setpoint the volume tracks with it. She is very Happy. Couldn't have done it without your vids.

  • @umbertomurri9478
    @umbertomurri9478 4 года назад +1

    A very useful and wide sight for who start to explore the IR basics and the IR communications

  • @walterbunn280
    @walterbunn280 Год назад +2

    I enjoyed this quiet a bit. Very cool.
    Since we're talking light, there is a method for discriminating different light sources that you might find helpful:
    All light can be polarized. Most people are familiar with polarized light be blocked by orthagonal filters, but, what they forget, is that there's a third level of polarization.
    That third level is 'color shifting'.
    Color shifting allows you to take one color of light, and turn it into another.
    To do this, you take two polarized filters at 90 degrees (such that they block most light coming through them), and simply add a third filter.
    The third filter shifts the frequency of light that makes it through the first 2 filterz.
    You can then check for color shifting in time with the 3rd filter or check for specific color of light keyed to your receiver/emitter combo.

    • @AndreasSpiess
      @AndreasSpiess  Год назад

      Interesting! Never heard of this effect!

  • @martin.winkelhofer
    @martin.winkelhofer 6 лет назад +36

    This episode was especially funny because of your comments about your wife's reactions :) I enjoyed it a lot! .. btw: now I'm building a "longer range" laser beam detector to detect human body movement inside a house with the capability to distinguish direction (2 close beams) and frequency carrier is a great help against various ambient light disruptions. Thanks for another good episode, Andreas.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +2

      Good luck with your lasers! If I remember I saw this technology in some action films. But they had more than two lasers there.

    • @kelvynroberts9506
      @kelvynroberts9506 5 лет назад

      Martin Winkelhofer
      Did you use the IR TX and TSOP RX?
      What was the max range between them?
      Are you still using it?
      Please, send me some details of this project
      Kelvyn.sousa@gmail.com

  • @grzesiek1x
    @grzesiek1x 3 года назад

    the best video I found on the youtube!!This is exactly what I needed! And you explain everything perfectly!! It proves also my theory that chanells with moderate number of views and without stupid addverts etc. are the best ones! Like yours!

  • @raguaviva
    @raguaviva 6 лет назад +1

    Yet another amazing video! Interesting project, well organized and explained.

  • @nathanpearson4600
    @nathanpearson4600 5 лет назад

    I love your videos Sir. I am looking to make a simple ir blaster to turn on and off a TV and stumbled upon yet another great video from the guy with the Swiss accent. Thanks for the info.

  • @2doritos
    @2doritos 10 месяцев назад

    huge thanks, i searched this for a school project and this video explains every detail

  • @BatonyRobson
    @BatonyRobson 5 лет назад +5

    Wow, what a nice lesson) I haven't seen such for a long time) I love how you do it)

  • @moisescatala9964
    @moisescatala9964 5 лет назад

    Thanks for your videos Andreas. I enjoy so much watching them

  • @curtisoneill9929
    @curtisoneill9929 2 года назад

    I love searching YT and seeing you in the results, I know ima get all the answers to questions I did think of, and didn't know to ask.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Indeed. I also use RUclips a lot for learning.

  • @jinmingtang1545
    @jinmingtang1545 2 года назад

    So logically exposing the history of the IR technique development!

  • @munjee2
    @munjee2 3 года назад

    I have been searching for basically this for so long , all my RUclips searches got me no where , only showing me overly simplified, uninformative videos ,the when I'm not looking a day later it recommends me the perfect video when I'm watching a laptop review

  • @RETRODISTORT
    @RETRODISTORT 6 лет назад

    Amazing! I wanted to do this for a while, but I lacked the material and/or the time to test it
    Great video!

  • @jtreg
    @jtreg 6 лет назад

    You are the best by far. Thank you!!

  • @supremeleader5516
    @supremeleader5516 Год назад

    Amazing video Andreas, well done

  • @wjhoogervorst
    @wjhoogervorst 6 лет назад

    Great video, just what I needed to be able to switch off my TV etc via my Home Automation via MQTT

  • @cellularmitosis2
    @cellularmitosis2 6 лет назад

    Exactly the video I was looking for!

  • @tonysfun
    @tonysfun 2 года назад

    Hope you had a great trip! But today I'm playing with IR and your video was very helpful again! Thank you Andreas!!! Have a great week!

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Unfortunately, the Pamir trip was cancelled because it was right at the border to Afghanistan. So Joe Biden was a little too fast for me :-(

    • @tonysfun
      @tonysfun 2 года назад

      @@AndreasSpiess Now that is tooooooo bad! Hope you had a plan B or even plan C! But nice to hear from you! I don't trust some of these "??? countries" where you can disappear and nobody does anything about it! It's safer here or in our country and most Europe also, but going to some parts of the world isn't for me.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      My wife and me will do a bicycle trip...

  • @timfairfieldAETestandMeasure
    @timfairfieldAETestandMeasure 5 месяцев назад

    Fantastic explanation and well organized.Im working on a custom remote for my mom who is very old and is getting confused with the overcomplicated remotes. Ill just have on off and a few favorite channels on big buttons. Your resources here and explanation willhelp me save time.

    • @AndreasSpiess
      @AndreasSpiess  5 месяцев назад +1

      Cool! I am sure she will be proud of her son.

  • @empty0303
    @empty0303 6 лет назад

    This is so cool, thank you for sharing this video :)

  • @Hauketal
    @Hauketal 6 лет назад +7

    About the IR-mode for the serial port at 15:00 IRDA is a protocol stack for IR data transfer, similar to bluetooth, but older. This probably switches the serial port into a mode compatible with IRDA lower protocol layers. For starters, have a look at the Wikipedia article.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I think so, too, but did not have the time to explore. And I also needed the higher (protocol layers)

  • @johnburgess2084
    @johnburgess2084 Год назад +1

    Thanks for the educational video.

  • @tracyscott3261
    @tracyscott3261 3 года назад

    Thank you. Your videos are very useful and interesting.

  • @JohnoScott
    @JohnoScott 6 лет назад

    Fantastic. You totally own the "nerd" claim and I love the humour in this one.

  • @RealEngineer
    @RealEngineer 6 лет назад +1

    As always a quality video :)

  • @smtjets
    @smtjets 6 лет назад

    And winner of my first comment on youtube is ANDREAS SPIESS the guy with the swiss accent... thank you for all your great videos!
    A few weeks ago I bought during a flashdeal on aliexpress a cheap esp-01 with a relay and ended here on your channel...
    30 Years ago when I was building my first cnc router it was really complicated to get all the knowledge together and today we just google...
    BTW I remember in one of your videos… problems with a 3D printer....maybe Iˋm the man... we are almost neighbours.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Maybe you send me a short note on FB or Twitter if you live close by. Concerning the 3D printer, I got the good news that my new Prusa should arrive before Christmas...

    • @smtjets
      @smtjets 6 лет назад

      Andreas Spiess ...I have no FB or twitter, check your mail @aru....

  • @tatavenugopal3082
    @tatavenugopal3082 3 года назад

    Super video ....Thank you Andreas

  • @WayneTheSeine
    @WayneTheSeine 5 лет назад

    Brilliant. Every helpful. Thank you.

  • @frostgreen5527
    @frostgreen5527 6 лет назад

    Nice video, entertaining and informative. 😀

  • @goku445
    @goku445 3 года назад

    Liked for the information, subbed for the humor.

  • @javierunamuno6786
    @javierunamuno6786 6 лет назад +1

    Swiss humour at its best! And the same for the videos!
    Being more or less in the same age bracket, I can't realize how you or Pete Scargill can: buy the things, test them, make developments, write and modify libraries, shot videos, edit them, mantain a blog, mantain a marriage, answer the comments, eat, sleep? , and you are not even retired like the other great bald in Scotland/Spain.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Here our day has 24h. And if not sufficient, we have to work during nights ;-)

  • @YusufBAYLAV
    @YusufBAYLAV 5 лет назад

    Hi @Andreas Spiess, re-watching your videos an idea came in mind, but could not be sure about a thing and wanted to contact you. You're declaring that it's possible to prevent day light from tricking IR receivers. I'm thinking about creating a robotic pan tilt mechanism, which follows only an IR emitter. I mean if not please suggest me some technology. I'm fed up with my motorcycle mirrors change their angles because of the wind. And as I go faster I need to bend my head in order to resist the wind and supply some aerodynamics. This results with the fact of losing my mirror vision. I'm now searching for a technology which will let me to 3d print a pan tilt mechanism to arrange my circle shaped mirrors angle relatively to my heads movement. I do not want to lose my vision in any case. Could IR be this technology? Could you advise me?

  • @sallen135
    @sallen135 5 лет назад +3

    Your videos are amazing! It seems like every idea I have for a project I first check your channel and almost always can learn what I need from you.
    Are you saying your ESP32 IRremote github branch IRrecord sketch works with the esp32? If so, which pin do you use for the IR LED?

    • @AndreasSpiess
      @AndreasSpiess  5 лет назад

      I do not remember the pin. But you see it in the sketch.

  • @joeybushagour2612
    @joeybushagour2612 6 лет назад

    Great video!

  • @ct3sibius
    @ct3sibius 5 лет назад

    You save my day. Thanks.

  • @toufikib9283
    @toufikib9283 Месяц назад

    brother that's a great work ♥

  • @verjikovskiy
    @verjikovskiy 4 года назад +1

    amazing tutorial - though still a lot of IR related questions

  • @bfx8185
    @bfx8185 6 лет назад

    Its very useful and funny:) Thank you!

  • @johnjcb4690
    @johnjcb4690 Год назад

    Oh boy i was looking for this

  • @andrebernardmennicken4685
    @andrebernardmennicken4685 4 года назад

    Belgium-Malmedy, 2Dec2019 -- Very clear and fine presentation. I will check your other videos on that IR or Com Subject. Tks as it will be usefull for setting up an application of mine...that i hopefully can fix in Center of our Capital. Best Regards AbM3n.

  • @OthmanAlikhan
    @OthmanAlikhan 3 года назад

    Thanks for the video, very advanced =)

  • @SebaOPL
    @SebaOPL 3 года назад

    It was very helful. Thank you!

  • @CronaTheAwper
    @CronaTheAwper 5 лет назад +13

    14:08 "Somebody please explain me women." XD

  • @avejst
    @avejst 6 лет назад

    Thanks for sharing 😀👍

  • @q12x
    @q12x 3 года назад

    very nice !

  • @norberthartmann5075
    @norberthartmann5075 6 лет назад

    wie ein schweizer uhrwerk .....
    wieder sehr informativ - ich sage mal danke.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      Das Uhrwerk ist aus dem Silikon Valley, nur der Inhalt is Schweizerisch ;-)

  • @tonyolivieri3497
    @tonyolivieri3497 6 лет назад

    Thank you for all of your great videos. Very appreciated. I'm using the IRRemote library as described and all is working(Send and Receive). I want to take the values for the remote control I've read and write them to memory using SPIFFS. Since IR is running an ISR, my code bombs when I try to write the remote data to SPIFFS file. I'm struggling to get around this issues. I do not see any methods to terminate the ISR when I'm done reading codes. I'm using Adafruits ESP32 Feather. Any direction would be greatly appreciated. Thanks!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I never use SD cards, so I do not know where the problem is. What if you attach the ISR to a pin which does not move during SD operation? Then no interrupt should trigger.

  • @leviarcanjo6309
    @leviarcanjo6309 5 лет назад

    i love you!! it's work perfectly

  • @JanJeronimus
    @JanJeronimus 6 лет назад

    Again an interesting video from Andreas !!
    I also am thinking about putting ESP's with IR send and receive (and perhaps also a buzzer and some other sensors) in my house. However if you have several of this IR home automaton interfaces near each other send IR only from one! The devices will receive signals from each other and the logic can become confusing.
    There are also much devices who use a IR power toggle code. This requires the home automation system to maintain information about the current state. Or you need to add other sensors (e.g. the power consumption) to check if the device is on or off.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      1. As I mention in the video: You have to use an addressing scheme if you want to have several senders. Then, Node-Red can send an MQTT message to each of your senders, one after the other. Or the address is the delay each sender has to wait if it gets the MQTT message till it sends the IR signal...
      2. Toggle codes suck. I do not like them at all because of the problems you describe.

  • @LowtechLLC
    @LowtechLLC 6 лет назад

    Dude, you rock!

  • @rickharold7884
    @rickharold7884 2 года назад

    Awesome

  • @Jhinsydney
    @Jhinsydney 6 лет назад

    Brilliant!!!

  • @adwait_natu
    @adwait_natu 9 месяцев назад

    Very well explained! Thank you so much! Have you uploaded the code for your own code what you are talking about at 13:50 made on attiny85? If yes please let me know, im working on project where im facing same issue with other remote interfarrence

    • @AndreasSpiess
      @AndreasSpiess  9 месяцев назад +1

      I do not think so. However it was very simple. Just create a few 1 and 0 and check if the receiver gets the same sequence.

  • @colmaniot6331
    @colmaniot6331 6 лет назад

    Dear Andres thank you for the comprehensive explanations.
    I am trying to use the IRSendDemo with ESP32 (WROOM-32 1313) and not sure how to interpret the comment
    " An IR LED must be connected to Arduino PWM pin 3", pin 3 is RX0 in this board pinout.
    Should it be TX0 (sadly not working), what is the proper pin to connect in order to send IR codes using your
    examples (or the ESP32 Compatible examples from your github) ?
    Thanks.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      In the sketch the pins are defined as follows: int RECV_PIN = 14;int SEND_PIN = 5; No pin 3

  • @wrongsideof40
    @wrongsideof40 Год назад

    Hi - I just discovered this video. Fabulous! And you touch upon EXACTLY a little project I want to attempt myself; a CW keyer with an infrared link to the radio transceiver. The Is there much more circuitry required to turn the 'hi/lo' from the IR receiver into something that will key the rig? Any pointers much appreciated. *****It's the next day, and I only just realised that if I want to put the IR link between the paddle and the keyer (or rig with built-in keyer) I need TWO IR links; one for dits and one for dahs. So as well as, say, the 'standard' 38kHz link, do I need to choose the other link's frequency as far from 38kHz as possible or can I use any other freq than 38kHz? Thanks

    • @AndreasSpiess
      @AndreasSpiess  Год назад +1

      You could code the IR signal (one code for the left and another code for the right paddle. You get IR receivers for other frequencies. But I do not know how sharp their filters are.

  • @IanWilkinson-SgtWilko
    @IanWilkinson-SgtWilko 6 лет назад

    Another excellent video!
    Out of interest, as you seem to fix a lot of libraries, do you tend to send pull requests back to the original repository with the fix?
    I often want to use a thing you've fixed but don't know if the original repository (which quite often has moved forward since your video) includes your fixes.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      So far I did not send it back. Maybe I will do it with this library.

  • @jonanthony7709
    @jonanthony7709 8 месяцев назад

    You have a great way of explaining things. I have IR control for TV and camera from ESP32. However I would to move from the Arduino IDE to the ESP-IDF as I want to use FreeRTOS.Any hints on the best way to use the IR code in the Arduino framework to ESP-IDF. Thanks again.

    • @AndreasSpiess
      @AndreasSpiess  8 месяцев назад

      You can use RTOS also in the Arduino framework. I did a video about that.

  • @RobinGerritsen1995
    @RobinGerritsen1995 6 лет назад

    Would you please make a video of the M5Stack? It's an ESP32 with battery and many expansions. There is a 1W speaker connected to the IIS-port of the esp32.
    I am wondering what you could do with these features...

  • @Metroid1890
    @Metroid1890 5 лет назад

    Hello Andreas, I've been thinking about if it's possible to add some kind of conduit as a repeater to send IR signals (say something like the way optic fibers work)

    • @AndreasSpiess
      @AndreasSpiess  5 лет назад

      I am not sure if it works with normal IR. Usually, they use laser diodes which is a different light source.

  • @marsim4150
    @marsim4150 6 лет назад

    finally no noise in hearphones !!! :-)
    thank you

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Thanks for your feedback. I did not change anything. Hopefully, it will stay like that...

  • @joinedupjon
    @joinedupjon 6 лет назад

    I was thinking you were going to go for a good old microswitch... but at least the story had a happy ending :)

  • @JS-do2ye
    @JS-do2ye 2 года назад

    Very nice. Would it be also possible to send Analog values via IR over short distances (e.g. 3cm).

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Yes. But you have to convert them into digital values and back.

  • @grzesiek1x
    @grzesiek1x 3 года назад

    so if I understand those diagrams right (11:55) - every signal I send from my remote control is like delayed about 0,08 sec ? I mean when I keep pressing the same button for example.

    • @AndreasSpiess
      @AndreasSpiess  3 года назад +1

      The receiver for sure has to wait for the whole transmission plus the time to decode teh signal.

  • @williamponraj3637
    @williamponraj3637 4 года назад

    How to convert raw codes to json format too send through mqtt

  • @cody4128
    @cody4128 2 года назад

    Any videos in the works for building a bigger longer distance IR array? Maybe a water tight enclosure to be mounted on the front of a vehicle?

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      So far I have no plans for that. But you never know ;-)

  • @chuxxsss
    @chuxxsss 6 лет назад

    Another fantastic vlog Andreas. I don't know how you find the time mate.

  • @vsomareddy
    @vsomareddy Год назад

    Hi Andreas, I have 4 sets of IR transmitters & receivers on my vacuum robot out of which 2 transmitters have gone bad (2 of them are not emitting the light when I watched the video recording as the light was not visible to bare eyes, the other 2 can be seen glowing once in a while in the video recording). How to determine if the IR transmitter has gone bad or if there is something wrong on the mother board. If I want to replace only the IR transmitters, how to find out what specification transmitters are used on the device originally. Thanks in advance for your help. I could share photos or videos, but I guess I cannot do that here.

    • @AndreasSpiess
      @AndreasSpiess  Год назад +1

      I have no idea to find a replacement :-( To find out if the transmitters work, I would measure if they get a signal (with an oscilloscope). If they get a signal and do not emit IR, the error most probably is with the diode. Otherwise probably on the mainboard. Be sure they are emitters and not receivers.

  • @deftdawg
    @deftdawg 6 лет назад

    @Andreas did you have to do anything to get decent range from your emitters? I've read most emitters in Remotes are "over driven", but I'm not to sure if that can be done with only 3.3V coming from an ESP*

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      This video was not about the distance, it was more about the logic to drive the LEDs. These microcontrollers only supply very little current ( a few mA) and if you want max power you have to add transistors to amplify the signals. I also do not know of high power IR diodes, but I never searched for them.

    • @deftdawg
      @deftdawg 6 лет назад

      Andreas Spiess about logic not about distance is fair enough... folks testing IR may think (as I did when first trying IR stuff) that the emitters are not reproducing codes correctly when in fact they are only effective inside about 30 cm driven by 3.3V ESP* pins, also looking with a phone camera is a good way to verify the emitters are doing something. :)

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      You are right. My setup worked over a distance of about one meter (from my ESP to the LED lamp above the bench. But it heavily depends on the quality of the receiver.

  • @lufunomphahlele2352
    @lufunomphahlele2352 3 года назад +4

    this guy is killing me ,youre very funny

  • @iamsuperroot
    @iamsuperroot 6 лет назад

    How is the Arduino connected to the ESP32? Looks like ir devices are first wired to Arduino but later when MQTT is on ESP are the ir's on ESP? Thank you.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      The ESP32 is used instead of the Arduino. So there is no need for a connection.

  •  6 лет назад

    Hello Andreas, thank you for this vídeo, could be share the node-red flow you use in this tutorial please. Thanks again.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Should be on Github by now

    •  6 лет назад

      Thank you Andreas!

  • @akshaysrivastava1270
    @akshaysrivastava1270 4 года назад

    Hey, I am trying to build an IR spectrometer inexpensively. I am new to arduino though. The basic principle is that the diode shall emit IR radiation and then the sample to be analyzed would absorb a specific wavelength of the radiation (characteristic for different molecules). Is it possible to use this detector for this analysis (wavelength instead of it working like an ON/OFF switch and not working on detection of the intensity of IR). If not, can you please point me in the right direction??

  • @JohnChrysostom101
    @JohnChrysostom101 3 месяца назад

    Yup like the sega pda and the casio watch you can use IR to text or send data

  • @backlash00
    @backlash00 3 года назад

    In cases where propagation time is important, what's the best I can expect to see in a low to high transition at the transmitter to a low to high at the receiver output. No mechanical relay, to slow.

    • @AndreasSpiess
      @AndreasSpiess  3 года назад

      Propagation of light is 300'000km/sec. More important is the protocol and the transmission speed you use. I did not do measurements for that purpose. Maybe google knows?

  • @arlineandrews7619
    @arlineandrews7619 3 года назад

    I have a lamp with ir motion sensor which doesn't work anymore, I'm wondering if it could get" fried"

  • @arlineandrews7619
    @arlineandrews7619 3 года назад +2

    can we ask questions?

  • @deadchords4919
    @deadchords4919 6 лет назад +1

    interesting subscribed

  • @omaryanas435949
    @omaryanas435949 6 лет назад

    Great video!
    On another subject, I have been searching RUclips and the web for three days to find any tutorial on sim800l with esp8266, but unfortunately I couldn't find any complete tutorial. Except for one video but it is in Russian. Can we expect a video on this subject in the near future?

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      I have no plans to cover 3G technology anymore. I wait for affordable 4G technology. But I thought, the SIM800 is a widely used chip and you should find a lot of info on the net...

  • @loicsamson914
    @loicsamson914 6 лет назад

    Very interesting ! I was just thinking on how to add it sending capabilities to a sonoff th10 or 16 in order to power control and send ir commands to some hifi équipement:-)

  • @jschwindt
    @jschwindt 6 лет назад

    I did a very similar project last week but I used LIRC directly in my Raspberry Pi that runs MQTT and Node Red. I was also able to control remote devices using Alexa.
    BTW: what's the site with the IR codes database? I have a Sony stereo w/o its remote and I'd like to control it. Thanks!

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      I added the two services I know in the video description

  • @ljl451
    @ljl451 6 лет назад

    But after you decode the IR codes of the remote controller you want to copy, you also need to choose a specific IR send method (manufactory dependent) to send out the codes.
    Correct?

  • @chuckwilcox6997
    @chuckwilcox6997 6 лет назад

    Andreas an excellent video and well researched. Incredible quick turnaround on bringing something insightful and new to video.
    Did you determine the range of an IR beam transmits reliably to a receiver and did you discover what the maximum reliable distance for reflective transmission was, ie like the TV cabinet setup? I'm considering external passive IR with fresnel lense as they are low power, but your video has given me a few other ideas. Again, brilliant work :)

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      I think this is more an optical question and I do not know a lot about lenses. In my lab, the IR detector chips were very sensitive. I do not know how they would work on the outside with bright sun. I assume, they would go into saturation quickly and would no more able to detect the small signals of an LED.

    • @chuckwilcox6997
      @chuckwilcox6997 6 лет назад

      Mmm, yes I expect the IR chips will be saturated by natural daylight IR and yes an optical issue. Thank you for your response.

  • @Chaminox
    @Chaminox 2 месяца назад

    great video thank you! maybe use a limit switch for the tv door

  • @sblop
    @sblop 6 лет назад

    Great humor 🙂

  • @davebacknolaliki1452
    @davebacknolaliki1452 2 года назад

    So if we wanted to send ir signals and distinguish between different sensors sending them we would not be able to accomplish this with the ne555?

  • @chaitanyaghate3262
    @chaitanyaghate3262 3 года назад

    Hello, how to capture raw data of AC remote and send it to the device(AC) using that data, I am facing problem regarding buffer so I increase the size of buffer but afterwards it is printing continuously on serial monitor.

    • @AndreasSpiess
      @AndreasSpiess  3 года назад

      Unfortunately I cannot do remote debugging :-(

  • @sasajovanic6963
    @sasajovanic6963 3 года назад

    Dear Andreas, I liked your videos a lot. I'm trying to use ESP32 DOIT DEVKIT v1 to controll AC (Sinclair), my plan is to send RAW codes to the AC. I tested this on ESP8266 where I can select GPIO pins. How can I set GPIO pin for ESP32. Do I have to change something in boarddefs.h, irSend.CPP, irremote.h ?
    On my PCB design I put GPIO pin 12 for the IR Send. How can I set this PIN in your library ?

    • @AndreasSpiess
      @AndreasSpiess  3 года назад

      Better use this library: github.com/z3t0/Arduino-IRremote

    • @sasajovanic6963
      @sasajovanic6963 3 года назад

      @@AndreasSpiess Thank you for your answer

  • @karlisbalcers5715
    @karlisbalcers5715 6 лет назад

    Funniest video of yours! I showed it even to my wife :)

  • @MECAN3D
    @MECAN3D 2 года назад

    Gracias ☺️

  • @halukyilmaz9621
    @halukyilmaz9621 6 лет назад

    thanks for share, i got question about lora,
    i want to make group street lights like street 1, street 2 and is that possible to add street 1 group? i just think i should make them devid same id and when i send deviceid=street1, same lights will rise
    is that possible? @andreas spiess

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      Do you talk about LoRa or LoRaWAN? If you just use the LoRa protocol, you can use the Radiohead library to create an addressing scheme. If you use LoraWAN each node has its own address. But you are not allowed to send too many commands. LoRaWAN is designed to get sensor data, not to send commands.

  • @ndrsg3013
    @ndrsg3013 5 лет назад

    What sensor do I use to sense through thin paper? The same? but with higher sensitivity? Have you tried?

    • @AndreasSpiess
      @AndreasSpiess  5 лет назад

      Radar sensors work even through thin walls.

  • @experiencingtechnicaldiffi5184
    @experiencingtechnicaldiffi5184 6 лет назад

    I love this tech and find it very useful and try to use it all the time. However, for a simple cabinet door I would glue a magnet to the door and mount a reed switch under the shelf. Or you could mount the sensor at an angle so it can't see the remote. Or if the white cabinet makes that impossible just use a photo resistor since a closed cabinet is dark inside.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад +1

      I went through your proposals, one after the other. For the reed switch, the distance was too far (without seeing the sensor when the door is open). The LDR did not work because in spring and autumn when the sun shines flat, enough light came in to switch the TV on and if the lights were low during the TV sessions it switched off. The video was already long so I did not mention these experiments...

    • @experiencingtechnicaldiffi5184
      @experiencingtechnicaldiffi5184 6 лет назад

      I have used both reed switches and LDR for closet and cabinet lighting to good effect. On one closet I mounted a magnet on a post on the hinge side of the door to reach under the shelf and find the reed sw. I have used the reflective sensors for part position and control on automated assembly machinery where magnetic and micro switches could not be used. Also as timing devices where I find hall effect units can be fooled by dirt and metal chips. If your TV cabinet door is manually operated it seems you have found the best solution. Maybe if I watch enough of your videos I will be able to think outside the TV box, too.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      :-) Yes, the door is moved by hand.

  • @gujarisantamanyugmai
    @gujarisantamanyugmai 6 лет назад

    How can we decode "Air Conditioner" IR codes ?
    I want to transfer the code through XBEE from one module to another.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      There is a comment of a viewer below where you find more info.

    • @gujarisantamanyugmai
      @gujarisantamanyugmai 6 лет назад

      unsigned int rawData[67] = {4600,4450, 600,550, 600,500, 650,500, 600,1650, 600,1600, 650,500, 600,550, 600,500, 650,500, 600,550, 600,500, 650,1600, 600,1650, 600,500, 650,500, 600,550, 600,500, 650,500, 600,550, 600,1600, 650,1600, 600,550, 600,500, 650,500, 600,1650, 600,1650, 600,1600, 650,500, 600,550, 600,1600, 650,1600, 600,1650, 600}; // SAMSUNG 181818E7
      unsigned int data = 0x181818E7;
      no help down there!!
      I decoded these raw data but how can i send such a long data through ZBEE.

  • @reeseyme9613
    @reeseyme9613 6 лет назад

    perhaps a ultrasonic sonic sensor like those HC-SR04 will be better for the TV door project, its awfully easy to program it to detect in a specific distance and no worries on the ambient lighting issues.

    • @AndreasSpiess
      @AndreasSpiess  6 лет назад

      You are right, this is another possibility.

  • @MrFixitU.S.S.551
    @MrFixitU.S.S.551 4 года назад

    Will the sending and receiving diodes work over a distance of 1 meter?