Author Topic: Easy AVR USB Keyboard Firmware and Keymapper  (Read 933352 times)

0 Members and 2 Guests are viewing this topic.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1050 on: Wed, 24 June 2015, 22:53:58 »
Not supporting it, got it.

Hey if you've got a hacked one then I can whip up support.  I didn't figure I'd run into anyone who could load via ISP!
« Last Edit: Wed, 24 June 2015, 23:00:01 by metalliqaz »

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1051 on: Wed, 24 June 2015, 22:58:49 »
I really like this firmware, I have it loaded on my phantom and my Ghost Squid that just arrived today and all the testing that I have done so far it works great on the Ghost Squid, the only thing missing is the windows key lock LED that is located on F9 not a big deal considering I don't use it. Thanks for all of your hard work on it.

Wow there's something new.  I did not know the QF XT had 4 LEDs.  Hmmm, now I just have to figure out what the I/O pin is for it.  I'll try looking in Bpiphany's code.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1052 on: Wed, 24 June 2015, 23:01:11 »
OK, so here's the info I gathered about my Red Scarf II. If you need some photos, just ask.
Code: [Select]
Board Info
==========

- Silkscreen on the bottom side says "Red Scarf II 60" and "Ver.A". Top side "logo" says "RS60".
- This version has no ISO option, only ANSI.
- Right shift can be split, backspace can be split (HHKB-style).
- DFU bootloader (activated on reset, does not erase eeprom on erase).
- AVR ISP pins are broken out to through-hole pads (yay!), order is (starting from the end closer to the middle of the board).

    gnd miso vcc sck mosi reset

- The [TMK files from Kai Ryu](https://github.com/kairyu/tmk_keyboard_custom/blob/master/keyboard/RedScarfII) work with this keyboard. Note that these sources assume a bigger keyboard (numpad + function keys), but 60% is really just a subset of that.

Summary
=======

Rows
----

Row selection is done via a 74HCT138 decoder. Its inputs are routed to PB0, PB1 and PB2. Rows are unselected by taking these high. Rows (0,1,2,3,4 for the 60% version) are selected by writing the binary representation of the row to the three pins; here's a table from the above sources:

    row:     0   1   2   3   4   5   x
    pin: B2  0   1   0   1   0   1   1
         B1  0   0   1   1   0   0   1
         B0  0   0   0   0   1   1   1

Initialisation is just marking the pins as outputs.

Columns
-------

Tied like this:

    col: 0   1   2   3   4   5   6   7   8   9   10  11  12  13
    pin: F4  F1  F0  B3  D0  D1  D4  D5  D6  D7  F7  F6  D2  D3

    -------------------------------------------------------------
    |C0 | C1| C2| C3| C4| C5| C6| C7| C8| C9|C10|C11|C12| C13 |(R2,C12 if split Bsp)
    +-----------------------------------------------------------+
    |C0   | C1| C2| C3| C4| C5| C6| C7| C8| C9|C10|C11|C12| C13 |
    +-----------------------------------------------------------+
    |C0    | C1| C2| C3| C4| C5| C6| C7| C8| C9|C10|C11|  C13   |
    +-----------------------------------------------------------+
    |C0      | C2| C3| C4| C5| C6| C7| C8| C9|C10|C11|  C12 |C13|
    +-----------------------------------------------------------+
    |C0  | C1 | C2 |           C9           |C10 |C11 |C12 |C13 |
    -------------------------------------------------------------

Initialised as inputs with pull-ups; triggered when low.

Wiring
------

Column_pin --- switch --- diode anode (+) --- diode cathode (-) --- row pin on 74HCT138

LEDs
----

- CapsLock:  PC7 (on when pin low)
- Logo:      PC6 (this is 4 SMT leds on the bottom side below spacebar + one unpopulated SMT led on the bottom side, edge below Tab) (on when pin high)
- Backlight: PB7 (on when pin high)
- There is no numlock LED.

I would be really happy if you could add support for this board into your firmware! (I'm willing to test!)

Thanks this is good stuff!  I'll give it a shot

Offline nova779

  • Posts: 55
  • Location: Charlotte, NC
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1053 on: Wed, 24 June 2015, 23:01:36 »


]
Wow there's something new.  I did not know the QF XT had 4 LEDs.  Hmmm, now I just have to figure out what the I/O pin is for it.  I'll try looking in Bpiphany's code.

I can look in the morning if you'd like, I wouldn't know how to find it other than following the trace to the led and figuring out what pin matched but I'm sure I'd have a hard time giving you the actual name of the pin unless you had some advice on that.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1054 on: Wed, 24 June 2015, 23:08:38 »


]
Wow there's something new.  I did not know the QF XT had 4 LEDs.  Hmmm, now I just have to figure out what the I/O pin is for it.  I'll try looking in Bpiphany's code.

