Pi Zero - Gameboy NANO
Made by r1cebank, uploadedDescription
It was really hard making this build and I actually unable to close this properly, later I decided just to hot glue these in place. I will be releasing the image and wiring instructions.
LCD wiring instructions:
MOSI -> MOSI
MISO - not needed
SCK -> SCLK
OLECS -> CE0
DC -> GPIO25
RESET -> GPIO24
Gamepad wiring:
Select -> GPIO27
Option -> GPIO17
Up -> GPIO13
Down -> GPIO19
Left -> GPIO26
Right -> GPIO6
Right quad-button (using nintendo 3ds layout)
Y -> GPIO20
X -> GPIO21
B -> GPIO16
A -> GPIO12
Raspberry pi image https://onedrive.live.com/redir?resid=314F89CC78882D29!5317&authkey=!AEEEY2UiUq6M5Ic&ithint=file%2czip
(You will need a SD card >= 16GB to use it)
Print Settings
Printer Brand:
RepRap
Printer:
Prusa i3
Rafts:
No
Supports:
No
Short question:
Does the HDMI output work with your software?
I implemented the software as "The_Real_Phoenix" has suggested in his youtube video and unfortunately HDMI is NOT WORKING with that version.
I'm badly looking for a fix on that.
Wait, only one pin for the buttons, no positive and negative?
EDIT: Oh, right. Ground.
What's the thing made out of circles that the wires go into? Is it a breadboard?
EDIT: After doing my homework, cool. Perfboard. Why does it only list one wire for the buttons? Shouldn't there be input and output?
Thank you so much for posting this! Much was learned!
Where do u get the wires from?
Help! I can't find ANY GPIO diagrams for the pi zero! Has the Internet been hiding something from me, or am I the only one?! Someone please give me a link.
I found this. Maybe it will help
https://elementztechblog.wordpress.com/2016/05/03/controlling-gpio-pins-of-raspberry-pi-zero/
Hey, I have trouble to use your image. First, even after multiple downloads, 7zip keep telling me the CRC is wrong and thus the file is corrupt. I can extract the image, and after burning it on a 16GB SD card (with Win32DiskImager) the boot fail while trying to start /etc/rc.local Compatibility, then fail to start LSB start NetBIOS nameserver (nmbd) and finaly fail to start LSB start Samba SMB/CIFS daemon (smbd).
After that all the automatic login fail and the boot stuck here after 5 tries.
I have nothing on the TFT screen, but I can see the boot on the HDMI output.
Wiring seems correct. Should I see something on the screen at this state of boot? Did I do something wrong?
I noticed similar problems so I got a 32 gb and burned the image on that and it ran just fine. However, the oled screen did not turn on but Im using a 1.27'' OLED so I'm guess Ill have to edit some code.
Nope; No change with a 32gb. It fact it's worse: if I turn off the Pi after the 5 automatic login fails, the system runs a FSCK and it seems the whole partition is corrupted.
Where do I wire the second switch to "turn the game pad on and off," as he said in the video?
Hoooo so this is what the second switch is for! So if I'm correct, this switch should be on the ground line of the front buttons, with the ground from the buttons going to one on the outside pins of the switch, and wire the middle pin to a ground pin the Pi's GPIO, like pin 39. As such, the front buttons can be turn on/off by switch their link to the ground.
Can someone confirm this?
Oh my goodness thank you for posting a wire diagram. I'm working on a similar project right now but I have a 1.27'' oled from adafruit. Im wondering do I need to put in code to get it to show retropie or should it work from just wiring it up? If you know of any sources that can help please send them my way. I cant find a tutorial on how to program the pi zero to recognize the display.
two questions how long is the battery life and is there a bigger screen that would work I'm thinking about making a gameboy advanced or psp sized portable possibly
Battery lasts 4 hours for my test, it might last even longer. A bigger screen will work, you will need a different case design. You can go to adafruit.com to check some of their designs
where does the SDCS on the screen go to
It's not used, it's for selecting the card reader on the display
I am also having trouble using your image when I try to move it into my SD card it fails and I have no clue how to get your image onto my devise I have formatted the SD card so there is enough space
You will need a card has at least 16gb free space, sorry
what keeps happening at the end of the extract it says that error 0x 800004005 happens which leaves me unable to access the pi image but I am using the NOOB image from pi and so I'm wondering how I would put those codes in manually into the terminal for that
I have a 32gb of free space on mine
when I put in the codes for the screen to work I get this message, module fbtft_devise not found. I would like it if someone could help me understand why it keeps saying this I have all the wires in the same place but the one thing I don't have is internet access if that is the problem. thanks
No it should work without Internet. Did you copy and paste? It should be fbtft_device
how would I be able to have this connected to my computer
what I try to do is plug the HMDI cord to the side of the computer like I do for my television and when I do that nothing happens on my computer. I don't know how I would copy and paste it onto the terminal using just the television
Also one more thing and these question can also be questionbed by other people, did you use a joy stick thing or 4 tactile switches for the joystick button.
Use this https://www.sparkfun.com/products/10063
How do I wire the 5 way switch?!
Check the datasheet here: https://www.sparkfun.com/products/10063
Thanks! As a novice on thingiverse, that hurts my eyes... I'll ask for help understanding the sheet when I'm building. :)
5 way analog joystick
where do you solder the 5 way one
How did you get the SPI working on the 1.5" OLED? I'm having the biggest trouble with that. I have it wired per your wiring institutions (the internet tells me to run DC to GPIO 23 and 25 so I'm glad I can confirm) but I still can't get anything to show. Do you have a link to instructions on what drive you used?
Many Thanks in advance! Great work on your Gameboy Nano!
Ok there are a couple things you need.
First thing you have to use raspi-config and enable SPI
After you have done that, you will need to put:
sudo modprobe fbtft_device custom name=fb_ssd1351 buswidth=8 gpios=reset:24,dc:25 speed=10000000 width=128 height=128 bgr=1 init=-1,0xFD,0x12,-1,0xFD,0xB1,-1,0xAE,-1,0xB3,0xF1,-1,0xCA,127,-1,0xA0,0x74,-1,0x15,0x00,0x7F,-1,0x75,0x00,0x7F,-1,0xA1,128,-1,0xA2,0x0,-1,0xB5,0x00,-1,0xAB,0x01,-1,0xB1,0x32,-1,0xBE,0x05,-1,0xA6,-1,0xC1,0xC8,0x80,0xC8,-1,0xC7,0x0F,-1,0xB4,0xA0,0xB5,0x55,-1,0xB6,0x01,-1,0xAF,-3
in /etc/rc.local before exit 0
Then you will need to install fbcp from https://github.com/notro/fbtft
after you have installed it, try to run fbcp & in terminal, you should be seeing something showing up.
Or you can save yourself all this trouble by using my image
I got the screen to work just fine (except for the resolution on emulationstation). However, I can only get it to work if I run the commands you listed in the terminal manually. Would you mind posting your /etc/rc.local file so I can see how you got it to work on startup? That seems to be the issue. Again thank you so much for all your help, I really appropriate it.
https://gist.github.com/r1cebank/fec0fcd7bcb4d1bd73a9e272ddc6f3da
retrogame is used for input mapping
Thanks for the reply and info. Unfortunately I downloaded your image twice and tried extracting and it got stuck at 99% both times so I think I have to do it the manual way. I will try your instructions this weekend. Thanks again!
I am sorry about this, did you have at least 16GB free space on your disk? The entire image is 16GB
I have another question, what are the wiring to switches and what is the image link for, is that the pictures or the pi OS
So i was wondering how big the file size is cause it says 953 mb and it gets stuck on last mb and i have to cancel, i tried deleting stuff and i got 40 gb of free space and it wont download still also could make me a diy kit with case printed already and stuff, ill pay you for all things needed.
Yeah the fire is compressed so it shows 953mb, sorry I can't make you a diy kit, the part needed in this Raspberry pi Zero is out of stock everywhere, you can try this vendor on ebay http://www.ebay.com/itm/Gamboy-Nano-Complete-Kit-with-Case-and-Buttons-DIY-Adafruit-Raspberry-Pi-Zero-/222057977778?hash=item33b3afd7b2:g:nu4AAOSwoBtW4adn
Good luck building!
Oh thanks but the file still gets stuck and i have problems downloading and i just tried again. Also is that a kit that comes with all parts?
Let me see if I can get the file hosted in a different place, where are you located?
Yes, I built mine using this kit. You will need some small PCB for the buttons, wires, solder. the usual stuff.
Oh yeah forgot can you send me link to breadboard/PCB that you used, thanks again been such a help.
Im in washington and what do you mean PCB, do you mean bread board. And also what guage wire did you use. Btw im 12 xD love electronics have lots of experience and my bro helps me i have all soldering materials and have good experience soldering. Good with electronics.
Not really breadboards since you can't fit those in the case. Thinking something like: https://www.adafruit.com/products/1214
You can find wiring instructions in the description.
Oh yeah you still havent ansered to my last question and i have another, sorry :/. So how to you charge the battery?
The part list for this build include a LiPo charger called powerboost: https://www.adafruit.com/products/2465 this is the one you are looking for
dont you need a 500 one bc i was reviewing rasmus's post and he answered to some guy that you need a 500 cause the 1000 wont fit
so how do you use those while soldering , do you just slip wire throught to organize it?
Just think of yourself making designing a PCB, first layout the circuit on paper, then decide on where you are going to solder your buttons, output wires, ground wires, and next thing is to solder, i just used a thin wire 30AWG
Sorry for the trouble i just havent worked with this type of skill, so how do you secure buttons on PCB and you just solder underneath it right. And do you just try to aline it with the buttons on the case
I am having trouble downloading your images, is there a way you could email them to me?
The image is very big I doubt it will work in a email. What kind of problem are you having?
After I downloaded your file my computer was having trouble opening the file. I even tried to copy it to a blank disk and that didn't work either.
So you can't unzip it? The image is 16GB, do you have enough space on that disk?
that must be the problem thanks!
The wiring diagram works! and helped me alot, thanks
I am glad it helped you :D
So its my first pi project and Ive got it all running thanks to you, however when I enter the emulator and run a game my controls act different, b resets the game and left and right change save slots and start and select don't seem to work, outside the emulator all the buttons map fine. I used your pi image, just not sure what part of the setup I'm missing to get the controls to work right in the emulator. Any help would be awesome.
i have the same issue of doc_doom
control work fin in emulation station but in a game select , start not work , b do a reset , x and y go to retrogame.c setup
I really haven't tested this with any game yet. So it could have some undiscovered issue. May I ask you what game are you using? You said the controls work correctly outside the emulator right?
I tried a few nes and snes games with the same results, the controls work outside the emulator fine just when you enter the emulator there seems to be some conflict.
Awesome!!, can't wait to try it
Thank you!
Message me if you have any questions, I will do my best to assist you.
Raspberry pi image https://onedrive.live.com/redir?resid=314F89CC78882D29!5317&authkey=!AEEEY2UiUq6M5Ic&ithint=file%2czip
(You will need a SD card >= 16GB to use it)