If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

IR sensor

In this video we connect, bend and wire Bit-zee's IR sensor. This sensor will allow Bit-zee to receive commands from a universal remote control. Created by Karl Wendt.

Want to join the conversation?

  • hopper cool style avatar for user Ok Boomer
    what dos IR stand for?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • piceratops ultimate style avatar for user mtrinchini
    I have watched the entire Bit-zee Bot video series multiple times; and have copied the pin-outs chart from "Motor controller connection to Arduino" video & "LED eyes" video. In this video I understand that there are three leads coming from the IR sensor, the one to the left is the signal connected to pin twelve on the Arduino, the center is connected to ground, and the one to the right is connected to five volt out. On the chart Pin eleven is labeled as "front IR sensor", and pin twelve is labeled "rear IR sensor". Because of this I am inclined to think there are two IR sensors. But in this video only one was installed on the Bit-zee Bot. Are their two sensors? Or are two of the leads used for signal?
    (0 votes)
    Default Khan Academy avatar avatar for user
  • piceratops tree style avatar for user Sree Vardhan Reddy
    Where did karl make the receiver module..
    (0 votes)
    Default Khan Academy avatar avatar for user
  • marcimus pink style avatar for user Vitor Azambuja
    Where i can download the codes ?
    (0 votes)
    Default Khan Academy avatar avatar for user

Video transcript

So this is our 38 kilohertz IR receiver module. And it works with our universal remote that you can see here. And you can see it lighting up as we push different buttons. And that's the same remote we took apart in our reverse engineering videos. So we're going to plug this into our bread board, and then we're going to bend it back. And the reason we're bending it back is that it allows you to trigger it from more different locations in the room. And the lead that is on the left hand side when you're looking at the Bit-zee Bot is the one that we want to connect to our Arduino, digital pin out number 12. So we're running that straight back to our digital pin out. And then we're going to connect the other two leads, the center and the one on the right, to our positive and our ground. So we've got a ground pin there on the front side of our Arduino. And we're just going to run that black wire, which is our ground wire, to that ground on our Arduino. And right now, we're just sort of sizing the wiring. And that goes to the center of our IR receiver module. And then there's also a five volt out positive. So we're going to connect that to our receiver module as well. And we're connecting that to the leg on the right side of the receiver module and, again, to the five volts out. And now we're going to test our module. We've already loaded some code. And we're going to push our forward button. And you can see it's running our motors there, so that's working. We'll provide the code in our videos that talk about the Arduino.