I can look in the morning if you'd like, I wouldn't know how to find it other than following the trace to the led and figuring out what pin matched but I'm sure I'd have a hard time giving you the actual name of the pin unless you had some advice on that.

Hmm, I'm not certain that bpiphany added support for that LED to his controller.  He didn't seem to add it to the firmware.  It could be pin D0.  I'll make a test build.  Watch for my PM

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1055 on: Wed, 24 June 2015, 23:18:08 »
Not supporting it, got it.

Hey if you've got a hacked one then I can whip up support.  I didn't figure I'd run into anyone who could load via ISP!

Your call, man. Personally, I have an ISP programmer, others may not, but it could possibly encourage them to try? I'll leave it up to you whether or not to add support.

Offline bovineblitz

  • Posts: 25
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1056 on: Thu, 25 June 2015, 01:07:39 »
Is there a way to have a key be mapped to a greek letter?  I type α and β all the time, would be really nice to integrate that into a key I never use (like right Alt or something).
Magicforce 68 with speed coppers
Custom TKL with ergo clears
Das Model S
TKL with Outemu blues
In progress: Click-modded cream ALPS Neutrino build

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1057 on: Thu, 25 June 2015, 01:31:04 »
Not supporting it, got it.

Hey if you've got a hacked one then I can whip up support.  I didn't figure I'd run into anyone who could load via ISP!

Your call, man. Personally, I have an ISP programmer, others may not, but it could possibly encourage them to try? I'll leave it up to you whether or not to add support.
I've got an AVR ISP as well - I actually came to mechanical keyboards from AVR world. By the way, you can get an ISP programmer (or something that can be easily used as a programmer) for about $10 or maybe even less on sites like tindie. People around here often have a teensy or an arduino micro - those can be used as programmers as well.

But it may not be easy for beginners - it's definitely not just plug-and-play. The good thing is that it's enough to use it once ;)

I don't have GON's board though, so I won't be of much help here.

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1058 on: Thu, 25 June 2015, 04:55:11 »
OK, so here's the info I gathered about my Red Scarf II. If you need some photos, just ask.
Code: [Select]
Board Info
==========

- Silkscreen on the bottom side says "Red Scarf II 60" and "Ver.A". Top side "logo" says "RS60".
- This version has no ISO option, only ANSI.
- Right shift can be split, backspace can be split (HHKB-style).
- DFU bootloader (activated on reset, does not erase eeprom on erase).
- AVR ISP pins are broken out to through-hole pads (yay!), order is (starting from the end closer to the middle of the board).

    gnd miso vcc sck mosi reset

