Teensy not accepting 1 button

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Teensy not accepting 1 button

Post by Fleder » Sat May 14, 2016 6:42 am

Hello there,

i've run into another problem on my progress.
I have wired up my frankenboard to the teensy now.
He recognises every button except for the right d pad (d on teensy).
It works, as i measured the output on the cables, but as soon as the cable goes to the teensy, nothing happens if i push it.

The script seems to be good:

Code: Select all

void setupKeys() {
  keys[0] = key('w', 0);
  keys[1] = key('s', 1);
  keys[2] = key('a', 2);
  keys[3] = key('d', 3);
  keys[4] = key('p', 4);
  keys[5] = key('l', 5);
  keys[6] = key('o', 6);
  keys[7] = key('k', 7);
  keys[8] = key('x', 8);
  keys[9] = key('z', 9);
  keys[10] = key('q',10);
  keys[11] = key('e',11);
Does someone have any idea what I could do to find the mistake? Thanks

User avatar
crispy_tofu
Posts: 340
Joined: Thu May 05, 2016 1:51 am
Location: Australia
Been thanked: 5 times

Re: Teensy not accepting 1 button

Post by crispy_tofu » Sat May 14, 2016 7:17 am

Check solder joints / try swapping inputs on teensy? Just to check if there's just a problem with the 4th input. :)

User avatar
Kurai Kitsune
Posts: 16
Joined: Thu May 05, 2016 12:41 pm

Re: Teensy not accepting 1 button

Post by Kurai Kitsune » Sat May 14, 2016 7:18 am

without a picture i can only imagine the ground isnt hooked up to the button pads for the right dpad?
other things could be that wire is shorting out with something else

User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Re: Teensy not accepting 1 button

Post by Fleder » Sat May 14, 2016 7:25 am

crispy_tofu wrote:Check solder joints / try swapping inputs on teensy? Just to check if there's just a problem with the 4th input. :)
Hard- or Software? You mean, put the wire for DPad right to another teensy pin?
Kurai Kitsune wrote:without a picture i can only imagine the ground isnt hooked up to the button pads for the right dpad?
other things could be that wire is shorting out with something else
They all have a common ground, if this one was broken, every ground would be and thus every button.
Also, i checked the button via multimeter and it works great until i wire it to the teensy, so it might be the teensy being faulty?

Here is a picture of the Wires from the Controller Board
It is the red wire. As i wrote, i checked it via multimeter and it works.

User avatar
crispy_tofu
Posts: 340
Joined: Thu May 05, 2016 1:51 am
Location: Australia
Been thanked: 5 times

Re: Teensy not accepting 1 button

Post by crispy_tofu » Sat May 14, 2016 4:28 pm

Fleder wrote:
crispy_tofu wrote:Check solder joints / try swapping inputs on teensy? Just to check if there's just a problem with the 4th input. :)
Hard- or Software? You mean, put the wire for DPad right to another teensy pin?
Yes, sorry for the confusion. Hardware. :)

User avatar
chiz
Posts: 228
Joined: Thu May 05, 2016 12:05 am
Has thanked: 29 times
Been thanked: 119 times

Re: Teensy not accepting 1 button

Post by chiz » Sat May 14, 2016 6:16 pm

@Fleder
A similar thing happened to me before. Try this: use your right d pad as "ground" and using a piece of wire, bridge any other connection and see if it will register the button you just bridged. Let me know what happens.

User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Re: Teensy not accepting 1 button

Post by Fleder » Sun May 15, 2016 8:28 am

Guys, now it works. I have no idea why.
I just fixed a broken wire and tried it again, to see what exact key was not working and now it works like a charm.
Thank for your help, though!
Last edited by Fleder on Mon May 16, 2016 2:18 am, edited 1 time in total.

User avatar
ylwsub68
Posts: 24
Joined: Thu May 05, 2016 6:27 am

Re: Teensy not accepting 1 button

Post by ylwsub68 » Sun May 15, 2016 1:27 pm

This is happening to me now, except Left is not working. The ground is good, the button connection is good. Checked it all with a multimeter. I even switched out the button and the button pads.

Maybe I'll try to use a different input on the Teensy. Feel free to chime in if there is an absolute solution. Thanks.

User avatar
ylwsub68
Posts: 24
Joined: Thu May 05, 2016 6:27 am

Re: Teensy not accepting 1 button

Post by ylwsub68 » Sun May 15, 2016 7:37 pm

So when I hot glued the Dpad cluster, somehow the wire for Left came loose a tiny bit. I found that Left only worked when I pressed on the glue cluster. So I cut into the glue where that trace was (which was right at the edge of the glue), exposed more of the copper at that trace, and added more solder. Works like a charm now. Check those connections!

User avatar
crispy_tofu
Posts: 340
Joined: Thu May 05, 2016 1:51 am
Location: Australia
Been thanked: 5 times

Re: Teensy not accepting 1 button

Post by crispy_tofu » Sun May 15, 2016 7:45 pm

@Fleder
Glad to hear that you got it working. :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest