buttons making game lag/freeze?

Having trouble with your GBZ build? Ask your questions here!
dicemaster
Posts: 11
Joined: Fri Dec 22, 2017 8:49 am
Has thanked: 7 times

buttons making game lag/freeze?

Post by dicemaster » Thu Jun 28, 2018 11:14 am

Today I solderd up my Tinkerboy controller PCB to my Pi zero, tested it out and it all mostly works.

The issues i'm getting is the start and select buttons don't work at all, when holding either of them down they will just freeze whatever game I'm playing. I also get lag from holding down any of the other buttons, for example just pressing A is fine, but if I hold it down it will make the entire game just lag out and run slower and the sound gets choppy.

I'm not really sure what to do about this, they seem to be well soldered, I doubt it's due to a faulty connection.
I'm using TinkerBoy's custom RetroPie image.

I would also like to know how I can rotate the screen display, I remeber reading about this before and that you needed to change some setting in config files, but I can't find info about this anymore.

Image

Image

Any reply, help and advice is greatly appreaciated,
Thanks!

User avatar
rodocop
Posts: 1720
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: buttons making game lag/freeze?

Post by rodocop » Thu Jun 28, 2018 11:21 am

Screen rotation is easy, just add this line to the config.txt

display_rotate=2 (if that doesn't work it's rotate_display=2, I can't quite remember)

As for the buttons, check for shorts, maybe those buttons are shorting on nearby GPIO pins? Use a multimeter if you've got one.

The first step i would personally do it reinstall a fresh image (not tinkerboys, and then install retrogame manually and see what happens, you can also try a reflash of tinkerboys script too.)

dicemaster
Posts: 11
Joined: Fri Dec 22, 2017 8:49 am
Has thanked: 7 times

Re: buttons making game lag/freeze?

Post by dicemaster » Fri Jun 29, 2018 6:19 am

rodocop wrote:
Thu Jun 28, 2018 11:21 am
Screen rotation is easy, just add this line to the config.txt

display_rotate=2 (if that doesn't work it's rotate_display=2, I can't quite remember)

As for the buttons, check for shorts, maybe those buttons are shorting on nearby GPIO pins? Use a multimeter if you've got one.

The first step i would personally do it reinstall a fresh image (not tinkerboys, and then install retrogame manually and see what happens, you can also try a reflash of tinkerboys script too.)
Thanks for the reply Rodocop!
I'll double check all my soldering and see if I can use a multimeter.

As for reinstalling an image, if I don't use tinkerboys cutom image, i'll need to configure all the GPIO pins myself, is there a tutotial somehwere to learn how to do this?

Thanks again!

User avatar
rodocop
Posts: 1720
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: buttons making game lag/freeze?

Post by rodocop » Fri Jun 29, 2018 6:43 am

Sure. Check this out. All you really need to know are the BCM/GPIO numbers of the pins used. (Do not use physical pin numbers). I choose it pigrrl2 option as well.

https://learn.adafruit.com/retro-gaming ... s-software

You could also reach out to tinkerBOY for support as well if you can't get it sorted.

dicemaster
Posts: 11
Joined: Fri Dec 22, 2017 8:49 am
Has thanked: 7 times

Re: buttons making game lag/freeze?

Post by dicemaster » Tue Aug 28, 2018 8:59 am

So after a lot of testing and changing my whole pin layout on my Controller PCB I have discovered that what was causing my game o freeze was my pwm audio, apparently having buttons that also use pwm pins alongside the pwm audio will cause the game to freeze when pressing buttons.
Some kind of conflict going on between the pwm pins.

I'm not really sure what to do about it, I've tested 2 different layouts that both have this same problem.

Lpoolm
Posts: 392
Joined: Thu Jun 09, 2016 4:17 am
Location: uk
Has thanked: 76 times
Been thanked: 51 times

Re: buttons making game lag/freeze?

Post by Lpoolm » Tue Aug 28, 2018 9:47 am

i have literally just come on here to read through the threads. I have just finished a build, my first one with a tinkerboy pcb, version 2.0 and I was getting a little slow down when i first tried playing a game, didnt think anything of it as was just checking the buttons work, i also noticed start/select not very responsive just put it down to bad buttons so changed and they seem to have improved a little.
my issue I have now though is i have finished my build, left it on just to check battery and within 5 mins the whole system freezes? Tried several times and does it everytime.
I was hoping it was a bad sd card but tried another card and same issue.
I am also using the supplied image as I am using gpio controls but i have used this many times and never had an issue with that so not sure?
Check out my modding and repair channel of retro and modern consoles:
https://www.youtube.com/channel/UCFz7yW ... GtQ/videos

User avatar
tinkerBOY
Posts: 710
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 206 times

Re: buttons making game lag/freeze?

Post by tinkerBOY » Tue Aug 28, 2018 6:21 pm

dicemaster wrote:
Tue Aug 28, 2018 8:59 am
So after a lot of testing and changing my whole pin layout on my Controller PCB I have discovered that what was causing my game o freeze was my pwm audio, apparently having buttons that also use pwm pins alongside the pwm audio will cause the game to freeze when pressing buttons.
Some kind of conflict going on between the pwm pins.

I'm not really sure what to do about it, I've tested 2 different layouts that both have this same problem.
I thought you said you already know what's causing it? You cannot obviously use the PWM audio pin you configured in config.txt for buttons.
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

User avatar
tinkerBOY
Posts: 710
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 206 times

Re: buttons making game lag/freeze?

Post by tinkerBOY » Tue Aug 28, 2018 6:33 pm

Lpoolm wrote:
Tue Aug 28, 2018 9:47 am
i have literally just come on here to read through the threads. I have just finished a build, my first one with a tinkerboy pcb, version 2.0 and I was getting a little slow down when i first tried playing a game, didnt think anything of it as was just checking the buttons work, i also noticed start/select not very responsive just put it down to bad buttons so changed and they seem to have improved a little.
my issue I have now though is i have finished my build, left it on just to check battery and within 5 mins the whole system freezes? Tried several times and does it everytime.
I was hoping it was a bad sd card but tried another card and same issue.
I am also using the supplied image as I am using gpio controls but i have used this many times and never had an issue with that so not sure?
In order for the GPIO oriented Adafruit's Retrogame Utility program to work properly there has to be a clean contact between the silicon and contact pads on the board when pressing a button. I can even easily simulate a slow down with a clean contacts when playing a game just by semi/half pressing a button. Cleaning the contact pads with an eraser or cotton/cloth will help it a lot. Otherwise check your wiring maybe some of button wires are shoring to GND.
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

dicemaster
Posts: 11
Joined: Fri Dec 22, 2017 8:49 am
Has thanked: 7 times

Re: buttons making game lag/freeze?

Post by dicemaster » Wed Aug 29, 2018 6:48 am

tinkerBOY wrote:
Tue Aug 28, 2018 6:21 pm
I thought you said you already know what's causing it? You cannot obviously use the PWM audio pin you configured in config.txt for buttons.
Well I have now tested it by removing all the PWM pins connected to buttons and only having PWM pins connected to audio.
And I'm still having these freezing issues, I have also tried cleaning the contacts and doesn't seem to have helped in any way.

Some buttons weirdly work fine, pressing the left button which is connected to GPIO pin 4 works great!
But pressing up connected to GPIO 16 or down connected to GPIO 26 will completely freeze the game and audio.

dicemaster
Posts: 11
Joined: Fri Dec 22, 2017 8:49 am
Has thanked: 7 times

Re: buttons making game lag/freeze?

Post by dicemaster » Wed Aug 29, 2018 11:25 am

==SOLVED==
The issue was cause by bad silicone pads, simply replacing my silicone pads that come in contact with the contact pads on the board fixed my issue, my games no longer freeze when pressing buttons.

Special thanks to TinkerBoy for taking his time in helping me fix this issue.

I'm still really suprised that this was the issue, it seems that the slicone pads that I was using didn't conduct properly.
I was expecting it to be a more complicated issue.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest