geekhack

geekhack Community => Other Geeky Stuff => Topic started by: pink_panther on Thu, 25 August 2016, 13:29:22

Title: [HELP] installing tmk keyboard to arduino nano
Post by: pink_panther 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
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: suicidal_orange on Thu, 25 August 2016, 13:38:26
Have you unplugged and replugged the USB after flashing?
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: pink_panther on Thu, 25 August 2016, 13:40:53
Have you unplugged and replugged the USB after flashing?
Yes I have
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: Tactile 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.
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: pink_panther 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
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: suicidal_orange 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.
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: pink_panther 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?
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: Tactile on Thu, 25 August 2016, 18:12:21
This guide might help.

https://deskthority.net/workshop-f7/how-to-build-your-very-own-keyboard-firmware-t7177.html
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: suicidal_orange 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!
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: pink_panther on Fri, 26 August 2016, 21:47:32
Please see my update
Title: Re: [HELP] installing tmk keyboard to arduino nano
Post by: tent 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