So close to finished with my first build

Having trouble with your GBZ build? Ask your questions here!
Post Reply
User avatar
sixteenbit
Posts: 54
Joined: Mon Aug 21, 2017 8:42 pm
Has thanked: 18 times
Been thanked: 13 times
Contact:

So close to finished with my first build

Post by sixteenbit » Mon Oct 23, 2017 11:24 am

... but I'm looking for some help.

I'm using helder's AIO and i'm wiring buttons to GPIO following this http://sudomod.com/forum/viewtopic.php?t=57.
IMG_0167.JPG
IMG_0167.JPG (2.6 MiB) Viewed 7738 times
Once I boot into ES i'm getting No Gamepads Detected. Correct me if I'm wrong but nothing has to be programmed at this point for me to be able to press buttons to then map within ES right? Also, do I need L/R wired up yet for all buttons to work?

I feel like if I can get this part working I should be able to finish this up. Any help is much appreciated.

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: So close to finished with my first build

Post by VeteranGamer » Mon Oct 23, 2017 12:06 pm

sixteenbit wrote:
Mon Oct 23, 2017 11:24 am
... but I'm looking for some help.

I'm using helder's AIO and i'm wiring buttons to GPIO following this http://sudomod.com/forum/viewtopic.php?t=57.

IMG_0167.JPG

Once I boot into ES i'm getting No Gamepads Detected. Correct me if I'm wrong but nothing has to be programmed at this point for me to be able to press buttons to then map within ES right? Also, do I need L/R wired up yet for all buttons to work?

I feel like if I can get this part working I should be able to finish this up. Any help is much appreciated.
if your buttons are wired to GPIO....
your button pcb isnt recognised yet....
it will need to be "programmed"

then you need to boot up with a keyboard connected, you'll first map the keys with the keyboard
(try to map these as those in your retrogame.config, this will save you any headaches once retrogame is installed)....

then you'll need to install retrogame....
following the instruction found in the post you have linked........


if you run into any issue, just ask....
.

User avatar
sixteenbit
Posts: 54
Joined: Mon Aug 21, 2017 8:42 pm
Has thanked: 18 times
Been thanked: 13 times
Contact:

Re: So close to finished with my first build

Post by sixteenbit » Mon Oct 23, 2017 12:11 pm

VeteranGamer wrote:
Mon Oct 23, 2017 12:06 pm
if your buttons are wired to GPIO....
then you need to boot up with a keyboard connected, you'll first map the keys with the keyboard....

then you'll need to install retrogame....
following the instruction found in the post you have linked........


.
Son of a...

I knew it had to be something stupid like this. I misinterpreted that thread. I was thinking I would be able to actually map the buttons on first boot, as in press buttons on gamepad. Thanks for pointing that out. I'll give that a try.

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: So close to finished with my first build

Post by VeteranGamer » Mon Oct 23, 2017 12:14 pm

sixteenbit wrote:
Mon Oct 23, 2017 12:11 pm
VeteranGamer wrote:
Mon Oct 23, 2017 12:06 pm
if your buttons are wired to GPIO....
then you need to boot up with a keyboard connected, you'll first map the keys with the keyboard....

then you'll need to install retrogame....
following the instruction found in the post you have linked........


.
Son of a...

I knew it had to be something stupid like this. I misinterpreted that thread. I was thinking I would be able to actually map the buttons on first boot, as in press buttons on gamepad. Thanks for pointing that out. I'll give that a try.

no probs, it happens to the best of us.....

another thing....

your also gonna need to be hook up to the internet (i think you rocking a Pi Zero) so a wifi dongle will also be needed.....


edit: i see its Pi Zero W, not needed.....
.

User avatar
sixteenbit
Posts: 54
Joined: Mon Aug 21, 2017 8:42 pm
Has thanked: 18 times
Been thanked: 13 times
Contact:

Re: So close to finished with my first build

Post by sixteenbit » Mon Oct 23, 2017 1:19 pm

Ok got keyboard hooked up and wifi connected. Copied retrogame to /home/pi/Adafruit-Retrogame and ran the following

Code: Select all

make retrogame
Got the following:

Code: Select all

make: Nothing to be done for 'retrogame'.
I'm getting a syntax error with the following:

Code: Select all

sudo ./retrogame
Any ideas?
Screen Shot 2017-10-23 at 3.16.24 PM.png
Screen Shot 2017-10-23 at 3.16.24 PM.png (336.25 KiB) Viewed 7710 times
Edit:
Looks like i needed to save the original file as retrogame.c then when you run make retrogame it makes the executable.

User avatar
Codemaster123
Posts: 55
Joined: Sun Sep 10, 2017 3:03 pm
Has thanked: 6 times
Been thanked: 5 times

Re: So close to finished with my first build

Post by Codemaster123 » Mon Oct 23, 2017 1:30 pm

sixteenbit wrote:
Mon Oct 23, 2017 1:19 pm
Ok got keyboard hooked up and wifi connected. Copied retrogame to /home/pi/Adafruit-Retrogame and ran the following

Code: Select all

make retrogame
Got the following:

Code: Select all

make: Nothing to be done for 'retrogame'.
I'm getting a syntax error with the following:

Code: Select all

sudo ./retrogame
Any ideas?

Screen Shot 2017-10-23 at 3.16.24 PM.png
try this i only use this method

cd
curl -O https://raw.githubusercontent.com/adafr ... trogame.sh
sudo bash retrogame.sh


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


.

User avatar
sixteenbit
Posts: 54
Joined: Mon Aug 21, 2017 8:42 pm
Has thanked: 18 times
Been thanked: 13 times
Contact:

Re: So close to finished with my first build

Post by sixteenbit » Mon Oct 23, 2017 1:33 pm

Thanks @Codemaster123 but it looks like i have it working. So I'm gonna roll with it for now. If anything screws up I'll try the method you listed.

Holy cow, i'm so happy to get past this hurdle. Now onto hooking up battery, power switch, and audio!

User avatar
sixteenbit
Posts: 54
Joined: Mon Aug 21, 2017 8:42 pm
Has thanked: 18 times
Been thanked: 13 times
Contact:

Re: So close to finished with my first build

Post by sixteenbit » Tue Oct 24, 2017 11:32 am

Buttons are working and I've moved onto wiring up the speakers. I followed this diagram:

Image
IMG_0170.JPG
IMG_0170.JPG (2.04 MiB) Viewed 7680 times
I'm hearing noise in the speaker but not audio.

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: So close to finished with my first build

Post by VeteranGamer » Tue Oct 24, 2017 12:31 pm

sixteenbit wrote:
Tue Oct 24, 2017 11:32 am
Buttons are working and I've moved onto wiring up the speakers. I followed this diagram:

Image

IMG_0170.JPG

I'm hearing noise in the speaker but not audio.
have you enable pwm audio in the config.txt


dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
disable_audio_dither=1

.

User avatar
sixteenbit
Posts: 54
Joined: Mon Aug 21, 2017 8:42 pm
Has thanked: 18 times
Been thanked: 13 times
Contact:

Re: So close to finished with my first build

Post by sixteenbit » Tue Oct 24, 2017 1:20 pm

Again, thanks VeteranGamer, that was it.

Once I get batter and power switch finished i'll be done!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest