Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news


Poll

What default port assignments would you prefer for Mapper?

Set the ports to blank.  That will prompt users to either assign ports or load a mapping (.DAT) file.
0 (0%)
Make mapping (.DAT) files and pinout images for the Arduino boards.
0 (0%)
Both of the above.
2 (50%)
Leave the current defaults.
0 (0%)
Doesn't matter.  It's easy to load a .DAT file and/or reassign ports.
2 (50%)

Total Members Voted: 4

  

Author Topic: KADE miniArcade 2.0 beta release  (Read 4229 times)

0 Members and 1 Guest are viewing this topic.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
KADE miniArcade 2.0 beta release
« on: April 30, 2017, 07:34:00 pm »
(Posted at Bruno's request.)



The KADE Team is proud to announce the beta release of the miniArcade 2.0 Mapper program and PCB fabrication files.

Windows:
https://drive.google.com/open?id=0B6zru_SYfdYbWlBtN184UVJSc00

Mac:
https://drive.google.com/open?id=0B6zru_SYfdYbRFhYTXgzcEZFUVE

Ubuntu 64-bit:
https://drive.google.com/open?id=0B6zru_SYfdYbN000X2pvbXpWdzA





Is miniArcade 2.0 Open Source?
KADE miniArcade 2.0 Mapper application, KADE miniArcade 2.0 daughterboard and KADE Multi-Out PCB gerber files are offered as-is at no cost (freeware) but they are not open-source nor open-hardware.

What does Mapper do?
It allows you to program a 32u4 AVR to work with a variety of arcade-style controls.

What AVR and bootloader do I need?
MiniArcade 2.0 is designed to work with a wide variety of boards.

Any 32u4 AVR with DFU (FLIP) bootloader + 16Mhz crystal like the MattairTech MT-DB-U4 will work automatically with Mapper.
("Atmel DFU bootloader" will work too, but requires a pullup resistor on E2/B)

The MT-DB-U4 is a perfect pin-for-pin match for the miniArcade 2.0 daughterboard.



To use 32u4 AVRs with other bootloaders, you need to be able to be able to upload a firmware hex file and an EEPROM hex file to the board. (currently working on procedures for Arduino and Teensy 2.0 boards)

How many input ports are available?
Mapper has 47 available Button Mapping IDs. (0-46)
The Button Mapping ID "Input As" indicates which of the 24 Normal input ports or 23 Shifted input ports (Shift + B7 is reserved for Shift Lock) will trigger the related output.

What controls work with miniArcade 2.0?
Digital (microswitch)
  - Joystick
  - Pushbutton
  - Pedal
  - Mechanical rotary (Ikari Warriors) joystick
Analog (potentiometer)
  - Joystick
  - Star Wars yoke
  - 270 degree steering wheel
  - Pedal
  - Pong/Warlords paddle

What systems does it connect to?
- Generic USB/HID Joypad (USB cable)
- Generic USB/HID Keyboard (USB cable)
- NES/SNES (KADE Multi-Out expansion board)
- Genesis (KADE Multi-Out expansion board) -- 3-button stick (original or second gen. console)
- MSX (KADE Multi-Out expansion board) -- autodetect only (for now)
- Neo Geo AES (KADE Multi-Out expansion board)
- GameCube/Nintendo64 (custom RJ-45 cable)
- PS1/PS2 (custom RJ-45 cable) -- this also allows you to connect to 3DO, Dreamcast, Famicom, Famicom (clone), MegaDrive / Master System, Saturn, Turbo Grafx 16, Xbox 360, and other consoles using commercially available adapter cables
- PS3 (USB cable)
- Wii/WiiU/NES Classic (custom RJ-45 cable)
- WiiU (USB cable)
- Xbox (USB cable + female USB to joystick port adapter cable)

Where can I get the miniArcade 2.0 daughterboard and KADE Multi-Out expansion board?
The distro packages at the top of this post have the PCB fabrication (gerber) files in the "\docs\gerbers\" folder.

The User Guide in "\docs\" has links to PCB fabrication houses and the necessary components.

You're free to make boards using the PCB gerber files provided and sell those PCBs if you wish.

One of the fabrication houses has a "10 boards for 10 bucks" deal.

If you don't want to bother with fabricating the daughterboard, you can use header pins or solder wires directly to your AVR board.

If you don't want to bother with fabricating the multi-out board, you can build the circuit on a prototype board or solderless breadboard. (use the gerber files to determine the necessary connections)

Update:
Quote from: bootsector
Just saw that seeedstudio.com has a 10 PCBs for $5 deal now!

Update2: Added picture of assembled miniArcade 2.0.


Scott
« Last Edit: July 26, 2017, 11:38:07 pm by PL1 »

ark_ader

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5344
  • Present for you Grandfather...
Re: KADE miniArcade 2.0 beta release
« Reply #1 on: May 01, 2017, 07:42:07 am »
I cannot believe how you guys work so fast.  Impressive.

Well done.   :applaud:

I'll start testing it later today.
"I really do feel pity for those who go out of their way to perform a personal slight, than taking the effort in joining the conversation and creating some useful dialogue which would benefit the persons' perusal of this topic.  Yet where would we be without the persistant antagonist?"

mourix

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 136
Re: KADE miniArcade 2.0 beta release
« Reply #2 on: May 01, 2017, 08:10:51 am »
Was thinking of making something similar to this and then I opened this post :dizzy:

However this looks like the most polished way a project like this can possibly be one. Big ups :applaud:

rovingmind

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 616
  • If you only knew the POWER of the Dark Side
    • rovingmind
Re: KADE miniArcade 2.0 beta release
« Reply #3 on: May 01, 2017, 11:55:27 am »
this links to the mt-db-u4 board which is out of stock.  will the mt-db-u2 work?
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHH!!!!!

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 78
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #4 on: May 01, 2017, 01:47:50 pm »
this links to the mt-db-u4 board which is out of stock.  will the mt-db-u2 work?
Nope

rovingmind

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 616
  • If you only knew the POWER of the Dark Side
    • rovingmind
Re: KADE miniArcade 2.0 beta release
« Reply #5 on: May 01, 2017, 06:02:21 pm »
Nope
awesome.   and now i've 5 of the miniarcade2 boards coming in blue.     :-\ 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHH!!!!!

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #6 on: May 01, 2017, 08:48:50 pm »
I cannot believe how you guys work so fast.  Impressive.

Well done.   :applaud:

I'll start testing it later today.
Was thinking of making something similar to this and then I opened this post :dizzy:

However this looks like the most polished way a project like this can possibly be one. Big ups :applaud:
Thanks, guys.   ;D

Bruno did an awesome job on the coding.  :applaud:

LMK if there are any parts of the documentation (User Guide, images, etc.) that need clarification/improvement.

this links to the mt-db-u4 board which is out of stock.
I just dropped a message to Justin to let him know about the beta release.

With any luck he'll get more MT-DB-U4's in stock soon.   ;D

EDIT: Looks like they are back in stock already.  :w00t
EDIT2: The product page shows "in stock", but when you get to the shopping cart, it shows "backordered".   :dunno

------------
If anyone has an Arduino and wants to try loading the miniArcade 2.0 firmware and EEPROM using avrdude:

1. Install the avrdude programmer.

2. Install the Arduino Leonardo/Mini bootloader driver as per the instructions at https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc2

3. Configure miniArcade 2.0 Mapper as desired.

4. Click on "Tools -- Save EEPROM config data to file (HEX)..." and save the "EEPROM.eep" file in the "\firmwares\" folder.

5. Rename "EEPROM.eep" to "EEPROM.hex". (both are hex format)

6. Copy the "MINIARCADE2.hex" and "EEPROM.hex" files from the "\firmwares\" folder to the avrdude folder.

7. Find the COM port assigned to the Arduino bootloader.  Look in the Device Manager properties screen or the Arduino software under Tools--Serial Port (look for the check mark)

8. Create a "miniArcade2.txt" file with this text in the avrdude directory. (Change "COMXX" to the Arduino bootloader port i.e. "COM7")

Quote
avrdude -p atmega32u4 -P COMXX -c avr109 -U flash:w:MINIARCADE2.hex -U eeprom:w:EEPROM.hex -C avrdude.conf

9. Rename "miniArcade2.txt" to "miniArcade2.bat".

10. Launch the .bat file to program the Arduino.

*** Still need to confirm/refine this procedure. Suggestions welcome.  ;D ***

------------
If anyone has a Teensy 2.0, the team could use help figuring out and documenting how to load the firmware and EEPROM files onto those boards.

Related thread here.


Scott
« Last Edit: May 01, 2017, 10:31:32 pm by PL1 »

rovingmind

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 616
  • If you only knew the POWER of the Dark Side
    • rovingmind
Re: KADE miniArcade 2.0 beta release
« Reply #7 on: May 01, 2017, 09:55:14 pm »


this links to the mt-db-u4 board which is out of stock.
I just dropped a message to Justin to let him know about the beta release.

With any luck he'll get more MT-DB-U4's in stock soon.   ;D

EDIT: Looks like they are back in stock already.  :w00t

------------
.


Scott

with headers, a single board, dfu flip bootloader, and 16mhz.

* This product is not available in the requested quantity. 1 of the items will be backordered.

is the message i get.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHH!!!!!

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #8 on: May 01, 2017, 10:29:05 pm »
this links to the mt-db-u4 board which is out of stock.
I just dropped a message to Justin to let him know about the beta release.

With any luck he'll get more MT-DB-U4's in stock soon.   ;D

EDIT: Looks like they are back in stock already.  :w00t
with headers, a single board, dfu flip bootloader, and 16mhz.

* This product is not available in the requested quantity. 1 of the items will be backordered.

is the message i get.
You're right.   :embarassed:

The product page shows "in stock", but when you get to the shopping cart, it shows "backordered".   :dunno


Scott

rovingmind

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 616
  • If you only knew the POWER of the Dark Side
    • rovingmind
Re: KADE miniArcade 2.0 beta release
« Reply #9 on: May 01, 2017, 11:10:36 pm »
well, i have a pack of the circuit boards (in blue) on order and one of those on back-order.  we'll see which arrives first.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHH!!!!!

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #10 on: May 01, 2017, 11:50:26 pm »
well, i have a pack of the circuit boards (in blue) on order and one of those on back-order.  we'll see which arrives first.
Unless you already have it, the third participant in the race is the other hardware like screw terminals, Dupont pin headers, maybe an RJ45 port for console adapters, etc.

There's a Bill of Materials with links at the end of the User Guide.   ;D

Have you decided if you want to use screw terminals or Dupont pin headers to connect your controls?

Are you going to connect to a console via RJ45 or a PC via USB?


Scott

rovingmind

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 616
  • If you only knew the POWER of the Dark Side
    • rovingmind
Re: KADE miniArcade 2.0 beta release
« Reply #11 on: May 02, 2017, 12:18:23 am »
it will end up being usb to a pc of some sort.  anything else is up in the air for now.  probably screw terminals.  i have some of that stuff.  i haven't looked at the parts list yet for what the board needs but i did see the pins for the rj45.  on a side note for anybody interested it was $20 (ish) shipping in addition to the $5 for the boards.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHH!!!!!

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2503
  • Back from the dead.
Re: KADE miniArcade 2.0 beta release
« Reply #12 on: May 02, 2017, 01:56:04 am »
Forgive my ignorance... Roughly speaking, what's the value of using the daughterboard?
Formerly known for the (apparently now defunct) arcadeartlibrary

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #13 on: May 02, 2017, 03:17:47 am »
Forgive my ignorance... Roughly speaking, what's the value of using the daughterboard?
Good question.   ;D

1. The RJ45 port allows you to easily change from one console adapter to another.

2. The daughterboard has a PS-360+ compatible 2x10 header.
(no active components -- it just connects the header pins to the correct AVR ports)

3. The layout and spacing of the terminals/pins on the daughterboard makes it a bit easier to avoid connecting to the wrong port.

If you don't do consoles, don't need the PS-360+ port, and can keep track of which pin you are connecting to, the daughterboard doesn't add much beyond being able to use a mix of screw terminals and Dupont pins.

We'll add more AVR images like the MT-DB-U4 image in the OP for users who want to work with a plain AVR boards like Arduino Micro, Arduino Pro Micro, Arduino Leonardo, or Teensy 2.0.

We'll also add more custom .DAT layout files, especially for boards like the Pro Micro that have a limited number of pins.


Scott

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #14 on: May 02, 2017, 11:52:51 pm »
Good news for Teensy 2.0 users.   ;D

Bruno updated the Windows version of Mapper to 1.1. (link in OP)

It adds a menu item to export the EEPROM configuration to an .ELF file (firmware and EEPROM in one file) that you can upload using Teensy Loader.


Scott

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 78
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #15 on: May 03, 2017, 12:15:51 am »
Steps for flashing into a Teensy 2.0 board should be something like:

- Load a .DAT mapping file and/or change mappings and settings as you wish
- Select Tools -> Save EEPROM config data to .ELF for Teensy Loader
- Open Teensy Loader
- Connect Teensy 2.0 PCB to your PC's USB and push the button in order to get into programming mode
- Click the Open HEX file button and select MINIARCADE2.hex inside the mapper application's firmware folder
- Click the Program button
- Click the Reboot button

Please note that you flash the .HEX file with Teensy Loader, however, the .ELF file should be at the same folder otherwise EEPROM data won't be flashed to Teensy.

Teensy Loader can be downloaded from: https://www.pjrc.com/teensy/loader.html

I've updated Mac OS mapper version to v1.1 too. Ubuntu will come soon...
« Last Edit: May 03, 2017, 12:17:49 am by bootsector »

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 78
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #16 on: May 03, 2017, 12:21:06 pm »
I've bumped up Ubuntu version to 1.1 too.

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 78
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #17 on: May 05, 2017, 01:26:57 pm »
I cannot believe how you guys work so fast.  Impressive.

Well done.   :applaud:

I'll start testing it later today.
Was thinking of making something similar to this and then I opened this post :dizzy:

However this looks like the most polished way a project like this can possibly be one. Big ups :applaud:
Thanks, guys.   ;D

Bruno did an awesome job on the coding.  :applaud:

LMK if there are any parts of the documentation (User Guide, images, etc.) that need clarification/improvement.

this links to the mt-db-u4 board which is out of stock.
I just dropped a message to Justin to let him know about the beta release.

With any luck he'll get more MT-DB-U4's in stock soon.   ;D

EDIT: Looks like they are back in stock already.  :w00t
EDIT2: The product page shows "in stock", but when you get to the shopping cart, it shows "backordered".   :dunno

------------
If anyone has an Arduino and wants to try loading the miniArcade 2.0 firmware and EEPROM using avrdude:

1. Install the avrdude programmer.

2. Install the Arduino Leonardo/Mini bootloader driver as per the instructions at https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc2

3. Configure miniArcade 2.0 Mapper as desired.

4. Click on "Tools -- Save EEPROM config data to file (HEX)..." and save the "EEPROM.eep" file in the "\firmwares\" folder.

5. Rename "EEPROM.eep" to "EEPROM.hex". (both are hex format)

6. Copy the "MINIARCADE2.hex" and "EEPROM.hex" files from the "\firmwares\" folder to the avrdude folder.

7. Find the COM port assigned to the Arduino bootloader.  Look in the Device Manager properties screen or the Arduino software under Tools--Serial Port (look for the check mark)

8. Create a "miniArcade2.txt" file with this text in the avrdude directory. (Change "COMXX" to the Arduino bootloader port i.e. "COM7")

Quote
avrdude -p atmega32u4 -P COMXX -c avr109 -U flash:w:MINIARCADE2.hex -U eeprom:w:EEPROM.hex -C avrdude.conf

9. Rename "miniArcade2.txt" to "miniArcade2.bat".

10. Launch the .bat file to program the Arduino.

*** Still need to confirm/refine this procedure. Suggestions welcome.  ;D ***

------------
If anyone has a Teensy 2.0, the team could use help figuring out and documenting how to load the firmware and EEPROM files onto those boards.

Related thread here.


Scott

Just flashed an Arduino Leonardo/Micro cheap clone from eBay on a Mac using the following command (right after pressing RESET in the board):

avrdude -p atmega32u4 -P /dev/tty.usbmodem1411 -c avr109 -U flash:w:MINIARCADE2.hex -U eeprom:w:EEPROM.hex -C avrdude.conf

It works!

The avrdude.conf referenced file above is from the XBOXPadMicro package (that includes the avrdude.exe for windows and Arduino serial drivers, which are required only on Windows as well): https://drive.google.com/open?id=0B6zru_SYfdYbMmwyaVdkSVFGcVU

Edit: it works with EEPROM file extension as .eep as well (i.e., EEPROM.eep instead of EEPROM.hex)
« Last Edit: May 05, 2017, 01:29:04 pm by bootsector »

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #18 on: May 06, 2017, 11:03:18 am »
Here's a pinout for Teensy 2.0 users.   :cheers:


Scott

syntax_x

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
Re: KADE miniArcade 2.0 beta release
« Reply #19 on: May 06, 2017, 02:48:31 pm »
Can this setup still accept input from console controllers like the KADE miniConsole+?
« Last Edit: May 06, 2017, 02:50:32 pm by syntax_x »

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 78
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #20 on: May 06, 2017, 03:11:02 pm »
Can this setup still accept input from console controllers like the KADE miniConsole+?
This is intended for arcade controls only.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #21 on: May 08, 2017, 06:07:18 am »
Justin e-mailed that he has restocked the MT-DB-U4 AVRs.

Store currently shows 5 remaining.  ;D


Scott

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 78
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #22 on: May 12, 2017, 05:22:19 am »
C'mon guys! Don't be shy! Share your experiences and test reports with us!  ::)

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #23 on: May 19, 2017, 11:54:08 am »
Bruno has updated miniArcade 2.0 to v1.2. (D/L links in OP)