- The [TMK files from Kai Ryu](https://github.com/kairyu/tmk_keyboard_custom/blob/master/keyboard/RedScarfII) work with this keyboard. Note that these sources assume a bigger keyboard (numpad + function keys), but 60% is really just a subset of that.

Summary
=======

Rows
----

Row selection is done via a 74HCT138 decoder. Its inputs are routed to PB0, PB1 and PB2. Rows are unselected by taking these high. Rows (0,1,2,3,4 for the 60% version) are selected by writing the binary representation of the row to the three pins; here's a table from the above sources:

    row:     0   1   2   3   4   5   x
    pin: B2  0   1   0   1   0   1   1
         B1  0   0   1   1   0   0   1
         B0  0   0   0   0   1   1   1

Initialisation is just marking the pins as outputs.

Columns
-------

Tied like this:

    col: 0   1   2   3   4   5   6   7   8   9   10  11  12  13
    pin: F4  F1  F0  B3  D0  D1  D4  D5  D6  D7  F7  F6  D2  D3

    -------------------------------------------------------------
    |C0 | C1| C2| C3| C4| C5| C6| C7| C8| C9|C10|C11|C12| C13 |(R2,C12 if split Bsp)
    +-----------------------------------------------------------+
    |C0   | C1| C2| C3| C4| C5| C6| C7| C8| C9|C10|C11|C12| C13 |
    +-----------------------------------------------------------+
    |C0    | C1| C2| C3| C4| C5| C6| C7| C8| C9|C10|C11|  C13   |
    +-----------------------------------------------------------+
    |C0      | C2| C3| C4| C5| C6| C7| C8| C9|C10|C11|  C12 |C13|
    +-----------------------------------------------------------+
    |C0  | C1 | C2 |           C9           |C10 |C11 |C12 |C13 |
    -------------------------------------------------------------

Initialised as inputs with pull-ups; triggered when low.

Wiring
------

Column_pin --- switch --- diode anode (+) --- diode cathode (-) --- row pin on 74HCT138

LEDs
----

- CapsLock:  PC7 (on when pin low)
- Logo:      PC6 (this is 4 SMT leds on the bottom side below spacebar + one unpopulated SMT led on the bottom side, edge below Tab) (on when pin high)
- Backlight: PB7 (on when pin high)
- There is no numlock LED.

I would be really happy if you could add support for this board into your firmware! (I'm willing to test!)

Thanks this is good stuff!  I'll give it a shot
I forgot to record that the resistors for backlight are 470 Ohm. This is quite on the safe side (i.e. even low forward voltage LEDs aren't going to be burned even on full power), but it might factor into PWM calculation so that the board doesn't draw too much power when the backlight is on (e.g. the board would draw cca 300mA just for 3V-LEDs when switched on permanently).

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1059 on: Thu, 25 June 2015, 06:48:39 »
Is there a way to have a key be mapped to a greek letter?  I type α and β all the time, would be really nice to integrate that into a key I never use (like right Alt or something).
Put an Alt code into a macro

Offline nova779

  • Posts: 55
  • Location: Charlotte, NC
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1060 on: Thu, 25 June 2015, 08:09:00 »
Hmm, I'm not certain that bpiphany added support for that LED to his controller.  He didn't seem to add it to the firmware.  It could be pin D0.  I'll make a test build.  Watch for my PM

It works! :)
(Sorry for image quality)

« Last Edit: Thu, 25 June 2015, 08:21:17 by nova779 »

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1061 on: Thu, 25 June 2015, 08:18:18 »
Nice!

Offline bovineblitz

  • Posts: 25
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1062 on: Thu, 25 June 2015, 10:11:17 »
Is there a way to have a key be mapped to a greek letter?  I type α and β all the time, would be really nice to integrate that into a key I never use (like right Alt or something).
Put an Alt code into a macro

Oh nice, I was digging around in the help menus last night and for some reason that didn't occur to me.  Do you know if numlock needs to be enabled for an alt code to work?  I suppose I could always incorporate numlock on and off before and after the code if so.
Magicforce 68 with speed coppers
Custom TKL with ergo clears
Das Model S
TKL with Outemu blues
In progress: Click-modded cream ALPS Neutrino build

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1063 on: Thu, 25 June 2015, 10:17:57 »
I forgot to record that the resistors for backlight are 470 Ohm. This is quite on the safe side (i.e. even low forward voltage LEDs aren't going to be burned even on full power), but it might factor into PWM calculation so that the board doesn't draw too much power when the backlight is on (e.g. the board would draw cca 300mA just for 3V-LEDs when switched on permanently).

Same for the Nerd60 (the 470ohm resistors), though to be honest, I can't stand the flicker of the PWM dimming...I'm wondering if a capacitor in line would help buffer that.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1064 on: Thu, 25 June 2015, 10:21:35 »
Is there a way to have a key be mapped to a greek letter?  I type α and β all the time, would be really nice to integrate that into a key I never use (like right Alt or something).
Put an Alt code into a macro

Oh nice, I was digging around in the help menus last night and for some reason that didn't occur to me.  Do you know if numlock needs to be enabled for an alt code to work?  I suppose I could always incorporate numlock on and off before and after the code if so.

You've got a programmable keyboard.  Try it!  I would think the numlocks wouldn't be necessary.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1065 on: Thu, 25 June 2015, 10:29:26 »
I forgot to record that the resistors for backlight are 470 Ohm. This is quite on the safe side (i.e. even low forward voltage LEDs aren't going to be burned even on full power), but it might factor into PWM calculation so that the board doesn't draw too much power when the backlight is on (e.g. the board would draw cca 300mA just for 3V-LEDs when switched on permanently).

Same for the Nerd60 (the 470ohm resistors), though to be honest, I can't stand the flicker of the PWM dimming...I'm wondering if a capacitor in line would help buffer that.

The software makes no accounting for the current, so the resistors make no difference.

The Easy code has to work on all kinds of keyboards, so there is a problem when it comes to PWM.  I can't count on the boards to use the AVR's PWM pins for driving LEDs.  Some do but many don't.  Therefore, I had to implement software PWM.  This is slower than the hardware PWM.  Therefore, at the lowest setting, the LEDs are blinking at about 60 HZ.  As the brightness goes higher, that number quickly grows, so the flickering shouldn't be visible.

A capacitor would help, yes.  I'm not sure what you meant by "in line", but to be of use the cap would be in a parallel circuit to the load, not serial.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1066 on: Thu, 25 June 2015, 10:30:51 »
By the way, if there is serious flickering going on, that means the software is blowing it's schedule and should be reported as a bug.

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1067 on: Thu, 25 June 2015, 11:22:46 »
The software makes no accounting for the current, so the resistors make no difference.
Not directly - but it is useful to calculate the consumption of the LEDs on the board when the backlight is fully on (this does depend on the resistors) - and if it's too much (I consider anything > 200mA "too much", but of course USB 2.0 spec allows 500mA, and I suppose on most computers one can go higher without too much complaining from the computer), then they should never be allowed to be fully on. I.e. the highest brightness should be already some level of PWM.

I know that may be too much trouble to implement.

I also have a KBT Pure (not programmable of course), and that one has only 100 Ohm resistors - so even with 3V-forward voltage LEDs, it would be 20mA through a LED, so 1.2A when fully on! Way too much! That's why I mention it.

The Easy code has to work on all kinds of keyboards, so there is a problem when it comes to PWM.  I can't count on the boards to use the AVR's PWM pins for driving LEDs.  Some do but many don't.  Therefore, I had to implement software PWM.  This is slower than the hardware PWM.  Therefore, at the lowest setting, the LEDs are blinking at about 60 HZ.  As the brightness goes higher, that number quickly grows, so the flickering shouldn't be visible.
I did not realize that you need to do software PWM. That sucks.

But yes, 60Hz should not be visible without waving around.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1068 on: Thu, 25 June 2015, 11:41:51 »
Yeah the resistors make a big difference.  It's just the software that doesn't care.  I size my resistors similar to you.  I keep it safely under that USB spec maximum.  I actually have a TODO item to check LED power usage during sleep mode.

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1069 on: Thu, 25 June 2015, 12:02:59 »
The software makes no accounting for the current, so the resistors make no difference.

The Easy code has to work on all kinds of keyboards, so there is a problem when it comes to PWM.  I can't count on the boards to use the AVR's PWM pins for driving LEDs.  Some do but many don't.  Therefore, I had to implement software PWM.  This is slower than the hardware PWM.  Therefore, at the lowest setting, the LEDs are blinking at about 60 HZ.  As the brightness goes higher, that number quickly grows, so the flickering shouldn't be visible.

A capacitor would help, yes.  I'm not sure what you meant by "in line", but to be of use the cap would be in a parallel circuit to the load, not serial.

Just so there's no confusion, I wasn't taking a shot at your or Gon's code. I was just stating a general opinion on LEDs, dimming, and flicker. As for the cap, I was going to try to put in in series, but you're right, it would in fact need to be paralleled in the circuit.

By the way, if there is serious flickering going on, that means the software is blowing it's schedule and should be reported as a bug.

Interesting, I don't th...well...I don't know I mean, my Ducky Zero doesn't flicker at all but I've never checked what the circuitry is for the LEDs....come to think of it, neither does my Monoprice GBL4....I wonder if there is something wrong with Gon's firmware. Admittedly, I do tend to notice flicker more than others...but still, this is pretty noticeable....hmm.

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1070 on: Thu, 25 June 2015, 12:52:20 »
Yeah the resistors make a big difference.  It's just the software that doesn't care.  I size my resistors similar to you.  I keep it safely under that USB spec maximum.  I actually have a TODO item to check LED power usage during sleep mode.
Cool! Sorry for nagging ;) I'll shut up now and let you do your job - you seem to be doing it pretty well, kudos!

Offline yehoshuaf

  • Posts: 33
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1071 on: Thu, 25 June 2015, 13:40:05 »
Hi, I need some advice with a handwired keyboard and this firmware.
I'm coming from TMK and everything worked great so far. However when I tried this firmware, I adjusted the handwire.cfg and handwire_hardware.cfg, made a layout, built and flashed the hex file and I just couldn't get any output at all, even with the debug firmware. After some troubleshooting I figured the diodes must point in the wrong direction. In this case it's not a big problem, because it's only a 5x4 numpad and I can easily swap rows and colums of the pinout (layout is mirrored and turned by 90 degree though). But I own a Planck as well and I'd like to make it work with Easy AVR. Since the Planck has 12 columns I can't just make them rows.

Is there any other way to deal with this?

Edit: here's a picture of the wiring http://imgur.com/t6IvRc7

I'm working on it.

Hi. Great tool. I'd like to second this! I've got several customs that I wire in the opposite direction.

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1072 on: Thu, 25 June 2015, 17:28:33 »
Interesting, I don't th...well...I don't know I mean, my Ducky Zero doesn't flicker at all but I've never checked what the circuitry is for the LEDs....come to think of it, neither does my Monoprice GBL4....I wonder if there is something wrong with Gon's firmware. Admittedly, I do tend to notice flicker more than others...but still, this is pretty noticeable....hmm.

I take that back, apparently there IS a flicker on my Ducky, though unnoticeable.

Here's a video for everyone's enjoyment...

Offline MAR82

  • Posts: 494
  • Location: It says I'm in France
  • Keyboard Addict
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1073 on: Fri, 26 June 2015, 04:46:27 »
Wow, I would love to be able to do 1200fps. The best my camera can do is 240fps at 320 x 240

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1074 on: Fri, 26 June 2015, 08:28:07 »
Wow, I would love to be able to do 1200fps. The best my camera can do is 240fps at 320 x 240

Yep, it's a Nikon 1 J3, I remember thinking "who the hell will use this gimmicky assed feature"...and well, I found out who...it comes in really handy at times.

Offline faxe

  • Posts: 71
  • Location: Cologne, Germany
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1075 on: Fri, 03 July 2015, 07:21:04 »
Hi, I have a problem with your software and can't figure it out. I am using a Pegasus Hoof V2 and had multiple firmwares running without a problem on my keyboard. From one Firmware to the next (extended my existing layout by some macros) my keyboard behaves weirldy. Some keys work normally, some work only once and when i press them again they get "stuck", meaning the character is repeated until i press another key. I switched back to my original Filco controller, everything is fine. I tried a completly fresh basic Easy AVR Layout, also the same problem. Even old hex files that once worked don't work anymore.
To rule out a hardware problems with the Hoof i flashed the original firmware, works perfectly. Also tried the beta, same problem. I am totally at a loss what could be the problem.
ISO Clueboard V2 Zealio 78g -ISO Clueboard V1 MX Clear - ISO 60% MX Clear - ISO Filco MJ 2 MX Brown - ISO is life

Offline bovineblitz

  • Posts: 25
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1076 on: Fri, 03 July 2015, 09:43:58 »
Hmm, I'm not certain that bpiphany added support for that LED to his controller.  He didn't seem to add it to the firmware.  It could be pin D0.  I'll make a test build.  Watch for my PM

It works! :)
(Sorry for image quality)
Show Image


My alt codes are coming out as individual alt presses rather than combos.  Instead of \ALT(224) being α it comes out as ☻☻♦.
Magicforce 68 with speed coppers
Custom TKL with ergo clears
Das Model S
TKL with Outemu blues
In progress: Click-modded cream ALPS Neutrino build

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1077 on: Sat, 04 July 2015, 21:39:49 »
Happy 4th of July.  I'll get to bug fixin' after the holiday!

Offline worldspawn

  • Posts: 329
  • Location: Austin, TX
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1078 on: Mon, 06 July 2015, 08:41:06 »
Finally got this working on my custom board, overall, fantastic!  The only issue I'm having is with the Boot mode combo.  I've got it bound to Fn+Esc, when I hit the combo, the board does something, and stops working as a keyboard, but never shows up as the atmega chip/com port on the computer, any idea what's going on?  I also cannot get it back into boot mode via the reset pin either since the most recent flash.

Also, what do you name a pin in the handwire cfg for the backlighting activation?
« Last Edit: Mon, 06 July 2015, 12:02:50 by worldspawn »
I can make acrylic laser cut cases/plates PM for info

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1079 on: Mon, 06 July 2015, 13:34:38 »
Finally got this working on my custom board, overall, fantastic!  The only issue I'm having is with the Boot mode combo.  I've got it bound to Fn+Esc, when I hit the combo, the board does something, and stops working as a keyboard, but never shows up as the atmega chip/com port on the computer, any idea what's going on?  I also cannot get it back into boot mode via the reset pin either since the most recent flash.

Also, what do you name a pin in the handwire cfg for the backlighting activation?

That's weird, It doesn't show up anywhere?...I've not tried the latest firmware (I don't think), but I'll see if mine does the same thing. That is pretty strange though...

Offline worldspawn

  • Posts: 329
  • Location: Austin, TX
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1080 on: Mon, 06 July 2015, 13:49:10 »
Finally got this working on my custom board, overall, fantastic!  The only issue I'm having is with the Boot mode combo.  I've got it bound to Fn+Esc, when I hit the combo, the board does something, and stops working as a keyboard, but never shows up as the atmega chip/com port on the computer, any idea what's going on?  I also cannot get it back into boot mode via the reset pin either since the most recent flash.

Also, what do you name a pin in the handwire cfg for the backlighting activation?

That's weird, It doesn't show up anywhere?...I've not tried the latest firmware (I don't think), but I'll see if mine does the same thing. That is pretty strange though...

