Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: arupbsk on November 24, 2011, 05:17:40 pm

Title: Another DIY IR Toy: Pictures
Post by: arupbsk on November 24, 2011, 05:17:40 pm
[attachment=0][attachment=1]
Pictures taken by mobile: Not so clear. -_-
Only lacks the diode at MCLR.
Can IN4148 be used?
Title: Re: Another DIY IR Toy: Pictures
Post by: ian on November 25, 2011, 07:49:45 am
Yes, 1n4148 is perfect! Nice build.
Title: Re: Another DIY IR Toy: Pictures
Post by: arupbsk on November 25, 2011, 08:56:01 am
Which firmware to write to it? Is there any bootloader+firmware=dump available like in BP?
I have tried to write "USBIRToy.v09-HaD.hex" through a PK2clone at 5V, but when verifying, it gives this error: http://snpr.cm/Xb5rNi.png (http://snpr.cm/Xb5rNi.png)

This is the slightly modified v1a design that I used.[attachment=0]
Title: Re: Another DIY IR Toy: Pictures
Post by: arupbsk on November 25, 2011, 09:04:09 am
The page at http://dangerousprototypes.com/docs/USB ... #Partslist (http://dangerousprototypes.com/docs/USB_IR_Toy_v1_design#Partslist) shows Buspirate. Strange!!!
Title: Re: Another DIY IR Toy: Pictures
Post by: ian on November 25, 2011, 09:36:30 am
Wrong image is due to a template issue, thanks for sharing.

The firmware dump is in: USB_IR_Toymanufacturing_resourcesv2.0firmware_dump of the source download/SVN

The -HaD is for the receiver I built at Hack a Day, not the IR TOy :)
Title: Re: Another DIY IR Toy: Pictures
Post by: arakis on November 25, 2011, 09:45:58 am
[quote author="arupbsk"]The page at http://dangerousprototypes.com/docs/USB ... #Partslist (http://dangerousprototypes.com/docs/USB_IR_Toy_v1_design#Partslist) shows Buspirate. Strange!!![/quote]

There was an issue with the Wiki picture name, thanks for pointing it out. It is fixed now.
Title: Re: Another DIY IR Toy: Pictures
Post by: arupbsk on November 25, 2011, 10:07:06 am
The file "USBIRToy-BL1FW12-DUMP.hex" is written successfully.
Now the IR toy glows the LED at pin#2 when power is given.
Though all connections are correct and double checked, the USB device is  not detected. I'm not getting device not recognized message also.
Does the design needs an additional pullup resistor at USB's D- point?
When I connected the uart, I'm getting random characters from the ir toy on resets. (9600baud)
Code: [Select]
RX:  E0 C0 
RX:  00 10
RX:  80
RX:  C0
RX:  FE
RX:  FF
RX:  FE FC
RX:  60 FF
RX:  F0
RX:  00
RX:  66
RX:  E0
RX:  F0 5E
Title: Re: Another DIY IR Toy: Pictures
Post by: ian on November 25, 2011, 10:22:21 am
No pullup is needed. What UART did you connect? (there is no output at all from RX/TX pins)
Title: Re: Another DIY IR Toy: Pictures
Post by: arupbsk on November 25, 2011, 11:31:14 am
I have connected the PicKit2 UART mode.
there is no output at all from RX/TX pins, why are they for? :P
I fixed the problem. The crystal was defective. Now after replacing the crystal, it works fine.
Code: [Select]
--------------------- Starting a new IR Toy Self Test-------------------------

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


 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.

I have successfully captured a test remote command of my TV's remote.
Code: [Select]
C:UsersArupDesktopirtoysoftwareIRToyRecPlaywindows>irtoy.exe -d COM4 -r -
f test
-------------------------------------------------------------------------

 IR TOY Recorder/Player utility v21 (CC-0)
 http://dangerousprototypes.com

-------------------------------------------------------------------------
 Opening IR Toy on COM4 at 115200bps...
 IR Toy Firmware version: V120
 Entering IR sample mode ....  Done.
 IR Toy Protocol version: S01
 Current sample timer Resolution: 21.3333us
 Recording at Resolution= 21.333300us
 Allocated Record Buffer size: 512
 Recording started.....
 Press a button on the remote.

 Waiting..any key to exit..
 Creating file: test_000.bin
 IR Toy said:
 00  A5  00  CE  00  1D  00  17  00  1D  00  4C  00  1D  00  17  00  1D  00  17
 00  1D  00  17  00  1D  00  17  00  1D  00  17  00  1D  00  17  00  1D  00  4C
 00  1D  00  17  00  1D  00  4C  00  1D  00  4C  00  1D  00  4C  00  1D  00  4C
 00  1D  00  4C  00  1D  00  4C  00  1D  00  17  00  1D  00  17  00  1D  00  4C
 00  1D  00  4C  00  1D  00  4C  00  1D  00  17  00  1D  00  17  00  1D  00  17
 00  1D  00  4C  00  1D  00  4C  00  1D  00  17  00  1D  00  17  00  1D  00  17
 00  1D  00  4C  00  1D  00  4C  00  1D  00  4C  00  1D  07  2F  00  A5  00  66
 00  1D  11  79  00  A5  00  65  00  1D
 IR Toy said:
 FF  FF
 writing test_000.bin

 Waiting..  Any key to exit..

 Recording ends..


 Thank you for playing with the IR Toy! Utility version: v21.

Then I replayed it.

Code: [Select]
C:UsersArupDesktopirtoysoftwareIRToyRecPlaywindows>irtoy.exe -d COM4 -p -
f test_000.bin
-------------------------------------------------------------------------

 IR TOY Recorder/Player utility v21 (CC-0)
 http://dangerousprototypes.com

-------------------------------------------------------------------------
 Opening IR Toy on COM4 at 115200bps...
 IR Toy Firmware version: V120
 Entering IR sample mode ....  Done.
 IR Toy Protocol version: S01
 Current sample timer Resolution: 21.3333us
 Entering Player Mode
Playing single file test_000.bin
 Press a key to start playing test_000.bin or X to exit
 Handshake mode ON. IR Toy ready for packet of 62 bytes

 Checking # of bytes sent.... 62 bytes....ok.
 IR Toy ready for 62 more bytes

 Checking # of bytes sent.... 62 bytes....ok.
 IR Toy ready for 62 more bytes

 Checking # of bytes sent.... 28 bytes....ok.
 End of file reached: test_000.bin
 IR Toy got: 152 bytes, file was 152 bytes ok

 Transmit was successful and glitch free!

 Thank you for playing with the IR Toy! Utility version: v21.

Well, actually my TV didn't responded to the signal, but my camera shows when playing the record, the IR-LED flickered. Maybe a security feature of my TV. Who knows....
Title: Re: Another DIY IR Toy: Pictures
Post by: ian on November 25, 2011, 12:32:43 pm
IKf it is the exact copy of the v1 (variable current IR LED driver) you should use a 2 or 3 ohm resistor with the LED for max power.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01162093336session_write_close ( )...(null):0
20.01192224928ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01192225704Database_MySQL->query( ).../DatabaseHandler.php:119
40.05632364440Database_MySQL->error( ).../Db-mysql.class.php:273