Author Topic: Handwired board issue w/ QMK, most keys don't work, working ones in wrong spots?  (Read 3857 times)

0 Members and 1 Guest are viewing this topic.

Offline dj505

  • Thread Starter
  • Posts: 6
I've got absolutely no idea what's causing this, plus this is my first handwired build (first build in general actually) so I really have no idea where to start looking lol.

So, I built my keyboard firmware using https://kbfirmware.com/ and downloaded the hex, then flashed it to my Teensy 2.0++, using the Teensy loader initially, with no visible result... But then it turns out that it did work, but not properly. The only keys that work are 2, W, S, Z, and Alt, but they're triggered by the Esc, Tab, Caps, Shift, and Ctrl keys, while none of the other keys do anything noticeable.

I tried
- Clearing the eeprom
- Reflashing with QMK toolbox (no visible result)
- Bootmagic key combinations (no visible result, tried bootloader mode, clearing eeprom, and changing layers)
None of which seemed to have any effect.

What could I have done wrong and how might I fix it?
« Last Edit: Mon, 06 April 2020, 04:56:56 by dj505 »

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Your pin assignments are wrong, and you may have a diode backwards (to make just one column work)  Pictures or your wiring would be helpful :)
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline dj505

  • Thread Starter
  • Posts: 6
Sure thing!

Diodes should all be right, I've triple checked them, although my pin assignments might be wonky if that's the case.
Edit: also just double checked my pin assignments and they seem to be fine as well

Wiring:




Need anything else?
« Last Edit: Mon, 06 April 2020, 05:18:17 by dj505 »

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
That looks nice and tidy, at least we're not worried about cold joints :thumb:

Lets start with the obvious - the green row connectors are connected to the end switches but not the others because they're behind the diode, that's why only those switches output anything.  You need to solder them to the long horizontal wire.

That also means you've got your columns shifted - did you start from column 1 like a sensible human?  Microchips are not so sensible so the first column is column 0.

Hopefully that fixes it, if not post your config file.  I'm off to work so will be back in around 12 hours if no-one else has helped by then.
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline dj505

  • Thread Starter
  • Posts: 6
Wow lol, I feel like an idiot, not sure how I managed to miss that! Thanks for pointing that out, it's like 4am and i would have missed it completely

as for the positioning assignments, I started at 0, so I'm not sure what's causing the offset isues

Edit: Fixing the wire positions make the rest of the keys work as expected! Weirdly enough, some are in the right places, like backspace, but some aren't. Going through the number keys from 1-0, it goes 3, 4, 5, 6, (nothing), 1, 7, 8, 9, 0
« Last Edit: Mon, 06 April 2020, 05:59:04 by dj505 »

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
All that concentration then you think the hard work is done and mess up the easy bit at the end - we've all been there :))

It might make more sense when you've fixed the columns and find the Esc column somewhere else, then you just need to swap the pins in the config.  Maybe best left 'till morning...
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline dj505

  • Thread Starter
  • Posts: 6
Most likely haha, thanks for your help! I'll tackle this again tomorrow

Offline dj505

  • Thread Starter
  • Posts: 6
As it turns out, I was sleep deprived enough to screw up the pin mappings 4 times in a row after triple checking them each time, everything works as intended now! Thanks for your help!

Update: Most of the switches seem to function, with the exception of a few that just don't do anything, but I'm really hoping that's just an issue with the firmware and not broken switches. Tried looking for the Esc key and it seems to be on a totally different layer than it should be (layer 1 as opposed to 0) and in the completely wrong spot as well, although some select keys such as the arrow keys still work perfectly fine. I really have no idea what could have gone wrong with the mapping, and I'll post my config in a moment

Edit 2: Esc is still in layer 0, my bad. Weirdly enough, even though my pin assignments seem to be correct, some of the columns are swapped around and I can't quite figure out why. There doesn't seem to be any rhyme or reason to it, like they're not just off by one, but it seems to be only columns 0 through 6, while the rest are fine.

Edit: I've attached the json file from kbfirmware, hopefully that's enough
« Last Edit: Mon, 06 April 2020, 18:25:01 by dj505 »

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Looking at you column pins in the config they go up the side of the Teensy.  Starting at the bottom of the list it's correct until you get to the gap for the chip where the next pin is E6 which has a blue wire on the Teensy, but the column to the left after the red wire from F0 has a green wire.  This means your pins are wrong for at least one of the first six columns, just like you're seeing...

You have gaps in your matrix so chances are the non-functioning keys have found themselves in the gaps - they should come to life when the pins are fixed.
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline dj505

  • Thread Starter
  • Posts: 6
Yup, fixing those pin assignments did it! No more dead keys, everything is in the right place. Thanks a ton! Never would've noticed half these things, plus this is my first build after all haha.