Yeah, as far as I can tell, windows recognizes the disconnect as a keyboard as it changes mode, then nothing, no new devices.
I can make acrylic laser cut cases/plates PM for info

Offline Hzza

  • Posts: 377
  • Location: Windsor, UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1081 on: Mon, 06 July 2015, 14:14:32 »
I'm having the same issue, using the firmware you sent to me the other day. The same thing happens with the jumper on the back of the board as well; the board disconnects but the bootloader doesn't show up in device manager...

Offline deductivemonkee

  • Posts: 572
  • Location: Canada BC
  • Professional Lurker
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1082 on: Mon, 06 July 2015, 16:13:49 »
Is there support for a hand wired Atomic semi standard with teensy 2.0?
oh yeah I saw that crazy **** if that doesn't win I'm deleting my account

/ orthodox - 78g zealios / alps64 - mtsc / sentraq s-60x rgb - gat blues / let's split - 67g zealios / let's split - 67g zealios /

Offline bovineblitz

  • Posts: 25
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1083 on: Mon, 06 July 2015, 16:40:22 »
Is there support for a hand wired Atomic semi standard with teensy 2.0?

Yeah just modify the handwire_hardware.cfg file in the cfg folder with the way you wired up your rows/columns.
Magicforce 68 with speed coppers
Custom TKL with ergo clears
Das Model S
TKL with Outemu blues
In progress: Click-modded cream ALPS Neutrino build

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1084 on: Mon, 06 July 2015, 16:58:57 »
Finally got this working on my custom board, overall, fantastic!  The only issue I'm having is with the Boot mode combo.  I've got it bound to Fn+Esc, when I hit the combo, the board does something, and stops working as a keyboard, but never shows up as the atmega chip/com port on the computer, any idea what's going on?  I also cannot get it back into boot mode via the reset pin either since the most recent flash.

