Author Topic: [HELP] installing tmk keyboard to arduino nano  (Read 6021 times)

0 Members and 1 Guest are viewing this topic.

Offline pink_panther

  • Thread Starter
  • Posts: 16
    • Pink panther
[HELP] installing tmk keyboard to arduino nano
« on: Thu, 25 August 2016, 13:29:22 »
Hello nerds.
I'm constructing a keyboard for a personal project, but i'm not very good with controllers and firmware and stuff. For some time was trying to set up tmk keyboard in my arduino nano with no luck.
For the sake of examle I'm using gh60, here's how:

git clone https://github.com/tmk/tmk_keyboard.git
cd tmk_keyboard/keyboard/gh60
make KEYMAP=poker
sudo ./avrdude -C ../etc/avrdude.conf  -p atmega328p -vv -c arduino  -b 57600 -P /dev/ttyUSB0 -D -Uflash:w:gh60_lufa.hex:i


It uploads the hex with no problems, but the chip just does nothing. I'm trying to connect the inputs but it has no effect. What am I missing?


I also tried uploading hex'es from keyboard editor
http://www.tmk-kbd.com/tmk_keyboard/editor/hhkb/index.html

I'm also pretty sure that hardware is functional, because I tried on several of these chips

UPDATE
I tried installing building onekey with vusb:

cd onekey
make clean
make -f Makefile.vusb


Also tried setting
MCU = atmega328p
in Makefile.vusb

Then tried shorting pb0 and pb1 (which are d9 and d8 on arduino)
But still no effect
« Last Edit: Fri, 26 August 2016, 22:10:55 by pink_panther »
I evaluate regular expressions with regular expressions.

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #1 on: Thu, 25 August 2016, 13:38:26 »
Have you unplugged and replugged the USB after flashing?
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline pink_panther

  • Thread Starter
  • Posts: 16
    • Pink panther
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #2 on: Thu, 25 August 2016, 13:40:53 »
Have you unplugged and replugged the USB after flashing?
Yes I have
I evaluate regular expressions with regular expressions.

Offline Tactile

  • Posts: 1434
  • Location: Portland, OR
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #3 on: Thu, 25 August 2016, 14:34:46 »
Have you edited the config.h file to match your build? Matrix row/column pins, diode direction, etc.
REΛLFORCE

Offline pink_panther

  • Thread Starter
  • Posts: 16
    • Pink panther
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #4 on: Thu, 25 August 2016, 15:51:17 »
Have you edited the config.h file to match your build? Matrix row/column pins, diode direction, etc.

No
I evaluate regular expressions with regular expressions.

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #5 on: Thu, 25 August 2016, 15:52:28 »
The GH60 uses an atmega32u4 while you're flashing it to an atmega328p - did you swap that in the config too?  It would need v-usb.
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline pink_panther

  • Thread Starter
  • Posts: 16
    • Pink panther
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #6 on: Thu, 25 August 2016, 17:12:17 »
The GH60 uses an atmega32u4 while you're flashing it to an atmega328p - did you swap that in the config too?  It would need v-usb.

could you elaborate on how to do that?
I evaluate regular expressions with regular expressions.

Offline Tactile

  • Posts: 1434
  • Location: Portland, OR
REΛLFORCE

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #8 on: Thu, 25 August 2016, 18:35:22 »
The GH60 uses an atmega32u4 while you're flashing it to an atmega328p - did you swap that in the config too?  It would need v-usb.

could you elaborate on how to do that?

I'm afraid I'm not even close to a tmk expert so all I can offer is this recent quote that suggests it's possible

TMK still works with VUSB without problem

and a nod towards the onekey folder in tmk which contains a Makefile.vusb

Good luck!
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline pink_panther

  • Thread Starter
  • Posts: 16
    • Pink panther
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #9 on: Fri, 26 August 2016, 21:47:32 »
Please see my update
« Last Edit: Fri, 26 August 2016, 22:15:17 by pink_panther »
I evaluate regular expressions with regular expressions.

Offline tent

  • Posts: 8
Re: [HELP] installing tmk keyboard to arduino nano
« Reply #10 on: Wed, 23 November 2016, 15:02:45 »
I also seem to be stuck in same situation.. did you or someone fix it?

thanks in advance