New in v1.2:
- Fixed keyboard bug on Input IDs 34-46
- Updated several images
- Updated User Guide


Scott

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 350
  • All your base are belong to us
Re: KADE miniArcade 2.0 beta release
« Reply #24 on: May 31, 2017, 04:37:18 pm »
Bump for the great work!!

plazma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #25 on: June 15, 2017, 04:43:15 pm »
Finally had time to test this. I made a layout testing case out of a spoiled C64 case and a sheet of PVC plastic.
It worked perfectly with an old Xbox. No more controller PCB hacks  :)
I can easily cut more PVC sheets and try other layouts. I can use the good ones in bartops and cabinets.
The current button layout is a tightly packed 6 button layout with an extra Neo Geo button. Kids will be using the layout so I minimized the button to button distance.




PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #26 on: June 15, 2017, 06:00:54 pm »
Looks great.   ;D

Any feedback on the software or documentation?


Scott

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 78
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #27 on: July 09, 2017, 06:25:51 pm »
Native Dreamcast output support added!

RJ45 cable pinout:

Code: [Select]
RJ45 Dreamcast
1 GND
5 Sense Pin
6 Data Pin 1
7 Data Pin 5
8 VCC

Mapper App v1.3 can be downloaded from the original links in the first post.

djfender

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • I play with sega, not ladies' hearts.
Re: KADE miniArcade 2.0 beta release
« Reply #28 on: July 23, 2017, 06:42:36 pm »
I installed it to my "Hotrodded Hanaho Hotrod Leonardo" Setup. and only have 2 problems (ok 1.5 problems)

