Cheaper than Teensy

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
Helder
Trailblazer
Trailblazer
Posts: 2985
Joined: Thu May 05, 2016 8:33 am
Location: Rogers, AR
Has thanked: 1459 times
Been thanked: 3114 times

Re: Cheaper than Teensy

Post by Helder » Sat Jun 04, 2016 12:40 pm

Has that been tested on Linux/RetroPi ? I know you told me in a PM that it worked fine in Windows but had some issues in Linux.
Chat with me and other members On Discord

Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.


Helder's Game Tech Website

We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.

User avatar
Oxodao
Posts: 131
Joined: Wed Jun 01, 2016 11:35 am
Location: 127.0.0.1
Has thanked: 4 times
Been thanked: 30 times
Contact:

Re: Cheaper than Teensy

Post by Oxodao » Sat Jun 04, 2016 2:09 pm

I haven't tried it on the raspberry but I tried it on ArchLinux with Fceux emulator on my laptop, but I don't think that would be different.
What I told you by MP was that it did not work with the keyboard method, because the keys were released too shortly after. I might have a solution for this in mind. Actually the gamepad works correctly, and the defines on top allows to change easily the configuration
Arduino sketch for the gamepad (Teensy replacement): http://github.com/oxodao/GBZGamepad

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

Re: Cheaper than Teensy

Post by Fleder » Sun Jun 05, 2016 6:17 am

Oxodao wrote:EDIT2: OOOPS very bad idea. Not working, can't reprogram..
Let me guess, you constantly sent out releases? :lol:

User avatar
Oxodao
Posts: 131
Joined: Wed Jun 01, 2016 11:35 am
Location: 127.0.0.1
Has thanked: 4 times
Been thanked: 30 times
Contact:

Re: Cheaper than Teensy

Post by Oxodao » Sun Jun 05, 2016 1:23 pm

Fleder wrote:
Oxodao wrote:EDIT2: OOOPS very bad idea. Not working, can't reprogram..
Let me guess, you constantly sent out releases? :lol:
Haha not exactly, though same deal, keep sending arrow keys + return and such...
Though as usual, linux was the solution, it allowed me to block the keyboard till I uploaded a new sketch :)

So here is a simple video showing it working on a Raspberry Pi 2 with Retropie 3.7 installed on it playing Super Mario Bros:
https://www.youtube.com/watch?v=KqMsXyjs0Yo

Oh by the way, I did not add the L2/R2 buttons because I don't think any console needs it, we can't emulate Playstation games, do we ?
Arduino sketch for the gamepad (Teensy replacement): http://github.com/oxodao/GBZGamepad

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

Re: Cheaper than Teensy

Post by Fleder » Sun Jun 05, 2016 1:39 pm

Oxodao wrote:Oh by the way, I did not add the L2/R2 buttons because I don't think any console needs it, we can't emulate Playstation games, do we ?
Well, i can, on my Orange Pi PC.
But to add 2 more buttons will not be that difficult, will it?
Is it keyboard or joystick input now?

User avatar
Oxodao
Posts: 131
Joined: Wed Jun 01, 2016 11:35 am
Location: 127.0.0.1
Has thanked: 4 times
Been thanked: 30 times
Contact:

Re: Cheaper than Teensy

Post by Oxodao » Sun Jun 05, 2016 1:52 pm

Actually it is joystick input.
Yeah that won't be difficult, I assumed that everyone would be using a Raspberry Pi Zero.
Just for curiosity, which orangepi are you using ? Does it work wells for emulation ?

EDIT: I added the second R2/L2 button. Code is in the spoiler in the first post
Arduino sketch for the gamepad (Teensy replacement): http://github.com/oxodao/GBZGamepad

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

Re: Cheaper than Teensy

Post by Fleder » Sun Jun 05, 2016 1:58 pm

Oxodao wrote:Actually it is joystick input.
Yeah that won't be difficult, I assumed that everyone would be using a Raspberry Pi Zero.
Just for curiosity, which orangepi are you using ? Does it work wells for emulation ?

EDIT: I added the second R2/L2 button. Code is in the spoiler in the first post
Great, thanks. I will try this tomorrow.

It is called "Orange Pi PC".
I only use it for another project, as it is too big for a GB Case and the other stuff that has to fit in.
But it is much more powerful and as you can read here: http://sudomod.com/forum/viewtopic.php?f=25&t=267
everything works fine. There even is a working RetroPie image now, which gets updated every few days.

GnobarEl
Posts: 42
Joined: Mon May 23, 2016 4:10 am
Has thanked: 17 times

Re: Cheaper than Teensy

Post by GnobarEl » Sun Jun 05, 2016 2:40 pm

Sorry for the dumb question.
What are the advantage of using this solution rather the GPIO pins from RPi3? Isn't cheaper and faster? Also supports multiple press.
(unless we need the GPIO pins for other stuffs).

Thanks.

User avatar
Helder
Trailblazer
Trailblazer
Posts: 2985
Joined: Thu May 05, 2016 8:33 am
Location: Rogers, AR
Has thanked: 1459 times
Been thanked: 3114 times

Re: Cheaper than Teensy

Post by Helder » Sun Jun 05, 2016 3:24 pm

Oxodao wrote:Actually it is joystick input.
Yeah that won't be difficult, I assumed that everyone would be using a Raspberry Pi Zero.
Just for curiosity, which orangepi are you using ? Does it work wells for emulation ?

EDIT: I added the second R2/L2 button. Code is in the spoiler in the first post
Could you edit your code to match what is in the BLUE lettering? I have this pretty much done just need to finish some wire traces and will be done.

Image
Chat with me and other members On Discord

Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.


Helder's Game Tech Website

We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.

User avatar
Oxodao
Posts: 131
Joined: Wed Jun 01, 2016 11:35 am
Location: 127.0.0.1
Has thanked: 4 times
Been thanked: 30 times
Contact:

Re: Cheaper than Teensy

Post by Oxodao » Sun Jun 05, 2016 3:46 pm

Helder wrote:
Oxodao wrote:Actually it is joystick input.
Yeah that won't be difficult, I assumed that everyone would be using a Raspberry Pi Zero.
Just for curiosity, which orangepi are you using ? Does it work wells for emulation ?

EDIT: I added the second R2/L2 button. Code is in the spoiler in the first post
Could you edit your code to match what is in the BLUE lettering? I have this pretty much done just need to finish some wire traces and will be done.

Image
I've done it, it is in the spoiler on the top of the post.
Though I don't know why Arduino pro micro doesn't have some of the pins you used here... Probably lack of space I'd guess
Arduino sketch for the gamepad (Teensy replacement): http://github.com/oxodao/GBZGamepad

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest