Duckey
A USB device which can act both as a secure USB passkey, as well as an experimental keystroke injector device, with just the flip of a switch. Security and insecurity in the same package.
Created by
pen.ayush
Tier 4
1 view
0 followers
pen.ayush
added to the journal ago
Redid the schematic and PCB to make it simpler and beter.
I redid the schematic and PCB routing to make it simpler and also better. Now my ground planes are decent and the diffrential pairs are beutifully symmetrical. It took a while to properly stitch the ground planes together. I also realised that USB ports have like 5-6mm of space between the pads and the actual end of the port; anything closer will be chopped off by the port. Had to account for that and move everything back. Now I need to add a few labels and duck and key images onto the silkscreen. Take a look at it so far:
Schematic:

PCB-
Front:

Back:

pen.ayush
added to the journal ago
Trying different things.
So I started with the schematics, and realised the rp2040 will be to complicated for me.
So I researched again and ended up with the STM32F042 series chip, QFN 28 package.
Its simpler but I needed 2 of them, and the schematic was simpler but the PCB design is a nightmare. The ground plane is BAD, diffrential pair traces are not good. Everything is going wrong. 4 hours over the course of 2 days almost wasted, just trying and seeing if the schematic or pcb is fine. This is painful, I will see what to do. Heres the failed schematics:
(I redisgned the schematics 2 times for the STM32, once with USB MUX, and once without)
with USB MUX:

Issues: Bad ground plane, vias needed (which i couldnt place properly.
no USB MUX, Double sided USB

issues: Diffrential pair problems and bad ground plane.
bad pcb:

I will redo this tomorrow, and simplify it for my sake.
pen.ayush
added to the journal ago
Researching about how to do this and with what components.
I started researching about this project, just finding the basic components needed and some prerequisites, software and hardware wise. I am planning to use 2 sepperate MCUs: an rp2040 for the FIDO passkey feature, and a EMF8 for the keystorke injection feature. The simpler of the two is the EMF8 hardware wise, though the software according to my research is harder to do on the EMF8. For the rp2040, I seem to need a lot of extra hardware just to make it 'talk' via USB. I thought it was going to be simpler than that but its okay.
I researched using gemini, looked through some datasheets and some parts sites just to get a rough idea of what the main components, and the total price will be. Just for one it is adding up to a lot, so cost cutting is on the table. Heres the rough idea of the components I need:

I discovered the rp2040 does not have flash, which was a surprising moment for me. It really is just to 'do' stuff, it cant do anything else alone! I need a whole crystal oscillator just to make it stable with USB.
Also I need a USB Mux, which is basically just a USB splitter in simple terms, which has the ability to switch between MCUs when sending the USB data to and fro. I did not think it would be this deep of a project until I fell into this hole.
The most annoying part is the whole MCU debugger programmer market. Its so expensive! Why? I need to program one chip worth like 50rs (~45 cents USD), with a programmer thats 3000rs or 4000rs (30-40 USD). Its like buying a phone without getting the charger in box.
Anyways stay tuned for updates! Ill do software requirments next time, and start with the code. It took me a long time to research the hardware because I have never worked with USB before, and needed explanations for all the components one by one, and ofcourse seeing which components are available to me (I only trust a few sites). Thanks for reading, tune in next time!
Idea and name inspired by the classic USB rubber ducky, as well as some references right here on this platform.
(AI disclosure: the project banner image is AI, I'm too busy to design one right now. Some other time lol)
pen.ayush
started Duckey ago
3/7/2026 - Researching about how to do this and with what components.
I started researching about this project, just finding the basic components needed and some prerequisites, software and hardware wise. I am planning to use 2 sepperate MCUs: an rp2040 for the FIDO passkey feature, and a EMF8 for the keystorke injection feature. The simpler of the two is the EMF8 hardware wise, though the software according to my research is harder to do on the EMF8. For the rp2040, I seem to need a lot of extra hardware just to make it 'talk' via USB. I thought it was going to be simpler than that but its okay.
I researched using gemini, looked through some datasheets and some parts sites just to get a rough idea of what the main components, and the total price will be. Just for one it is adding up to a lot, so cost cutting is on the table. Heres the rough idea of the components I need:

I discovered the rp2040 does not have flash, which was a surprising moment for me. It really is just to 'do' stuff, it cant do anything else alone! I need a whole crystal oscillator just to make it stable with USB.
Also I need a USB Mux, which is basically just a USB splitter in simple terms, which has the ability to switch between MCUs when sending the USB data to and fro. I did not think it would be this deep of a project until I fell into this hole.
The most annoying part is the whole MCU debugger programmer market. Its so expensive! Why? I need to program one chip worth like 50rs (~45 cents USD), with a programmer thats 3000rs or 4000rs (30-40 USD). Its like buying a phone without getting the charger in box.
Anyways stay tuned for updates! Ill do software requirments next time, and start with the code. It took me a long time to research the hardware because I have never worked with USB before, and needed explanations for all the components one by one, and ofcourse seeing which components are available to me (I only trust a few sites). Thanks for reading, tune in next time!
Idea and name inspired by the classic USB rubber ducky, as well as some references right here on this platform.
(AI disclosure: the project banner image is AI, I'm too busy to design one right now. Some other time lol)
3/13/2026 - Trying different things.
So I started with the schematics, and realised the rp2040 will be to complicated for me.
So I researched again and ended up with the STM32F042 series chip, QFN 28 package.
Its simpler but I needed 2 of them, and the schematic was simpler but the PCB design is a nightmare. The ground plane is BAD, diffrential pair traces are not good. Everything is going wrong. 4 hours over the course of 2 days almost wasted, just trying and seeing if the schematic or pcb is fine. This is painful, I will see what to do. Heres the failed schematics:
(I redisgned the schematics 2 times for the STM32, once with USB MUX, and once without)
with USB MUX:

Issues: Bad ground plane, vias needed (which i couldnt place properly.
no USB MUX, Double sided USB

issues: Diffrential pair problems and bad ground plane.
bad pcb:

I will redo this tomorrow, and simplify it for my sake.
3/15/2026 - Redid the schematic and PCB to make it simpler and beter.
I redid the schematic and PCB routing to make it simpler and also better. Now my ground planes are decent and the diffrential pairs are beutifully symmetrical. It took a while to properly stitch the ground planes together. I also realised that USB ports have like 5-6mm of space between the pads and the actual end of the port; anything closer will be chopped off by the port. Had to account for that and move everything back. Now I need to add a few labels and duck and key images onto the silkscreen. Take a look at it so far:
Schematic:

PCB-
Front:

Back:
