Author Topic: DIY USB Keyswitch Keychain  (Read 8263 times)

0 Members and 1 Guest are viewing this topic.

Offline Cixelyn

  • Thread Starter
  • Posts: 6
  • Location: San Francisco, CA
    • cory.li
DIY USB Keyswitch Keychain
« on: Sun, 10 July 2016, 20:15:39 »
I've lately been working on a functioning keyswitch keychain. I finally got around to making a thread on gh about it with some details  :)

141874-0

The original concept was to make a tiny keyswitch keychain that fits entirely within the profile of a keycap but still acts as a fully functioning keyswitch. I'm still working on the firmware, but I've got it to the point where it can emulate a standard keyboard; it also has some entertaining alternate modes such as morse code input.

I searched for quite a while for a controller that would fit in the space constraints, since everyone's favorite atmega328 is just too large, making routing difficult. The trick was to find the smallest USB controller without going to some unfriendly, wafer-level package. I ended up using an SiLabs 8051 chip with a 3x3mm QFN package. Honestly, it's quite nice; hopefully more people use it in the future for tiny builds.

There are some 0.1" headers exposed -- the plan is to allow daisy-chaining of multiple keychains via i2c/smbus so that wiring up a macropad/numpad is super simple. If anyone knows of any similar projects, please let me know so I can make the protocols compatible. Otherwise I'll try to come up with something simple and reusable. :)

Anyways, last time I posted about this, a ton of people expressed interest in buying one, so I'm hoping to run a small groupbuy through the friendly folks at crowdsupply. I still have a ton of work to do though -- planning on releasing the firmware+schematics as open-source once I finish up this next revision. I'm also hoping to integrate an rgb led on the pcb, as well as make it (somehow) matias compatible.

Let me know if you guys have any questions, happy to share notes! Also, does anyone know where to get Matias keycaps in singles?
« Last Edit: Mon, 11 July 2016, 02:05:15 by Cixelyn »

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: DIY USB Keyswitch Keychain
« Reply #1 on: Mon, 11 July 2016, 02:40:30 »
Is that hand soldered 0.1mm? :eek:

I know I'm being lazy but how much memory does this have?  The only use I can think of for a functional keychain would be to type in a crazy secure password.  I guess if you strip out the morse code there would be enough...

That said most fun things in life aren't very practical and it's impressive that you managed this - good work!
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline Data

  • Posts: 2608
  • Location: Orlando, FL
Re: DIY USB Keyswitch Keychain
« Reply #2 on: Mon, 11 July 2016, 06:55:57 »
That...  What... How did you...  I can't even.

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7487
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
Re: DIY USB Keyswitch Keychain
« Reply #3 on: Mon, 11 July 2016, 07:01:02 »
lol very nice.
I love Elzy

Offline Cixelyn

  • Thread Starter
  • Posts: 6
  • Location: San Francisco, CA
    • cory.li
Re: DIY USB Keyswitch Keychain
« Reply #4 on: Mon, 11 July 2016, 15:55:00 »
Is that hand soldered 0.1mm? :eek:

Haha yeah, I did all the original prototypes by hand, but I've since wised up and just gotten my board house to assemble them for me. It's not quite 0.1mm, everything there is 0.5mm pitch. And all the passives are 0402, not yet ready to commit to the effort (and price) of 0201.

I know I'm being lazy but how much memory does this have?  The only use I can think of for a functional keychain would be to type in a crazy secure password.  I guess if you strip out the morse code there would be enough...

16KB memory for code. My current code (including USB stack) is only using about 6KB so I still got a fair amount of space.

That said most fun things in life aren't very practical and it's impressive that you managed this - good work!

Haha thanks so much! I've seen a lot of single key keyboard builds around here but they all use either a teensy (which makes it massive) or an attiny85 (which makes it kind of unreliable as it's bit-banged USB). I really just wanted to make a proper one, and it seems like people really seem to like the concept.

lol very nice.

That...  What... How did you...  I can't even.

Thanks so much for the support guys! :D
« Last Edit: Mon, 11 July 2016, 15:56:38 by Cixelyn »

Offline xtrafrood

  • formerly csmertx
  • * Elevated Elder
  • Posts: 2715
  • Location: Gainesville, FL
  • wildling
Re: DIY USB Keyswitch Keychain
« Reply #5 on: Mon, 11 July 2016, 17:49:47 »
Holy guacamole! :)

