dbisu / pico-ducky

Create a USB Rubber Ducky like device using a Raspberry PI Pico
GNU General Public License v2.0
2.43k stars 440 forks source link

Payload selector #90

Closed TheExpertNoob closed 2 years ago

TheExpertNoob commented 2 years ago

Moved "setup mode" to GP9.
Moved "disable usb mass storage" to GP10.
In junction with a SPDT slider switch, this will
disable usb mass storage and enable payload run
or
enable usb mass storage and disable payload (for editing).

Increased the number of payloads that can be chosen (16 total) by switching to a rotary dip switch and wiring it up to GP2-GP5 with some DIRTY binary if statements. Someone else better at python than I could probably clean it up. Tested and works.

d3k4-k3rb3r0s commented 2 years ago

I just added slideswitches to the original pads to turn on/off usb stealth and setup mode. Felt accomplished. Came and saw this.

Good job, ordering parts to play with it now.

TheExpertNoob commented 2 years ago

Well the rotary dip switch I used to test with, the one I linked, has already had two of its pins break from just the vibration of carrying it in my pocket (enclosed in a shell). So I'm still looking into the best rotary dip switch and best wat to secure it would be. My next design will use the 563-1215-1-ND from Digikey, I'll secure the switch with some E6000 right on top of the raspberry logo and use GP13,14,17,18 with the GNDs between them this time. and make a cutout for the rotary dip switch in the case on top instead of the side. Test it, and cover all the wires in epoxy.

dbisu commented 2 years ago

If you look in the board_design branch, I have the schematic and board layout I used. I used a 4 position slide switch for payload selection. It was Digi-key part CKN10368-ND.

TheExpertNoob commented 2 years ago

OOF! They don't exactly have a rotary DIP switch, but this may help in debugging and consolidating code. https://wokwi.com/projects/340275768135254611

TheExpertNoob commented 2 years ago

Got some help over here.

Edit: with the possibility of 256 payloads?