DIY USB password generator using ATtiny Microcontroller

Having done half a dozen V-USB tutorials I decided it’s time to whip up something cool. As USB keyboards were an area untouched. I decided to make a small USB HID keyboard device that types a password stored in EEPROM every time it’s attached. A new password can be generated just by tabbing CAPS LOCK a few times (4 times to start password regeneration and one tab for each password character generated, 10 is the default password length). Below you can see the device in action:
DIY USB password generator using ATtiny Microcontroller
The place I work at requires me to change my password every few months so this would be one way to skip remembering a new password altogether. (as long as I remember to write it down before regenerating a new one so password can be changed:).

What is inside?

The device is powered with a simplified version of the hardware I used in my ATtiny85 USB tutorial – I stripped away the LCD, reset pullup and both capacitors. If you’re better in cramming components inside enclosures I suggest adding at least a 0.1 uF capacitor between VCC and GND, but it seems to work fine even without it:
DIY USB password generator2
The enclosure was graciously donated by an old 512 MB flash drive. I couldn’t make myself to break the USB connector from the circuit board inside. So I stripped appart a short USB cable instead (shown on left):
After some thinking and iterative soldering. I managed to cram everything on a tripad veroboard with 2×8 pads with the following initial setup:
Soldered the connector first. Then the zener diodes. Then resistors and jumpers, and finally VCC, GND and the ATtiny itself. I used the following tricks to make all ends meet:
For more detail: DIY USB password generator using ATtiny Microcontroller


About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter
Scroll to Top