Offline QuincyJones

  • Posts: 270
  • Location: The Greatest Of Them All, England
Re: DIY USB Keyswitch Keychain
« Reply #6 on: Mon, 11 July 2016, 21:05:39 »
really nice! and i love that kawaii key!
SENT FROM MY TRKA-100-ULTRA-PRO-1R WITH FLASHY MULTI-COLOURED LEDS FOR MEGA ULTRA COOLNESS
(please like me)

       

Offline SBJ

  • Posts: 1191
  • Location: Denmark / The city.
  • Tactile pls
Re: DIY USB Keyswitch Keychain
« Reply #7 on: Tue, 12 July 2016, 01:09:42 »
I've lately been working on a functioning keyswitch keychain. I finally got around to making a thread on gh about it with some details  :)

(Attachment Link)

The original concept was to make a tiny keyswitch keychain that fits entirely within the profile of a keycap but still acts as a fully functioning keyswitch. I'm still working on the firmware, but I've got it to the point where it can emulate a standard keyboard; it also has some entertaining alternate modes such as morse code input.

I searched for quite a while for a controller that would fit in the space constraints, since everyone's favorite atmega328 is just too large, making routing difficult. The trick was to find the smallest USB controller without going to some unfriendly, wafer-level package. I ended up using an SiLabs 8051 chip with a 3x3mm QFN package. Honestly, it's quite nice; hopefully more people use it in the future for tiny builds.

There are some 0.1" headers exposed -- the plan is to allow daisy-chaining of multiple keychains via i2c/smbus so that wiring up a macropad/numpad is super simple. If anyone knows of any similar projects, please let me know so I can make the protocols compatible. Otherwise I'll try to come up with something simple and reusable. :)

Anyways, last time I posted about this, a ton of people expressed interest in buying one, so I'm hoping to run a small groupbuy through the friendly folks at crowdsupply. I still have a ton of work to do though -- planning on releasing the firmware+schematics as open-source once I finish up this next revision. I'm also hoping to integrate an rgb led on the pcb, as well as make it (somehow) matias compatible.

Let me know if you guys have any questions, happy to share notes! Also, does anyone know where to get Matias keycaps in singles?
That is amazing. Well done!
So could you in theory use it as some sort of password access device, where you'd hook it up to your pc, press the button and it would unlock something? (like a hidden drive)

Offline Cixelyn

  • Thread Starter
  • Posts: 6
  • Location: San Francisco, CA
    • cory.li
Re: DIY USB Keyswitch Keychain
« Reply #8 on: Tue, 12 July 2016, 03:21:46 »
That is amazing. Well done!
So could you in theory use it as some sort of password access device, where you'd hook it up to your pc, press the button and it would unlock something? (like a hidden drive)

Yeah that could be possible. Might also be able to use it as a U2F token for two-factor authentication as long as you're ok with the hardware not being tamper-resistant.


Offline QuincyJones

  • Posts: 270
  • Location: The Greatest Of Them All, England
Re: DIY USB Keyswitch Keychain
« Reply #9 on: Tue, 12 July 2016, 04:02:39 »
That is amazing. Well done!
So could you in theory use it as some sort of password access device, where you'd hook it up to your pc, press the button and it would unlock something? (like a hidden drive)

Yeah that could be possible. Might also be able to use it as a U2F token for two-factor authentication as long as you're ok with the hardware not being tamper-resistant.

The problem with having something like this as a password device is if you get arrested because you're in the wrong place at the wrong time, or because you're just black/indian/ethnic minority, then the police will normally go through and mess about with this and you may be asked a lot of questions or get the "OMG UR TERRORIST U HAVE DETONATOR - OFF 2 JAIL DON'T PASS GO" type crap.
SENT FROM MY TRKA-100-ULTRA-PRO-1R WITH FLASHY MULTI-COLOURED LEDS FOR MEGA ULTRA COOLNESS
(please like me)

       

Offline Cixelyn

  • Thread Starter
  • Posts: 6
  • Location: San Francisco, CA
    • cory.li
Re: DIY USB Keyswitch Keychain
« Reply #10 on: Wed, 13 July 2016, 20:37:02 »
Maybe? Plenty of people have USB thumb drives and other techy things on their keychains these days, I don't think it'll really pose any problem.

Offline CPTBadAss

  • Woke up like this
  • Posts: 14364
    • Tactile Zine
