Re: Parts for Breadboard & Schematic Questions
Reply #17 –
Hey liyin,
Most of these are answered in the USB IR Toy article, I'll do my best to cover them here too.
- I saw the PIC18F2455 was the PIC18F2550 with 24K Flash memory, but USBIRToy.hex firmware is ~25K. I read about PK2AVRISP at the blog, sounds like a good option.
The firmware is compiled for the chip, so the .hex is the size of the whole chip. You'd have to try a test compile to see if it would fit (probably).
- I noticed 2 IRRX lines @ pins 25 & 23, and the line coming from RX. How does that work?
Please see the article for more, but the idea is there are two interrupt pin types and the IR Toy let's you play with both. The pin is set by a #define in the code.
- What are PGD & PGC @ pins 28 & 27?
Programming pins, see also the article.
- I understand I can connect the Bus Pirate to pins 18 & 17 (UART data), and ignore pins 16 & 15 (USB data)?
You could, but there's no software support for this yet. There's probably more in the 'firmware' and 'taking it further' sections of the article.
- What's the purpose of having two capacitors in parallel @ pin 14 (VUSB) going to ground? USB VBUS provides Vcc.
Please see the hardware section of the article - the internal 3.3volt USB vreg requires 0.22uF external caps (I used 0.1uf*2).
- Can't I just capture the raw IR signal without the need to decode first (using Bus Pirate)? How is it possible for a learning remote control to save/replay so many different protocols (TV, DVD, Sat, Air Conditioner, Death Star, etc)?
Please see the Firmware: RC5 decoder and raw IO mode section of the article for a detailed explanation of this with logic analyzer captures etc. Basically, you can do something like that, but you'll need to write the software and firmware to support it (either on the IR Toy of Bus Pirate) because the current firmware/software doesn't support it (yet).