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 » Mon Jul 04, 2016 2:09 pm

So just the built in arduino? I suppose so but how much demand is there for that? I can modify the original one I did that was a black pcb a few pages back and just leave everything off except the arduino and that will work too and you can always populate the other parts yourself.
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
Camble
Posts: 885
Joined: Thu May 05, 2016 2:31 am
Location: Scotland
Has thanked: 269 times
Been thanked: 488 times

Re: Cheaper than Teensy

Post by Camble » Mon Jul 04, 2016 2:17 pm

Yea, pretty much. Reason being I'm running out of space for the Teensy but already have the hub sorted. Audio would still be useful actually, so really just without the hub.

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 » Mon Jul 04, 2016 2:20 pm

Camble wrote:Yea, pretty much. Reason being I'm running out of space for the Teensy but already have the hub sorted. Audio would still be useful actually, so really just without the hub.
I can order a small batch of those in case demand shows up beyond yourself.
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
Camble
Posts: 885
Joined: Thu May 05, 2016 2:31 am
Location: Scotland
Has thanked: 269 times
Been thanked: 488 times

Re: Cheaper than Teensy

Post by Camble » Mon Jul 04, 2016 2:26 pm

Sweet :)

SidSilver
Posts: 263
Joined: Sun May 22, 2016 6:22 am
Location: France
Has thanked: 137 times
Been thanked: 37 times

Re: Cheaper than Teensy

Post by SidSilver » Mon Jul 04, 2016 2:43 pm

The atmega code you use is keyboard type or gamepad type ?

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 » Mon Jul 04, 2016 2:45 pm

I used the gamepad type but you can program it yourself to something else since the arduino IDE will recognize the Atmega32U4.
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 » Mon Jul 04, 2016 3:37 pm

I will probably recode it so that both solution are available in my library
Arduino sketch for the gamepad (Teensy replacement): http://github.com/oxodao/GBZGamepad

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 » Mon Jul 04, 2016 5:17 pm

Oxodao wrote:I will probably recode it so that both solution are available in my library
Be sure to use this pinout for the buttons especially the Analog pins :

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.

SidSilver
Posts: 263
Joined: Sun May 22, 2016 6:22 am
Location: France
Has thanked: 137 times
Been thanked: 37 times

Re: Cheaper than Teensy

Post by SidSilver » Mon Jul 04, 2016 11:47 pm

Helder wrote:I used the gamepad type but you can program it yourself to something else since the arduino IDE will recognize the Atmega32U4.
Nice, gamepad is what I would have done. ;)

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 Jul 16, 2016 10:51 am

Okai so, I received my PSP 2000 Joystick ordered here: http://www.ebay.com/itm/161680026688?_t ... EBIDX%3AIT
I added this to the library and it's really easy to setup.

First off you need to set the pins for X and Y and flash GetAnalog on the arduino.
Then it's a simple matter of opening the Serial Monitor, turn the joystick around the edges until the values are constant. Once you got them, open the sketch for the Gamepad and change the "USE_JOYSTICK" to true. Lastly, you need to set X and Y pins and change the map with the corresponding value you find with the last sketch:

Line 65 & 66:

Code: Select all

int x = map(analogRead(ANA_X), Lowest X, Highest X, -127, 127);
int y = map(analogRead(ANA_Y), Lowest Y, Highest Y, -127, 127);
Flash and enjoy :)

I did not tried it yet with Helder's board because I haven't got mine yet but be sure that once I have my hands on one, it will be fully compatible.

I also done a Keyboard version for those who do not want to have the joystick version, though I can not include the joystick since keyboard do not have analog values.

Once again, here is the link for the library.
https://github.com/oxodao/GBZGamePad


EDIT: I made a pretty ugly thing and I've just seen the branch you created, you can modify the main file to make if you want @wermy :)
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