The Pin mappings do not have R2 by default. Kludge: Use R3 pin instead. Solution: Map out one of the empty Pins

Shift Seems Non-Functional (Perhaps it is one of the empty Pins). Would be nice to assign it to a key combo or find its dedicated pin and use an empty pin as an LED indicator.

Other than that it works on PC, PS3 and PS4 games with legacy stick compatibility.

(The leonardos were carefully converted to Pins as i find the arduino style plugs to be fiddly)

My suggestion is to follow the arduino pinheader assignments (thus 0 = Cross, 1 = Circle, 2 = Square, 3 = Triangle Etc) for simplicity as this is how my homebrew joystick firmware was set up and now its a spider mess matching the mattairtech board as best I can.
« Last Edit: July 23, 2017, 07:00:14 pm by djfender »
Is that a Sanwa in your pocket or are you just happy to see me?

"Hotrodded" Hanaho Hotrod w/Kade MiniArcade 2.0 on Leonardo

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #29 on: July 23, 2017, 09:39:18 pm »
I installed it to my "Hotrodded Hanaho Hotrod Leonardo" Setup. and only have 2 problems (ok 1.5 problems)

The Pin mappings do not have R2 by default. Kludge: Use R3 pin instead. Solution: Map out one of the empty Pins
By default, R2 is on port D5.

Unfortunately, Arduino uses that pin as TxLED. (32u4 pin 22)

Shift Seems Non-Functional (Perhaps it is one of the empty Pins). Would be nice to assign it to a key combo or find its dedicated pin and use an empty pin as an LED indicator.
Shift is on port D7. (Arduino pin 6)

"Wiring shifted functions" is covered on Pg. 11 of the User Guide.

An LED indicator might be a nice addition, but there probably isn't a pin to spare -- Bruno and I will look into it.

Other than that it works on PC, PS3 and PS4 games with legacy stick compatibility.

(The leonardos were carefully converted to Pins as i find the arduino style plugs to be fiddly)

My suggestion is to follow the arduino pinheader assignments (thus 0 = Cross, 1 = Circle, 2 = Square, 3 = Triangle Etc) for simplicity as this is how my homebrew joystick firmware was set up and now its a spider mess matching the mattairtech board as best I can.
Glad to hear you got it working on several systems.   ;D

MiniArcade 2.0 was designed for a MattairTech board pin layout.

Unfortunately for Arduino users, the Arduino has less pins available, which makes workarounds like the one you mentioned necessary.


Scott

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #30 on: July 24, 2017, 02:10:40 am »
Thanks for asking about a Shift Indicator LED, djfender.   :cheers:

Here's an easy way to add one using an LED and the appropriate value Current Limiting Resistor.

There's an LED resistor calculator here.
- Source voltage = 5
- Diode forward voltage = the voltage that your LED drops
- Diode forward current (mA) = usually 20

When the shift button is not pressed, the internal pullup resistor for Port D7 pulls the port up to logic high (5v) which lights the LED.

When the shift button is pressed, ground is applied to Port D7 and the LED goes out.

Already added to the next edition of the User Guide.   ;D


Scott

djfender

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • I play with sega, not ladies' hearts.
Re: KADE miniArcade 2.0 beta release
« Reply #31 on: July 24, 2017, 10:18:20 am »
I installed it to my "Hotrodded Hanaho Hotrod Leonardo" Setup. and only have 2 problems (ok 1.5 problems)

The Pin mappings do not have R2 by default. Kludge: Use R3 pin instead. Solution: Map out one of the empty Pins
By default, R2 is on port D5.

Unfortunately, Arduino uses that pin as TxLED. (32u4 pin 22)

Shift Seems Non-Functional (Perhaps it is one of the empty Pins). Would be nice to assign it to a key combo or find its dedicated pin and use an empty pin as an LED indicator.
Shift is on port D7. (Arduino pin 6)

"Wiring shifted functions" is covered on Pg. 11 of the User Guide.