Also, what do you name a pin in the handwire cfg for the backlighting activation?

That's weird, It doesn't show up anywhere?...I've not tried the latest firmware (I don't think), but I'll see if mine does the same thing. That is pretty strange though...

Yeah, as far as I can tell, windows recognizes the disconnect as a keyboard as it changes mode, then nothing, no new devices.

I'm having the same issue, using the firmware you sent to me the other day. The same thing happens with the jumper on the back of the board as well; the board disconnects but the bootloader doesn't show up in device manager...




Sorry, it works fine on my QFR with a Frosty Flake. I wonder if ti's specific to your KBs? Granted I'm on a Mac...maybe that's the difference?

Offline bovineblitz

  • Posts: 25
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1085 on: Mon, 06 July 2015, 17:16:45 »
Finally got this working on my custom board, overall, fantastic!  The only issue I'm having is with the Boot mode combo.  I've got it bound to Fn+Esc, when I hit the combo, the board does something, and stops working as a keyboard, but never shows up as the atmega chip/com port on the computer, any idea what's going on?  I also cannot get it back into boot mode via the reset pin either since the most recent flash.

Also, what do you name a pin in the handwire cfg for the backlighting activation?

That's weird, It doesn't show up anywhere?...I've not tried the latest firmware (I don't think), but I'll see if mine does the same thing. That is pretty strange though...

