Chapter 13. Cutting the Cord: Infrared

We’ve looked at how we can use the computer’s microphone jack to look at the signals from the Espruino’s serial port, but what if we want to communicate without wires? First, let’s take a look at how we can use a PC’s audio input to receive signals from an infrared remote control.

Experiment 18: Making the IR Receiver

You’ll need:

  • An IR receiver (HX1838, VS1838, TSOP348, or TSOP344) and remote control

  • A battery or battery back supplying between 3 and 5 volts (a CR2032 watch battery in a holder is perfect)

  • Breadboard

  • The headphone extension lead with a 3.5mm jack plug from “Experiment 17: Making an Oscilloscope”

  • 2x 10k Ohm resistors

Get Making Things Smart now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.