An LED indicator might be a nice addition, but there probably isn't a pin to spare -- Bruno and I will look into it.

Other than that it works on PC, PS3 and PS4 games with legacy stick compatibility.

(The leonardos were carefully converted to Pins as i find the arduino style plugs to be fiddly)

My suggestion is to follow the arduino pinheader assignments (thus 0 = Cross, 1 = Circle, 2 = Square, 3 = Triangle Etc) for simplicity as this is how my homebrew joystick firmware was set up and now its a spider mess matching the mattairtech board as best I can.
Glad to hear you got it working on several systems.   ;D

MiniArcade 2.0 was designed for a MattairTech board pin layout.

Unfortunately for Arduino users, the Arduino has less pins available, which makes workarounds like the one you mentioned necessary.


Scott

Pin 0 (PD2),2(PD1) and 3(PD0) and 11(PB7) are empty here. thus making my workaround a "Software issue" as some of these aren't available in the default mattairtech build.

Also on the Leonardo, Our ICSP is -Not- Tied to the side pins, thus they'd be PB1 to 3 and I've used these willy nilly in sketches before, therefore there's 3 extra pins, Without hacking up the arduino to free the RX and TX LED.

Thanks for asking about a Shift Indicator LED, djfender.   :cheers:

Here's an easy way to add one using an LED and the appropriate value Current Limiting Resistor.

There's an LED resistor calculator here.
- Source voltage = 5
- Diode forward voltage = the voltage that your LED drops
- Diode forward current (mA) = usually 20

When the shift button is not pressed, the internal pullup resistor for Port D7 pulls the port up to logic high (5v) which lights the LED.

When the shift button is pressed, ground is applied to Port D7 and the LED goes out.

Already added to the next edition of the User Guide.   ;D


Scott

We could swap pin 6 and 13 as 13 possesses its own resistor as this is by default the LED on most arduinos (On my setup pressing "select" grounds said LED and turns it off!)

You're thinking; "But fen, Where will the RJ45 Go if you're using up all the I/O?" My reasoning is that the Leonardo is a drop in replacement for the -Classic MiniArcade- of which i am quite fond of but cannot use as i broke one of my Minimus AVRs.

"Why not buy a new one from the kade store?" well this here is the new hat now. Its compatible with stuff most tinkerers like mineself have "at least a handful of" and a retrofit is generally better than a complete gutting.

Considering that, designing a Kade Shield for leonardo would be a drop in the pond to make and im actually gonna take a whack at it while at work today.

« Last Edit: July 24, 2017, 02:12:29 pm by djfender »
Is that a Sanwa in your pocket or are you just happy to see me?

"Hotrodded" Hanaho Hotrod w/Kade MiniArcade 2.0 on Leonardo

Slippyblade

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3024
  • And to the death god we say, "Not today!"
Re: KADE miniArcade 2.0 beta release
« Reply #32 on: July 24, 2017, 01:54:01 pm »
Is there a "For Dummies" on this yet?

I loved the original KADE.  I still have a couple of the minimus AVRs just for it.  However, my eyes glaze over completely reading this thread.

plazma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • I want to build my own arcade controls!
Re: KADE miniArcade 2.0 beta release
« Reply #33 on: July 24, 2017, 01:59:24 pm »
Is there a "For Dummies" on this yet?

I loved the original KADE.  I still have a couple of the minimus AVRs just for it.  However, my eyes glaze over completely reading this thread.
Download the zip file from the first post. There is a pdf guide in the docs folder.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #34 on: July 24, 2017, 02:21:40 pm »
I understand that the default pin/port order can be extremely confusing.   :dizzy:

It was one of the first issues I brought up to Bruno when he invited me to join him on this project.

If he's so inclined, I'll let him comment on why reassigning/rerganizing/redocumenting all the default pins/ports wouldn't be worth the considerable investment of time and effort.

From a user's point of view, the important thing to remember is that there are several fixed function ports (D7=Shift, B7=Shift Lock), but you can assign any available input port to any output.

I did exactly that for many of the preset mapping (.DAT) files. (See pg. 2 of the User Guide)

For your convenience, there is a "Port_Order.dat" mapping file that has all the ports in alphanumeric order.

If you prefer starting from a blank slate, there is a "Blank.dat" mapping file that sets all Button Mapping IDs to blank.

Pin 0 (PD2),2(PD1) and 3(PD0) and 11(PB7) are empty here. thus making my workaround a "Software issue" as some of these aren't available in the default mattairtech build.

Also on the Leonardo, Our ICSP is -Not- Tied to the side pins, thus they'd be PB1 to 3 and I've used these willy nilly in sketches before, therefore there's 3 extra pins, Without hacking up the arduino to free the RX and TX LED.
Those pins are all available on the MattairTech board, but most are assigned to other functions.

Fixed function:
D7 (Shift) + PB7 = Shift Lock  (EDIT: Corrected the description of this function.  :embarassed: )

Ports that can be changed to inputs at the expense of losing console outputs:
The "RJ45" pins (orange squares below) are assigned to autosense/autoswitch between various consoles, making all of the consoles on pgs. 6-7 of the User Guide plug-and-play without reprogramming the board.

You can change these "RJ45" ports from console outputs to control inputs (User Guide pg. 4, Step 2)

PB0 - used by PS1/PS2 consoles (you overlooked this one)
PB1 - used by PS1/PS2 consoles
PB2 - used by PS1/PS2  consoles
PB3 - used by  PS1/PS2 consoles
PD0 - used by Wii/WiiU/NES Classic consoles
PD1 - used by most pre-USB consoles

Port you mentioned that is already an input:
PD2 - Assigned to Button Mapping ID 11, used as an input for PS1/PS2, PS3, and XBox.



We could swap pin 6 and 13 as 13 possesses its own resistor as this is by default the LED on most arduinos (On my setup pressing "select" grounds said LED and turns it off!)
Setting aside the coding/documentation effort involved in swapping just those two pins, how do you plan to make that board-mounted LED visible to users?

If someone wants a visual indicator of whether normal or shifted functions are activated, a separate LED that they can mount where they choose seems like the the most flexible approach and it works right now with any of the 32u4 boards without recoding and without changing the documentation.


Scott
« Last Edit: July 25, 2017, 09:33:49 am by PL1 »

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #35 on: July 24, 2017, 03:06:07 pm »
Is there a "For Dummies" on this yet?

I loved the original KADE.  I still have a couple of the minimus AVRs just for it.  However, my eyes glaze over completely reading this thread.
MiniArcade 2.0 Mapper software won't work with those old Minimus AVRs, but it will work with 32u4 boards, including that Arduino Pro Micro you bought several years ago.

Bad news: If you try to wing it, you'll probably get lost/frustrated trying to use the new Mapper software like the old Loader software.  :banghead:

Good news: Like plazma mentioned, there is a User Guide PDF in the .zip file with step-by-step directions.

More good news: We have received an official exemption from the Man Card Bureau -- nobody's Man Card will be pulled/confiscated for reading this User Guide and following the directions.  :duckhunt

Read it from the beginning so you get the new/different terms/concepts that you will need to know for the 16 step programming process on pgs 4-5.

LMK if you have any further questions or if I failed to explain anything clearly.   :cheers:


Scott

Slippyblade

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3024
  • And to the death god we say, "Not today!"
Re: KADE miniArcade 2.0 beta release
« Reply #36 on: July 24, 2017, 07:32:59 pm »
Cool, thanks Scott and Plaz.  I'll give that PDF a read.

Just to verify though, KADE 2.0 can be used in a similar fashion as the original KADE just with more functionality?  So I could actually build, say, a star wars yoke from scratch and use KADE 2.0 as the interface?

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #37 on: July 24, 2017, 11:50:03 pm »
Just to verify though, KADE 2.0 can be used in a similar fashion as the original KADE just with more functionality?  So I could actually build, say, a star wars yoke from scratch and use KADE 2.0 as the interface?
Yes.   ;D