Yeah, as far as I can tell, windows recognizes the disconnect as a keyboard as it changes mode, then nothing, no new devices.

I'm having the same issue, using the firmware you sent to me the other day. The same thing happens with the jumper on the back of the board as well; the board disconnects but the bootloader doesn't show up in device manager...




Sorry, it works fine on my QFR with a Frosty Flake. I wonder if ti's specific to your KBs? Granted I'm on a Mac...maybe that's the difference?

It's working fine on my handwire with the files I downloaded about a week ago.
Magicforce 68 with speed coppers
Custom TKL with ergo clears
Das Model S
TKL with Outemu blues
In progress: Click-modded cream ALPS Neutrino build

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1086 on: Mon, 06 July 2015, 17:20:29 »
Is everyone using Teensys?  If you have a different bootloader it might not behave in exactly the same way, some controllers need a double tap of the button which isn't going to work in software.

...
Also, what do you name a pin in the handwire cfg for the backlighting activation?

You can put it on any LED, then in the configuration window you need to set that LED to backlight :)
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1087 on: Mon, 06 July 2015, 22:48:03 »
Hello gents, looks like I've got some work to do!  It was a long day.  I had some dental work done, after which I did some yard work during which I accidentally stabbed myself in the wrist with garden shears.  A few stitches at the ER and a few beers on the way home and I'm right back on track.  :p

