USB Infrared Toy through-hole version

From DP

Jump to: navigation , search

Usb-ittoy-pth-overview.jpg

This design is the next-gen USB IR Toy v1.1 circuit rearranged into a through-hole PCB. It's the basic IR Toy v1 with a couple additions:

  • Raw infrared signal detector for frequency measurement
  • Breakout area with all the unused pins, tap in and do something interesting

Seeed has the PCB available for $7, but you'll need to get your own parts. The through-hole PIC is so expensive we don't plan to make a kit.

Contents

Overview

Dia Usb-ittoy-th-overview.png

Hardware

USB-IRtoy-schematic.png

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

See the original USB Infrared Toy how-to for a complete overview of the circuit. We’ll just highlight the changes here.

Infrared detector

USB-IRtoy-pth-detector-490.jpg

The major update in this design is the addition of a raw infrared sensor. The original IR Toy has an IR demodulator that turns infrared encoded pulses into 1s and 0s. The new design also has QSC159 IR sensor that passes the raw IR signal directly to the PIC for measurment and analysis.

The QSC159 gets a 0.1uF coupling capacitor (C7) on the 5volt power supply. The output is open collector, meaning it can’t create a high output on it's own, so we use pull-up resistor R6 (10K) to hold the pin high.

The IR detector connects with two PIC pins. One has a hardware CCP module that measures the width of each infrared pulse. The other has a counter that tracks the total number of ticks in each infrared transmission. The raw signal data can be extracted from the IR sample mode.

Breakout area

Ir-toy-pth-breakout.jpg

Unused pins are connected to a small breakout area. Unfortunately we did not connect the internal signals (IR RX, IR TX, IR Detect) to the header, this may be updated in a future batch of PCBs.

PCB

USB-IRtoy-pcb-490.jpg

The PIC USB interface has an internal 3.3volt regulator that needs a 0.22uF capacitor. 0.1uF is a much more common value, so the production board (seen below) has two capacitor footprints (C2, C3) connected to the USB regulator. If you don't have a 0.22uF capacitor, just use two 0.1uF capacitors.

Partlist

USB-IRtoy-pcb.png

Click for a full size placement image.

PartQuantityValuePackage
C1-C4, C750.1uf-
C5, C6227pf-
D111N4148-
I13MM LED-
IC11PIC18F2550_28DIP-
ICSP11X05 pin header1X05
Q11BC547TO92
R1, R6210k0204/7
R212K70204/7
R31390R0204/7
R4122R0204/7
R511K0204/7
RX1TSOP34838-
RX21QSE159-
TX15MM IR LED-
USB1USB B connector-
XTAL1120Mhz crystalHC49U70

The latest sources and distributors are in the master partlist. See something missing? Please let us know.

Firmware

USB-IRtoy-pth-screenshot.png

Get the latest IR Toy firmware from our GitHub download page.

  • The regular USB IR Toy firmware since v09 has full support for the frequency detector.
  • Works with or without a bootloader (can be programmed directly with a ICD, PICkit, etc)

.inf 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 firmware download.

Using the bootloader

The bootloader is optional, but an easy way to update without dragging out a programmer. See the detailed PIC programming guide for help installing the bootloader.

  1. Get the bootloader.hex file from the latest firmware download
  2. Connect a PIC programmer to the 5 pin ICSP header on the breakout area
  3. Program the bootloader with the programmer
  4. Bootload the latest firmware over USB with the normal IR Toy update instructions.

Downloads


USB-irtoy-pth-front-490.jpg

License

  • CC-BY-SA