USB Infrared Toy v2 manufacturing resources

From DP

Jump to: navigation , search

Contents

Setup

  1. Connect a USB cable for power
  2. Program the complete firmware image (-DUMP.HEX) with a programmer

Test procedure

This procedure tests the PIC, LED circuit, and both receiver circuits.

 -------------------------------------------------------------------------
 IR TOY SELF TEST utility v0.1 (CC-0)
 http://dangerousprototypes.com
 -------------------------------------------------------------------------
 Usage:
   C:\IRToySelfTest\IRToySelfTest.exe  -d device [-s speed]
   Example Usage:   C:\IRToySelfTest\IRToySelfTest.exe -d COM1
           Where: -d device is port e.g.  COM1
                  -s Speed is port Speed  default is 115200
 -------------------------------------------------------------------------
  1. Plug in the USB cable
  2. Make sure that port is mapped to a virtual com port and take note of the port number
  3. Run the test app, change COM10 to match your system: irtoyselftest -d COM23
  4. Make sure to hold the USB IR Toy near something white or a reflective surface
  5. Hit any key to run the test, and hit ESC to stop
  6. Verify: LED should be on
  7. Verify: self-test will display **PASS** or **FAIL**
    1. List of error codes

The IR LED will remain on after the self-test. The infrared light can be viewed with a camera/web cam/video camera/etc.

The IR frequency detector is very sensitive to sunlight!

The frequency detector must be very close to the IR source to work correctly. It is very sensivite to sunlight. An window on a sunny day, even with a curtain, will trigger the frequency detector and give FA10 errors.

Use example

irtoyselftest -d COM23

Replace COM23 with the serial port assigned to your IR Toy.

Success example

--------------------- Starting a new IR Toy Self Test-------------------------

 Hold the IR Toy very close to something white for the self-test
 Opening IR Toy on COM23 at 115200bps...
 Starting IR TOY self-test...
 Getting self-test result...
 IR Toy version: V211
Test no: 1 of 1
 IR Toy Self Test Reply: V211
 V211


 Test passed! OK! :)


 Connect another IR Toy  and press any key to start the self-test again
 Or hit ESC key to stop and end the test.

Failure example

--------------------- Starting a new IR Toy Self Test------------------

 Hold the IR Toy very close to something white for the self-test
 Opening IR Toy on COM23 at 115200bps...
 Starting IR TOY self-test...
 Getting self-test result...
 IR Toy version: V211
Test no: 1 of 1
 IR Toy Self Test Reply: FA10
 FA10


 ERROR: test FAILED! :(

 Invalid response from IR Toy

 Connect another IR Toy  and press any key to start the self-test again
 Or hit ESC key to stop and end the test.