I'm sure this stuff can be straightened out.  First things first, if you're using the latest code and it doesn't work, try the older versions and let me know if that fixes your problem.

By the way, while GH was down, I added an official backup page at DT wiki: http://deskthority.net/wiki/Easy_AVR_USB_Keyboard_Firmware

Offline faxe

  • Posts: 71
  • Location: Cologne, Germany
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1088 on: Tue, 07 July 2015, 01:30:39 »
Nothing a few beers can't fix. Speaking of fixed, after i tried older firmwares (oldest was Easy_keymap_20150510) and worked my way up testing to the current version. All worked.
I dont't know what happened, but everything is fine.  :thumb:
ISO Clueboard V2 Zealio 78g -ISO Clueboard V1 MX Clear - ISO 60% MX Clear - ISO Filco MJ 2 MX Brown - ISO is life

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1089 on: Tue, 07 July 2015, 08:51:36 »
Hello gents, looks like I've got some work to do!  It was a long day.  I had some dental work done, after which I did some yard work during which I accidentally stabbed myself in the wrist with garden shears.  A few stitches at the ER and a few beers on the way home and I'm right back on track.  :p

I'm sure this stuff can be straightened out.  First things first, if you're using the latest code and it doesn't work, try the older versions and let me know if that fixes your problem.

By the way, while GH was down, I added an official backup page at DT wiki: http://deskthority.net/wiki/Easy_AVR_USB_Keyboard_Firmware

Holy...wow, umm, get better man, gotta worry about numero uno before all else. One person told me, "You're no use to anyone if you're dead"...

Offline worldspawn

  • Posts: 329
  • Location: Austin, TX
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1090 on: Tue, 07 July 2015, 08:51:54 »
Hello gents, looks like I've got some work to do!  It was a long day.  I had some dental work done, after which I did some yard work during which I accidentally stabbed myself in the wrist with garden shears.  A few stitches at the ER and a few beers on the way home and I'm right back on track.  :p

I'm sure this stuff can be straightened out.  First things first, if you're using the latest code and it doesn't work, try the older versions and let me know if that fixes your problem.

By the way, while GH was down, I added an official backup page at DT wiki: http://deskthority.net/wiki/Easy_AVR_USB_Keyboard_Firmware

Any idea how to get the atmega 32u4 back into boot mode with the boot combo not working right?  The reset switch is also no longer putting it into boot mode either since the last firmware flash.
I can make acrylic laser cut cases/plates PM for info

Offline bovineblitz

  • Posts: 25
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1091 on: Tue, 07 July 2015, 10:44:13 »
I discovered that when highlighting things (text) with shift and up arrow it seems to behave inconsistently.  The first arrow press doesn't usually highlight, the next two do, then the fourth one unhighlights everything again.
Magicforce 68 with speed coppers
Custom TKL with ergo clears
Das Model S
TKL with Outemu blues
In progress: Click-modded cream ALPS Neutrino build

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1092 on: Tue, 07 July 2015, 14:05:04 »
Hello gents, looks like I've got some work to do!  It was a long day.  I had some dental work done, after which I did some yard work during which I accidentally stabbed myself in the wrist with garden shears.  A few stitches at the ER and a few beers on the way home and I'm right back on track.  :p

I'm sure this stuff can be straightened out.  First things first, if you're using the latest code and it doesn't work, try the older versions and let me know if that fixes your problem.

By the way, while GH was down, I added an official backup page at DT wiki: http://deskthority.net/wiki/Easy_AVR_USB_Keyboard_Firmware

Any idea how to get the atmega 32u4 back into boot mode with the boot combo not working right?  The reset switch is also no longer putting it into boot mode either since the last firmware flash.

That shouldn't be possible.  When you reprogram your board with Flip or Teensy, it will not allow modification to the memory that holds the bootloader.  This prevents bricking your 32U4.  Now, it's entirely possible that I goofed up the BOOT key somehow (although it works for me), but if you press the reset switch properly, you can be darn sure it's going into bootloader mode.

What keyboard are you using?

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1093 on: Tue, 07 July 2015, 14:05:21 »
I discovered that when highlighting things (text) with shift and up arrow it seems to behave inconsistently.  The first arrow press doesn't usually highlight, the next two do, then the fourth one unhighlights everything again.

What keyboard are you using?

