USB IR Toy v2

From DP

Revision as of 06:30, 28 April 2011 by Ian (Talk | contribs)
Jump to: navigation , search
Project Summary
Name: USB IR Toy v2
Buy it: Get one for $19.50 at Seeed Studio
Price: $19.50
Status: Test production
Manufacturing: Shipping
Forum: USB IR Toy v2 Forum
Overview-rcentered.jpg

Use a remote control with your computer, view infrared signals on a logic analyzer, or capture and replay remote control buttons. USB Infrared Toy v2 has an improved IR transmitter and several new features.

Features:

  • NEW: 100mA constant current IR transmitter with improved range
  • NEW: Infrared frequency measurement
  • NEW: Pin breakout area
  • Infrared remote control decoder (RC5)
  • Infrared signal logic analyzer
  • Capture and replay infrared signals
  • USB connection, USB bootloader for easy updates
  • Supported in WinLIRC
  • Open source (CC-BY-SA)

Get IR Toy v2 for $19.50.

Read about the design below.

Contents

Overview

Irtoyv2overview.png

There's lots of interesting infrared projects on the web. Serial port infrared PC remote control decoders have been popular for years, Ian published a USB version at Hack a Day. The TV-B-Gone is a popular kit that turns most TVs off by transmitting POWER codes with infrared LEDs. The IR Toy combines all these projects into an upgradable USB dongle, with some extra functions, like a simple logic analyzer that visualizes remote control signals.

IR Toy v2 has three updates that were not in the original hardware:

  • Transmit range is increased by using a 100mA constant current driver circuit
  • Infrared frequency measurement helps to identify remote control protocols, and to clone remotes with odd frequencies
  • Extra pins and infrared signals are brought to a breakout area. Extent the IR Toy with extra receivers, transmitters, and other parts

IR Toy v2 parts:

  1. USB MINI-B connector
  2. Indicator LED, blinks on receive and indicates other functions depending on mode
  3. Infrared transmitter LED
  4. Infrared demodulator
  5. Infrared frequency detector
  6. PIC programming header pins
  7. Serial UART pins, can be used as a USB->serial converter
  8. Access to the infrared transmitter and demodulator signals
  9. Unused pins, including +5volt supply from USB

Hardware

Cct-USB-IRToy-vii.png

Click for a full size schematic image. Schematic and PCB were designed with the freeware version of Cadsoft Eagle.

Microcontroller

Irtoy-v2-microcontroller.jpg

  • Microcontroller
  • Power and decoupling
  • Oscillator
  • Programming and reset support
  • LEDs

Infrared demodulator

Usbirtoy-v2-demodulator.jpg

  • Decodes 36KHz modulated IR

Infrared frequency detector

Usbirtoy-v2-detector.jpg

  • This new part in v2 adds the ability to measure the raw frequency of the signal
  • Most Remote controls are at 36-38KHz and work with the demodulator, but some are 56KHz and others.
  • Now can measure and even clone remotes that don't work with the demodulator
  • Very sensitive - hold RC very close (1-2cm) for best results. Sunlight from a window can mess up the reading.


Infrared transmitter

Usbirtoy-v2-transmitter-ii.jpg

  • Transmits infrared signals, with or without modulation.
  • New transmitter designed to provide 100mA constant current without needing a large throgh-hole current limiting resistor.
  • calculatons
  • parts

Breakout area

Usbirtoy-v2-breakout.png

  • unused and main IR signals are broken out to a pin header.

PCB

Irtoy-v2-pcb.jpg

We used the freeware version of Cadsoft Eagle to make the schematic and PCB.

Partslist

Pcb-usb-irtoy-v2-ii.png

Click for a full size placement image.

partlist
PartQuantityValuePackage
C110.1ufC603
C2,C4,C730.22uFC603
C5,C6227pfC603
C811.0uFC603
D11BAS16JSOD2514X100N
D2,D32BAS16JDO323
I1LEDCHIP-LED0805
IC11PIC18F2550_28WSO28W
ICSP11X05
J11CON-USB-MINI-BUSB1CONN_USB_MINI-B
JP112X06
Q1120MhzHC49UP
R1110KR603
R212K7R603
R3,R62390RR603
R416R8M1206
R513K6R603
RX1TSOP34838TSOP18XX
RX21QSE159QSE15X
S11SMD_TACT_SMALLTACT_SWITCH_SMALL
T11BC81840MTFSOT23-BEC
TX1100mA IR LEDLED5MM
UART11X04

Firmware

IR Toy v2 uses the same firmware a v1

The firmware is written in C and compiled with the free Microchip C18 compiler.

We used the Microchip USB stack to run the 18F2550 as a virtual serial port. Microchip's code is open but not redistributable. If you want to compile the source, download the stack from Microchip, then drag the source code into the install directory. See the detailed instructions in the PIC compiler how-to.

.inf driver installation

The virtual serial port (CDC) is an open standard, it should work on any modern operating system.

You don't need a driver, but you will need a .inf file to tell Windows how to use the device. A suitable .inf is included in the project archive.

Bootloader

IR Toy v2 can be upgraded over USB. It uses the Diolan bootloader, which appears as a USB HID device.

Taking it further

The QSE159 sensor and rising cost of PIC 18F2550 chips increased the price of IR Toy v2 by more than $2. We’ll try to get the cost back down by using a cheaper 3.3volt PIC 18F25J50 in v3.

Firmware updates are posted on the blog. You can also join the discussion in the forum.

Get one!

You can get one for $19.50. Worldwide shipping is only $2.85 more.

Your purchases at Seeed Studio keep the open source project coming, we sincerely appreciate your support!

Links

License

  • Hardware:CC-BY-SA
  • Firmware:CC-BY-SA
  • Bootloader:GPL