Re: DIY USB Keyswitch Keychain
« Reply #11 on: Thu, 28 July 2016, 06:44:00 »
Ha I love projects that are just done for funsies. It'd be cool to have the switch activate an LED and be a little flashlight as well. Not keyboard related I know but might be functional.

Offline mrhead

  • Posts: 99
  • Location: Northern AZ
  • Thread \ (•◡•) / Stopper
Re: DIY USB Keyswitch Keychain
« Reply #12 on: Thu, 28 July 2016, 09:40:34 »
Ha I love projects that are just done for funsies. It'd be cool to have the switch activate an LED and be a little flashlight as well. Not keyboard related I know but might be functional.

This. You've given me a purpose.

Offline Cixelyn

  • Thread Starter
  • Posts: 6
  • Location: San Francisco, CA
    • cory.li
Re: DIY USB Keyswitch Keychain
« Reply #13 on: Thu, 28 July 2016, 16:02:09 »
Ha I love projects that are just done for funsies. It'd be cool to have the switch activate an LED and be a little flashlight as well. Not keyboard related I know but might be functional.

I'm currently trying to fit a universal RGB LED that should work with any switch footprint. I guess you could connect up the key to a USB battery pack and use it as a flashlight or ravelight.

Offline MacGruber117

  • Posts: 121
  • Location: WI, USA
Re: DIY USB Keyswitch Keychain
« Reply #14 on: Wed, 31 August 2016, 13:52:15 »
I want this so bad! Will there be a small case, or has it been determined that it will be durable enough on its own?
I want to buy your ETF and Garbo Pusses. PM me

Offline Cixelyn

  • Thread Starter
  • Posts: 6
  • Location: San Francisco, CA
    • cory.li
Re: DIY USB Keyswitch Keychain
« Reply #15 on: Wed, 31 August 2016, 17:55:02 »
I want this so bad! Will there be a small case, or has it been determined that it will be durable enough on its own?

I've had a copy on my keychain for a few weeks now and haven't really seen any structural damage or issues. As someone said in the last thread, the bare PCB has a fairly geek-chic sort of look which is kind of appealing. I'll definitely provide files for people to 3D print their own cases if they want... not sure if an actual case option will be provided in the group buy.

Anyways, as a teaser, here's a small update which I put on twitter but forgot to post here:



Currently waiting for the new rev2 of the boards to get back. I've made a large number of layout changes for structural integrity, esd resistance, and aesthetics. Will be in a much better state to launch the project once I confirm everything works.
« Last Edit: Wed, 31 August 2016, 17:58:07 by Cixelyn »

Offline Hydra04

  • Posts: 32
Re: DIY USB Keyswitch Keychain
« Reply #16 on: Wed, 31 August 2016, 18:48:05 »
Interest check: +1.


Offline xtrafrood

  • formerly csmertx
  • * Elevated Elder
  • Posts: 2715
  • Location: Gainesville, FL
  • wildling
Re: DIY USB Keyswitch Keychain
« Reply #17 on: Thu, 01 September 2016, 03:49:53 »
I want this so bad! Will there be a small case, or has it been determined that it will be durable enough on its own?

I've had a copy on my keychain for a few weeks now and haven't really seen any structural damage or issues. As someone said in the last thread, the bare PCB has a fairly geek-chic sort of look which is kind of appealing. I'll definitely provide files for people to 3D print their own cases if they want... not sure if an actual case option will be provided in the group buy.

Anyways, as a teaser, here's a small update which I put on twitter but forgot to post here:

(Attachment Link)

Currently waiting for the new rev2 of the boards to get back. I've made a large number of layout changes for structural integrity, esd resistance, and aesthetics. Will be in a much better state to launch the project once I confirm everything works.

Retweeted! :D

Offline Arokai

  • Posts: 13
Re: DIY USB Keyswitch Keychain
« Reply #18 on: Thu, 20 October 2016, 14:34:10 »
is this still in progress? i'm really looking forward to this!

Offline mrhead

  • Posts: 99
  • Location: Northern AZ
  • Thread \ (•◡•) / Stopper
Re: DIY USB Keyswitch Keychain
« Reply #19 on: Mon, 26 June 2017, 20:09:04 »
Just checking to see if anything new has developed.  My project went absolutely nowhere.  By that, I mean that I didn't do anything.