Offline bovineblitz

  • Posts: 25
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1094 on: Tue, 07 July 2015, 16:57:24 »
It's handwired.  The highlighting/unhighlighting seems random now that I play with it again.  Other arrows are fine.
Magicforce 68 with speed coppers
Custom TKL with ergo clears
Das Model S
TKL with Outemu blues
In progress: Click-modded cream ALPS Neutrino build

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1095 on: Wed, 08 July 2015, 03:46:18 »
It's handwired.  The highlighting/unhighlighting seems random now that I play with it again.  Other arrows are fine.

Have you tried aqua key test to confirm which keys light up when you hold shift and up?  Sounds like you might have a diode backwards causing ghost presses :)
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline worldspawn

  • Posts: 329
  • Location: Austin, TX
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1096 on: Wed, 08 July 2015, 06:44:04 »
Hello gents, looks like I've got some work to do!  It was a long day.  I had some dental work done, after which I did some yard work during which I accidentally stabbed myself in the wrist with garden shears.  A few stitches at the ER and a few beers on the way home and I'm right back on track.  :p

I'm sure this stuff can be straightened out.  First things first, if you're using the latest code and it doesn't work, try the older versions and let me know if that fixes your problem.

By the way, while GH was down, I added an official backup page at DT wiki: http://deskthority.net/wiki/Easy_AVR_USB_Keyboard_Firmware

Any idea how to get the atmega 32u4 back into boot mode with the boot combo not working right?  The reset switch is also no longer putting it into boot mode either since the last firmware flash.

That shouldn't be possible.  When you reprogram your board with Flip or Teensy, it will not allow modification to the memory that holds the bootloader.  This prevents bricking your 32U4.  Now, it's entirely possible that I goofed up the BOOT key somehow (although it works for me), but if you press the reset switch properly, you can be darn sure it's going into bootloader mode.

What keyboard are you using?

It's a custom board based upon the atreus design.  I have the reset pin of the 32u4 tied to a jumper to ground.  What is the default method to put it into bootloader mode via the reset?  That information is surprisingly elusive on the internet.
I can make acrylic laser cut cases/plates PM for info

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1097 on: Wed, 08 July 2015, 06:53:01 »
It's a custom board based upon the atreus design.  I have the reset pin of the 32u4 tied to a jumper to ground.  What is the default method to put it into bootloader mode via the reset?  That information is surprisingly elusive on the internet.
That depends on the particular bootloader. So - what bootloader are you using (i.e. where did the 32u4 come from, or did you flash some bootloader yourself?

Offline worldspawn

  • Posts: 329
  • Location: Austin, TX
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1098 on: Wed, 08 July 2015, 07:02:35 »
It's the factory atmega bootloader, this was a bare chip from atmega.
I can make acrylic laser cut cases/plates PM for info

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1099 on: Wed, 08 July 2015, 07:53:11 »
It's the factory atmega bootloader, this was a bare chip from atmega.
OK, then it's atmel's DFU bootloader, and the fuses are probably on their defaults.

Whether the chip will go to bootloader on powerup/reset depends on a couple of fuses and maybe some pin status (reading the datasheet).

BOOTRST fuse: if programmed (=0), then the chip *will* jump to bootloader on every powerup/reset. From the datasheet it looks like chips ship with BOOTRST fuse unprogrammed (=1), so that's not good for you.

HWBE fuse: if programmed (=0), then the chip can be forced to go to bootloader on powerup/reset by taking the HWB pin (PE2) low. Reading the datasheet, this fuse is by default programmed (=0) on 32U4 (potentially good for you), and unprogrammed (=1) on 32U4RC (this would be bad, since there's no way then to force entering bootloader).

So:

If the fuses are both unprogrammed (=1) then there's no way to enter the bootloader by hardware, so either you can do it in firmware, or you'll need an AVR ISP programmer and access to 4 pins of the atmega (reset, miso, mosi, sck).

If BOOTRST=1 and HWB=0, then you'll need access to the PE2 pin of the atmega. Tie this to ground, and either reset or power up the board. It will go to bootloader.

To change the fuses, you need an AVR ISP programmer (an arduino or a teensy can act as one if you have those) and access to reset, mosi, miso, sck pins.

EDIT: some further comments: Once you have an ISP programmer, you can reprogram the whole flash including the bootloader if you want. The keyboards I've seen (e.g. bphiphany's controllers) or teensy have BOOTRST fuse programmed, so that the chip enters the bootloader on every reset/powerup. The bootloaders that are used then check whether is was a reset or powerup, and will jump to the application code if it was a powerup (the behaviour is then than the keyboard will look like a keyboard when plugged in, but will go to bootloader when reset while still powered up).
« Last Edit: Wed, 08 July 2015, 08:02:27 by flabbergast »