- Enable analog axes F7 and F6. (page 4, step 2)

- Assign a different port to Button Mapping ID 2 (Button 3) since port D6 isn't available on the Pro Micro board. (page 5, step 6)
There's a chart showing the available ports and labeling on the Pro Micro board on page 12.

- Program the board using AVRDUDE. (pages 13-14) *** LMK if the procedure isn't clear enough. ***

- Wire the buttons to the ports you selected in Mapper and a daisy-chain ground.

- Wire the potentiometers.
-- 5v and ground on tabs 1 and 3 (Arduino pins VCC and GND, swap if the axis is backward)
-- X-axis wiper to port F7 (Arduino pin A0)
-- Y-axis wiper to port F6 (Arduino pin A1)


Scott

djfender

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • I play with sega, not ladies' hearts.
Re: KADE miniArcade 2.0 beta release
« Reply #38 on: July 25, 2017, 01:07:08 am »
I understand that the default pin/port order can be extremely confusing.   :dizzy:

It was one of the first issues I brought up to Bruno when he invited me to join him on this project.

If he's so inclined, I'll let him comment on why reassigning/rerganizing/redocumenting all the default pins/ports wouldn't be worth the considerable investment of time and effort.

From a user's point of view, the important thing to remember is that there are several fixed function ports (D7=Shift, B7=Shift Lock), but you can assign any available input port to any output.

I did exactly that for many of the preset mapping (.DAT) files. (See pg. 2 of the User Guide)

For your convenience, there is a "Port_Order.dat" mapping file that has all the ports in alphanumeric order.

If you prefer starting from a blank slate, there is a "Blank.dat" mapping file that sets all Button Mapping IDs to blank.

Pin 0 (PD2),2(PD1) and 3(PD0) and 11(PB7) are empty here. thus making my workaround a "Software issue" as some of these aren't available in the default mattairtech build.

Also on the Leonardo, Our ICSP is -Not- Tied to the side pins, thus they'd be PB1 to 3 and I've used these willy nilly in sketches before, therefore there's 3 extra pins, Without hacking up the arduino to free the RX and TX LED.
Those pins are all available on the MattairTech board, but most are assigned to other functions.

Fixed function:
PB7 is dedicated shift lock

Ports that can be changed to inputs at the expense of losing console outputs:
The "RJ45" pins (orange squares below) are assigned to autosense/autoswitch between various consoles, making all of the consoles on pgs. 6-7 of the User Guide plug-and-play without reprogramming the board.

You can change these "RJ45" ports from console outputs to control inputs (User Guide pg. 4, Step 2)

PB0 - used by PS1/PS2 consoles (you overlooked this one)
PB1 - used by PS1/PS2 consoles
PB2 - used by PS1/PS2  consoles
PB3 - used by  PS1/PS2 consoles
PD0 - used by Wii/WiiU/NES Classic consoles
PD1 - used by most pre-USB consoles

Port you mentioned that is already an input:
PD2 - Assigned to Button Mapping ID 11, used as an input for PS1/PS2, PS3, and XBox.



We could swap pin 6 and 13 as 13 possesses its own resistor as this is by default the LED on most arduinos (On my setup pressing "select" grounds said LED and turns it off!)
Setting aside the coding/documentation effort involved in swapping just those two pins, how do you plan to make that board-mounted LED visible to users?

If someone wants a visual indicator of whether normal or shifted functions are activated, a separate LED that they can mount where they choose seems like the the most flexible approach and it works right now with any of the 32u4 boards without recoding and without changing the documentation.


Scott

oh jeez. the blank.dat fixed all of my silly problems. haha...time to put all my cables back  :banghead: :notworthy: :hissy: :laugh2:
Is that a Sanwa in your pocket or are you just happy to see me?

"Hotrodded" Hanaho Hotrod w/Kade MiniArcade 2.0 on Leonardo

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6356
  • 2013 UCA Awardee
Re: KADE miniArcade 2.0 beta release
« Reply #39 on: July 25, 2017, 03:01:08 am »
the blank.dat fixed all of my silly problems. haha...time to put all my cables back
Glad it worked out for you.   ;D

Please feel free to export and post your .dat file for anyone else wanting to use a Leonardo.   :cheers:

Most of the current batch of .dat files and pinout images in the "docs" folder are for the miniArcade daughterboard, MattairTech, and Teensy AVRs.

I still need to find a good layout, make .dat files and make pinout images for the Arduino Leonardo/Micro/Pro Micro boards -- they're a lot more work because not all pins/ports are available on them.


Scott

  
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31