The NEW Build Your Own Arcade Controls
Main => Software Forum => Topic started by: baritonomarchetto on May 09, 2016, 11:40:17 am
-
This is someting only Howard can answer to, i suppose. I have no idea if what i am asking is for heaven or for hell, so sorry for that: would it be possible for mamehooker to support/interact with arduino boards like with those other commercial boards listed in mamehooker site?
-
I suppose not
It works perfectly fine work lwcloneU2. Using it on a mega right now.
-
Yes, it's possible. I'm working on my own sketch atm. Basically you set up your avr to use serial communication and use the serial functions in mamehooker to control it.
-
Howard, do you plan to post an easy sketch to show how to use the mamehooker serial comm function and arduino?
-
Yes. Currently all projects are on hold until I get my racing rig done.... I'm bad about getting side-tracked.
I'm using a teensy to control the various I/O devices on my rig and serial communication to control it all. That sketch is going to be available to all once I'm done.
As for the 'easy' part. Well, nothing, complex you do in Arduino, despite the easy to use language, is particularly easy. I would say adding serial comm in any respect other than it's most basic would be considered medium difficulty. In other words if you can program it won't be hard, but if you are a complete beginner there is a decent chance you will be lost.
Getting serial data from another source is super easy, but parsing it takes a bit of custom coding. I set my sketch up to parse comma delimited commands and every command ends with a comma just to make things simpler. It hasn't be tested enough to release though.
-
Use this: https://github.com/cithraidt/lwcloneu2 (https://github.com/cithraidt/lwcloneu2)
Done. It's all you could want in one firmware - Joystick, Keyboard and Mouse encoder, output device. Mamehooker will see it as LEDWIZ.
-
It doesn't support a analog shifter, it doesn't allow remapping on the fly and it doesn't support matrix led displays.
That is pretty basic compared to what I'm building. ;) It could work for other people's projects though. It's certainly nice to see that people are realizing that custom boards aren't really needed anymore in the hobby. AVRs FTW!
-
Yes, you are right that it doesn't support those things. Just wanted to make clear that Mamehooker allready works with an Arduino.
As long as someone makes it super easy to beginners to actually use arduinos - custom boards like u-hids, Ipacs and whatever will have their place.
Oh, and please check your PM's :)
-
Totally missed this thread until now, but I'm interested as well.
I am doing exactly this already in my flight simulator setup, having lights, instruments and switches connected (almost like a real cockpit). It is accomplished with a small middleware (DCS-Bios) and a standard Arduino board, with serial connection.
If you provide a tailor made sketch with all that extra, that would be very much appreciated.
-
Well real world stuff is in the way, so it's taking longer than expected. Basically my racing cab is wood and I'm staining certain parts of it so I've been sanding, filling and scraping every evening. I'm hoping to get it stained this evening or tomorrow, then comes re-assembly and then I can test the sketch more thoroughly on the hardware it was designed for and tweak a few things.
-
Use this: https://github.com/cithraidt/lwcloneu2 (https://github.com/cithraidt/lwcloneu2)
Done. It's all you could want in one firmware - Joystick, Keyboard and Mouse encoder, output device. Mamehooker will see it as LEDWIZ.
Sorry for calling this topic back from the grave. I lost track of it and gave not the right weight to Endprodukt firmware... looks great!
Let me ask you something:
1- Where can i found a pinout to use the board after firmware "installation"? I mean: which pins are set as outputs (ledwiz part) and which are set as inputs (you said that a joystick and a mouse are emulated)?
2- How could an arduino uno emulate a joystick or a mouse? Does it need a background running program to work? If not, where is the advantage using a leo instead of a uno? the processor speed eventually?
I would (and will) prefer to work on a sketch I can "read" and understand and bend at my will based on serial port reading for the mamehooker's side, but this could be an alternative and I want to dig this a little bit more now ;D
-
1- Where can i found a pinout to use the board after firmware "installation"? I mean: which pins are set as outputs (ledwiz part) and which are set as inputs (you said that a joystick and a mouse are emulated)?
+1 on adding a pinout list on GitHub.
Since it works with both 32u2 and 32u4 AVR boards it would be very helpful to have a PDF/JPG/PNG containing two tables like these:
32u2 pin -- 32u2 port ------- Function
3 GND
4 VCC
5 PC2(AIN2/PCIN11) Joy Up?
. . .
--------------------------------------------
32u4 pin -- 32u4 port ------ Function
1 PE6(INT6/AIN0) LED1?
14 VCC
15 GND
. . .
By including the processor (not board) pin numbers and port names, users can easily identify which wire goes where on a wide variety of boards using either board markings or schematics.
Scott