Objectives: Be able to control LED’s by using a remote control Learn how to wire up an Infra-Red Sensor By the end of this session: You will have made the following circuit with a receiver which reacts to button presses on an IR remote control © S. Pithouse for use by Warwick Technology Volunteers Page: 1 Components: Arduino Uno Breadboard IR Receiver Resistors 1) Connect the components like in the diagram. Make sure that the dome side of the receiver and the short leg of the capacitor point to the right (away from the Arduino). © S. Pithouse for use by Warwick Technology Volunteers Page: 2 Jumper Wires Capacitor 2) Plug the USB cable into the Arduino and into the computer, then open up the Arduino software. It should look like this... 3) Copy and paste the ‘IR Remote’ program (from the webpage where you found this document) into the main window and click on Upload. 4) Open the Serial Monitor window © S. Pithouse for use by Warwick Technology Volunteers Page: 3 5) Press the Red button on the remote control, you should see a line of numbers on the screen, followed by text saying ‘No Match!’ 6) Copy (click and drag to select, then ‘ctrl+C’) the long line of numbers and paste them (ctrl+V) inside the curly brackets on the following line: 7) Upload the program 8) Open the Serial Monitor Window © S. Pithouse for use by Warwick Technology Volunteers Page: 4 9) Press the Red button on the remote control, you should see a line of numbers on the screen, followed by text saying ‘RED!’ 10) Now press the yellow button on the remote control, copy the long line of numbers and paste it into the following curly brackets: 11) Upload the program And open the Serial Monitor Window © S. Pithouse for use by Warwick Technology Volunteers Page: 5 12) Press the Yellow button on the remote control, you should see a line of numbers on the screen, followed by text saying ‘YELLOW!’ 13) Now press the green button on the remote control, copy the long line of numbers and paste it into the following curly brackets: 14) Upload the program And open the Serial Monitor Window © S. Pithouse for use by Warwick Technology Volunteers Page: 6 15) Press the Green button on the remote control, you should see a line of numbers on the screen, followed by text saying ‘GREEN!’ 16) Once you have got this far, push the board with 3 LED’s into the Arduino using pins GND, 13, 12 and 11 and watch what happens when you push the red, yellow and green buttons! Plug into these holes, and make sure that it is this way round © S. Pithouse for use by Warwick Technology Volunteers Page: 7