1. Hello Guest! Looking for Mods or help with Modding Mega Mix+ or Arcade Future Tone? There's a Discord for that: https://discord.gg/cvBVGDZ.
    Dismiss Notice

Project diva homemade controllers

Discussion in 'Tutorial Area - By users for users!' started by nofutur, Jul 20, 2016.

  1. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    I made test firmware for "new" controller, 5 buttons + button/partition lights and as far as I can see - no problems with work as gamepad and with lights. I hope very soon I'll make new homemade PCB to make that all work as needed and test everything as high quality as possible.
    I made github repository with this all, if someone needs - you can use https://github.com/steelpuxnastik/PDAFT-controller-with-button-partition-lights , the only problem to make everything work you'll need PD-Loader plugin that I hope will come very soon or to run test app with this feature by yourself, the problem with this app is that I compiled it on my notebook that has Visual studio, but when I tried to run that app on other PC - there was a lot of errors with dlls that it needs and I thought that I feeded all dlls, but still no luck with running app, that's why so far without may be not many can try this fully.
     
  2. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    @N10248 But I little changed my mind, and now I think it's possible to make controller with active switches, fully arcade slider, button and partition lights and to use only 1 (one) USB connection (but of course, there will be needed external power, but it's not a problem). As I said about STM32 MCUs, for example the most common variant as STM32F103C6T8 has 3 hardware UART, can be used as USB device, so it can be programmed as gamepad, so one UART can be hardware defined to connect there slider, other UART can be configured to receive lights data over USB and others works as gamepad as always.
    I just found this https://github.com/r2axz/bluepill-serial-monster 3 USB-TTL converters in one device with one USB connection and I wanted to use it with my project and everything looks like works good, like connection to button/partition lights, but with slider there some problems, now it works veeeery slow, but works, so I think I may be need change some settings or something, looking how I can fix it, but I'm talking about that there is possible to make such device, may be it's even not very hard.
     
    N10248 likes this.
  3. N10248

    N10248 Advanced Player

    Joined:
    Jul 27, 2019
    Messages:
    116
    Likes Received:
    120
    Trophy Points:
    390
    Gender:
    Male
    Location:
    Essex, UK
    #423 N10248, Aug 9, 2021
    Last edited: Aug 9, 2021
    Could the buttons be made to communicate directly with the game bypassing the Input Emulator instead of via a gamepad device?
    Somehow merged into the lighting device, sending data instead of receiving
     
  4. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    Very interesting question. You mean, to make game think that's JVS connected? And may be after that if some magic happens, if to understand what exactly game data want to receive to write it into memory then maybe yes, but another question that again, it will be a serial connection to make plugin to write into memory - then yes, may be it's possible. But in fact, in reality it will be another Input Emulator and in fact I do not think it will be any better or worse then Input Emulator in PD-Loader, but it can be just another way to work with input and in this case it can make sense.
     
    N10248 likes this.
  5. N10248

    N10248 Advanced Player

    Joined:
    Jul 27, 2019
    Messages:
    116
    Likes Received:
    120
    Trophy Points:
    390
    Gender:
    Male
    Location:
    Essex, UK
    Techinally yes, it could become an "only what's needed" custom JVS I/O. I think the real JVS I/O board is seen as a single device to the game.
     
    steelpuxnastik likes this.
  6. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    And yeah, in fact it's even easier than to make gamepad device. I think we need to make some clarification about what needed to make that, what memory addresses needed and what needs to make it work in game and in case of hardware it's actually done, it needs almost nothing to make it.
     
    N10248 likes this.
  7. N10248

    N10248 Advanced Player

    Joined:
    Jul 27, 2019
    Messages:
    116
    Likes Received:
    120
    Trophy Points:
    390
    Gender:
    Male
    Location:
    Essex, UK
    Luckily with Input Emulation off the game doesn't hang with a missing I/O error even with "Fast Loader" off, so you wouldn't have to make something that handshakes or detects like the JVS board does.

    I would expect the easiest place to find the button addresses would be in the original TLAC. source...
    https://github.com/samyuu/TotallyLegitArcadeController/tree/master/DivaHook/src/Components/Input
    As it's far simpler than the current PD-loader.

    But I doubt it's a simple as...
    JVS_TRIANGLE = 1 << 0x07, // 0x80
    JVS_SQUARE = 1 << 0x08, // 0x100
    JVS_CROSS = 1 << 0x09, // 0x200
    JVS_CIRCLE = 1 << 0x0A, // 0x400
    JVS_START = 1 << 0x02, // 0x400
     
    steelpuxnastik likes this.
  8. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    #428 steelpuxnastik, Aug 10, 2021
    Last edited: Aug 11, 2021
    But now I have some little doubts about using serial connection in case of buttons, because as I can see with LEDs that already working - I have feeling that it not fully covers all presses, I mean if I'll press button very fast LEDs seems does not have time to recover, not because the LED itself takes some time, but because the port speed is not enough and it just chokes, but I need to make sure of this in some independent way, through the level analyzer, to be totally sure it's true or false and if true, maybe it's way to repeat JVS somehow, who knows if it's possible. But anyway, I somehow now I have doubts about expediency of this move, but as I said before, I'll try to test what we made with LEDs to be sure and then maybe if something will be clear with that.
     
    N10248 likes this.
  9. N10248

    N10248 Advanced Player

    Joined:
    Jul 27, 2019
    Messages:
    116
    Likes Received:
    120
    Trophy Points:
    390
    Gender:
    Male
    Location:
    Essex, UK
    My button lights sometimes lag on the cabinet too, so it may be normal. it's very noticable when pressing the buttons on the song loading screen. The JVS I/O may be quite limited in how much it can process at once, transmiting button presses may be prioritised over processing incoming signals for lights.
     
    steelpuxnastik likes this.
  10. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    That is why it needs to verify something before, especially that I really know how to hardwarely describe what's needed to work, but on the part of PC - there much more difficult, there need I some help and only when it theoretically (and some practically confirmed) will work good, I think :)
     
    N10248 likes this.
  11. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    There is a yeah after I created thread about SHINSANWASWITCH and interest about creating this device and now I think we can publish SHINSANWASWITCH source to create it by yourself if you want :)
    Very soon info about some nuances of assembling and further changes to better will be uploaded to Github.
    Thank you very much for your help, especially @Doctopus and @N10248 (sorry if I forget someone), and for your interest :)
    https://github.com/steelpuxnastik/SHINSANWASWITCH
     
    N10248 and Doctopus like this.
  12. jmc0x68

    jmc0x68 Welcome to DIVA!

    Joined:
    Sep 21, 2021
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    10
    Gender:
    Male
    Bro, meybe this will help you for the delay , but unfortunately it can't works on slide. just use physical ways to control leds. Just try to connect the LED light and the button in parallel to the micro switch, like the image
    I don't know i can help you or not, because i'm just a noob on it.
     
  13. jmc0x68

    jmc0x68 Welcome to DIVA!

    Joined:
    Sep 21, 2021
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    10
    Gender:
    Male
  14. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    That's about what are you talking about? :)
     
  15. jmc0x68

    jmc0x68 Welcome to DIVA!

    Joined:
    Sep 21, 2021
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    10
    Gender:
    Male
    sure,if that is a bed solution or it can not help you , I'm very sorry about that.
     
  16. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    I mean, can you show what exactly message are you responding on?
     
  17. jmc0x68

    jmc0x68 Welcome to DIVA!

    Joined:
    Sep 21, 2021
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    10
    Gender:
    Male
    I'm replying this message , I used my phone before , I don't know how to reply it on the mobile site.But I think maybe you have aready used it on your solution.
     
  18. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    Thanks for your help :)
    But in real here is no problem about LED connection - there is no problem with it at all, because principally everything is connected and works. There was reflections on the topic about possibility of using serial connection for exchanging data with game about button presses and what exactly LEDs that need to be lit at some moment. Also, in case we are using optical switches - there is no way to connect LEDs like mechanical switch, also if you connect LED to mechanical switch - you cannot control LED from game itself, like it has to be. But your variant is easy to make and for those who do not need something like I want - it will work good :)
     
  19. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    Also, I found another variant to work with. Raspberry Pi Pico can do same, it has two hardware UARTs, and program that doing this, it has USB functionality and gamepad program, also I'll try to make program to try plugin (it's finally ready) to work with arcade lighs. The main problem is to compile that everything into one program. And also problem is that Raspberry Pi Pico doesn't have 5v tolerant pins, so it needs to use level shifter to adapt levels from 5v devices to 3.3v that needed. For SHINSANWASWITCH it's pretty easy, I think, just to change one resistor (I hope so) with lower denomination that limits voltage to power the optocoupler's LED, so, maybe here pretty easy to do without level shifter. In other cases it will be needed, but I think only in case of using 5V UART device that will be LKP in my case. And if everything will be good, making a board for it will be pretty easy :)
    I'll upload updates if I have news about it :)
     
    N10248 likes this.
  20. steelpuxnastik

    steelpuxnastik SHINSANWASWITCH is ready and working!

    Joined:
    Aug 2, 2019
    Messages:
    283
    Likes Received:
    146
    Trophy Points:
    420
    Gender:
    Male
    Occupation:
    useless piece of shit
    Location:
    Mykolaiv, Ukraine
    Home Page:
    https://www.instagram.com/jandevalua/
    I found something interesting about plexiglass, maybe if someone interested in making a slider that will scatter light the same way as the original slider on arcade cabinet can use it. I found that plexiglass is pretty good when sanding with sandpaper. I sanded down it with sandpaper from 60 to 800 (sandpaper grit level, from coarsest to finest) and I found it looks amazingly good and while maintaining sufficient transparency, so if you put a picture under it - it will look good, just like on real arcade and along with this, it’s all very pleasant to the touch due to processing with the finest sandpaper. So, I think I will use it in the future, when I'll have possibility to complete my build.
    [​IMG]
    [​IMG]

    [​IMG]

    [​IMG]
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice