16FUSB — it's like V-USB for the PIC 16F628

If you have an idea for a fairly simple USB device but don’t want to invest in the more expensive microcontrollers, this library will be of interest to you. It’s a software implementation of the low-speed USB protocol for PIC 16F628. You can pick these up for around $2, and it just takes a few other components to complete the circuit. And hey, you don’t even need a proper PIC programmer to flash the code. This is the same chip for which we just saw an Arduino act as the programmer.

The circuit design looks exactly the same as the V-USB stack, which provides USB functionality to lower-end AVR microcontrollers. In addition to the chip you need a crystal oscillator, a couple of 3.6V zener diodes, and a handful of passive components. There are a couple of LEDs in the design, but we assume these are for feedback and are not crucial to the functionality of the circuit.

There’s no shortage of data included in the project post so you may want to bookmark this one for later reference.

Tiny N64 controller comes with hand-cramp guarantee

Just looking at this little thing makes our hands ache. But [Kirren] did do a great job of building an N64 controller inside a tiny project box. It’s not a mod, but a ground-up build based on a PIC 16F628 microcontroller.

It has most of the buttons found on a standard controller, and he assures us that you can play most games without missing the ones that didn’t make it into the design. You can just make out the analog stick to the left, but that silver ring on the right is actually a 4-direction tactile switch which stands in for the C buttons. He’s also included Start, A, B, R, and Z.

The link above goes to his Wiki, and there are more than enough details if you’re interested in doing this yourself or just understanding how everything works. Check out his writeup on the protocol, and  you can even get a copy of his code. There’s also a video demo after the break which shows [Kirren] playing some Bond with the controller. [Read more…]