How to rename Arduino Micro gamepads, how to use multiple controllers at the same time

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2020
  • It's super easy to make a USB game controller with one of these Arduino Micros. However you can't have more than one, because they all show up as the same name (Arduino Leonardo). Here's how I program my gamepads and then modify their HID reported names, in order to use all of them at once.
    Link to copies of boards.txt: liveelectronics.musinou.net/MI...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 101

  • @coriscotupi
    @coriscotupi ปีที่แล้ว +3

    Can't thank you enough, Akaki. I've built a number of controllers (throttle quadrant for general aviation airplanes and for Airbus, rudder pedals, collective control for helicopters) and have been struggling since forever with duplicate Arduino names on the Windows device lists, forcing me to connect/disconnect each every time, with the ensuing need to recalibrate them ever so often. I'm finally free of all that hassle.
    Liked, subscribed. Of course.

  • @bryanp2780
    @bryanp2780 ปีที่แล้ว

    Thanks so much for this video, I've been searching down a rabbit hole looking for a simple explanation on how to do this. Worked like a charm!

  • @akaHarvesteR
    @akaHarvesteR 3 ปีที่แล้ว +5

    Thank you! I've tried renaming my Arduino Joystick devices before, and found it really awkward and couldn't find good information about it... I knew about the boards.txt file, but I didn't know you could create a new board definition to separate different projects. That's great! I'm going to need to do this really soon in fact, as my ongoing yoke project uses the same Due board as my existing collective build.

  • @seanhaynes8758
    @seanhaynes8758 4 หลายเดือนก่อน

    I know the vid is old, but sooooooo glad I came across it and you other vids. Never used a board or even done any coding - but your feeds helped me build a prototype collective for helicopter sims. Brilliant, well done and thank you!!

  • @EastLondonKiwi
    @EastLondonKiwi 3 ปีที่แล้ว +4

    Great content Akaki. There is very little on TH-cam that covers this subject, this has helped me out a lot. Most flight controller content is about the hardware builds which is the easy bit in my view. I would love to see you explain force feedback for flight controllers as I believe you'd do a great job at it.

    • @AkakiKuumeri
      @AkakiKuumeri  3 ปีที่แล้ว

      Thanks a lot!
      I would love to know more about force feedback myself. I’ll put it on the list!

  • @charlescheaney1175
    @charlescheaney1175 2 หลายเดือนก่อน

    So, I just did this yesterday and while in general this is correct, and this guy is Amazing, there is a bit more to this.
    1) The blank board you get IS an Arduino Leonardo, Micro or Pro Micro (remember only ATMega32U4 boards are good for these controllers. So, that is what it will come up as.
    2) Let's say you have 3 items you want to run separately (and yes, you could run them all at once, but go with it), Shifter, Pedals and a Steering Wheel.
    3) For EACH board/Controller, you will need to change the PID and NAME in the boards.txt and ONLY compile THAT sketch and upload it to that board. So, let's say PID=0x0001 for the Shifter, 0x0002 for the Pedals and 0x0003 for the Wheel. When you start with the BLANK board, you will have to change your boards.txt file for each one as you go! It is important not to skip this step. You will have to upload twice (at least I did) and then the board will show up as being selected in the board selection drop down as what you call it. I changed my Product Name as well so I can easily tell them apart.
    4) Once you do get them all configured you can then COMBINE them ALL into the one boards.txt file. When you plug in the Shifter board, it will come up in the Arduino IDE as the Shifter board (or you have to select it), but in this way you can have all three boards loaded and operating and in development at the same time.
    I currently can work on my Shifter and my Pedals project at the same time. I DO have to be careful about which sketch is going to which board, but as long as you don't do any 'cross-overs' you should be fine.
    It is this initial setup for the boards that is not covered in the video, but I was able to work out how to make it so I could get them all configured and be able to connect them all at the same time and develop the different projects at the same time as well.
    Really a shifter, pedals and wheel COULD be all combined into one Arduino, but I'm using three to have a bit more fun. Also, I use the Pro Micro and it works with this stuff just fine! Also a big THANK YOU to the Joystick.h developer... That's some nice HID!

  • @OrientalPearl
    @OrientalPearl 3 ปีที่แล้ว +5

    Nice throwback to Shanghai!

    • @TheImrankhan09
      @TheImrankhan09 3 ปีที่แล้ว

      because of you i came to this guy channel

    • @OrientalPearl
      @OrientalPearl 3 ปีที่แล้ว +1

      imran khan Wow, that’s really cool. Tell Akaki he owes me a drink. LOL

  • @bikash44rocks
    @bikash44rocks 3 ปีที่แล้ว +4

    you should rename your youtube channel to custom control Master. great work

  • @nocloo6829
    @nocloo6829 3 หลายเดือนก่อน

    Absolutely fantastic advice. Thanks for the enjoyable video!

  • @jonsay241
    @jonsay241 3 ปีที่แล้ว +5

    Found your page from Oriental Pearl
    You have skills
    Alright now 👏👏

    • @OrientalPearl
      @OrientalPearl 3 ปีที่แล้ว +1

      Now he owes me 2 drinks!

  • @mike5058
    @mike5058 2 ปีที่แล้ว

    great tutorial - been trying this for a while now. Thanks alot!

  • @garytaylor5646
    @garytaylor5646 2 ปีที่แล้ว

    Just wanted to thank you for making my life a lot more enjoyable ;)

  • @peterboy209
    @peterboy209 3 ปีที่แล้ว +1

    Brilliant Work, Subscribed!

  • @rjc0234
    @rjc0234 3 ปีที่แล้ว +3

    Brilliant. the instructions on the Midi website were really confusing me, as it assumed the user had any knowledge of Aurduino etc! really looking forward to using my joystick, throttle, and rudder as they are now completed. just waiting for SB cables that are long enough. I did find it very difficult to glue the magnets in, and the little stands the hall sensor sit on were very fragile and have broken a few times due to the gimbal knocking into them!
    I also live the video presentation style. informative, but a little bit funny.
    and of course I have named then after the creator! :D

    • @AkakiKuumeri
      @AkakiKuumeri  3 ปีที่แล้ว +2

      I saw the photos of your print, it looks much nicer than mine. I hope it works out for you. Once I got everything glued down, I haven't had anything break.

    • @rjc0234
      @rjc0234 3 ปีที่แล้ว

      @@AkakiKuumeri Thanks! The reason I had a few things break is I used wire that was far too thick, so on the Hall sensors it caused them to clash with other parts. But nothing that couldn't be solved with more 3D printing!

    • @roydavies953
      @roydavies953 2 ปีที่แล้ว

      Hi, i recently used the musinou method on my 5 arduino leanardo button boxes and now all 5 boxes are now recognized by my games

  • @josephbon
    @josephbon 3 ปีที่แล้ว

    Dude, you're awesome! Curious, what do you do for work?

  • @PaddyPatrone
    @PaddyPatrone 23 วันที่ผ่านมา

    I didn?t have the folder hardware in the arduino folder. I created it but it doesnt swork. Any help ?

  • @RameshKumar-mv3jd
    @RameshKumar-mv3jd 2 ปีที่แล้ว

    That handicap Smash controller is amazing lol

  • @0x8badbeef
    @0x8badbeef ปีที่แล้ว +2

    10:35 It doesn't have to remember it forever. Go to your Device Manager, find the device, and Uninstall it. Plug in your device and it will register it. But if you want to play it safe lookup "List of USB ID's" and make one up that is not used.

  • @byavuzeeer
    @byavuzeeer 2 ปีที่แล้ว +1

    it works in DCS with arduino micro pro...thank you

  • @jmsian3505
    @jmsian3505 2 ปีที่แล้ว +3

    8:39 Start of main topic "renaming the arduino" joystick

    • @CSOCSO
      @CSOCSO 2 ปีที่แล้ว

      this should be on top. THANKS

    • @Simlife101
      @Simlife101 ปีที่แล้ว

      @JM Sian I just mentioned this. It should be as the title states and first thing he mentions or time stamp if. A lot of useless information I had too waste 8 minutes on. Not being a di*k just really annoying

  • @WayneMcNab
    @WayneMcNab ปีที่แล้ว

    Thanks very much. Great video. Windows 11 sees the 2 new unique Micro names, in the Devices and Printers window, but not in the Game Controllers window when you right click a controller icon then left click Game Controller Settings. MSFS 2020 also still displays the same old name for the 2 Arduino micros unlike what I see in your video. Also, if I have of 2 differently named Micros programmed with two different sketches and plug one in at a time, it take the setup from the previously program Micro. Any thoughts.
    Thanks
    Wayne

  • @Subfightr
    @Subfightr 3 ปีที่แล้ว +2

    You're amazing.

  • @pantest3755
    @pantest3755 3 ปีที่แล้ว

    This is gold how are you not increasing in numbers? maybe interest i guess and stupid youtube algorithm.

  • @ShikaiXu
    @ShikaiXu 3 ปีที่แล้ว

    Nice vid Akaki. I've watched many of your vids and I have a question: what's the software you use for the 3D designing? Do you validate your design before printing? I mean the motions, the calculations, etc... I'm using Autodesk AutoCad and for me it's kind of one-way open-loop design, I make the model in software and only validation I can do is just watch it and think of it, then after hours of printing the problem came up at assembly, I have to fix it and another hours to wait, that's really time consuming for me. I wonder how you do the design, could you pls share some experience? Thanks!

    • @AkakiKuumeri
      @AkakiKuumeri  3 ปีที่แล้ว

      Hi, I use Fusion 360.
      I do use it to model the hinges and motion linkages, but unfortunately it’s not very good at it. It doesn’t work well with two-axis joints or ball joints. Apparently it’s a fundamental flaw due to its joint angles being calculated with simple x-y angle combinations instead of quaternions as they should be.
      Just as you, most of the validation work is me just staring at the model. Luckily these prototypes are quick to print again and do trial and error on.
      For more complex mechanisms I would have to find another software that does it better. Currently I don’t know which one that would be. Perhaps autocad is better at it?

    • @ShikaiXu
      @ShikaiXu 3 ปีที่แล้ว

      @@AkakiKuumeri Thanks for your reply, I'll try to learn Fusion 360 and see the difference comparing by Autocad. I learn Autocad, and some other industry software from college and after my graduation I don't have any update of those software. That was year 2008, and I knew Autocad, Solidworks of which the pros are for 2d drawing & 3d modeling/assembly, I also know a software called Adams, which is for validations like joints, but I don't see any people use that after my graduation, and that was long time ago: 2008. Luckily I still hold the knowledge of Autocad today so I can use that for my 3d printing modeling, however, my knowledge from 2008 can fulfill my need of modeling, but I don't know those extra magic new features of Autocad today...

  • @maximac1515
    @maximac1515 4 หลายเดือนก่อน

    11:35 i think another game that could utilize all this controllers at once is The Crew 2 where you have cars (steering wheel + pedals), planes (joystick + throttle) and boats (steering wheel + throttle). I don't know if you can set it up like this in game though.

  • @vladyslavkalinichenko
    @vladyslavkalinichenko 5 วันที่ผ่านมา

    Thank you for useful method, I’m still figuring why that doesn’t work for me.
    Have you tried to connect multiple devices into a single ecosystem using master-slave communication? I wonder if it is possible having just a single device connected to PC and others are connected to that host device?

  • @AaronWerner
    @AaronWerner 5 หลายเดือนก่อน

    I am running micro as game controller for FS 2020 and have tried to adjust sensitivity in the game settings but unfortunately it does not help. My controller is way too sensitive, is there a way to adjust the sensitivity in the sketch file?

  • @michaelrector1496
    @michaelrector1496 ปีที่แล้ว

    Question? what 3D printer Filament did you use to print The flight stick, and is it fairly durable.

  • @EpicHale
    @EpicHale 3 ปีที่แล้ว +1

    Do you have a video and 3d files for your hand break?

  • @dmmuller
    @dmmuller ปีที่แล้ว

    May I ask, why alter the VID and the PID. VID is vendorID, so that could theoretically remain the same? I think each vendor gets 60k PID's to use, so there should still be little chance of a conflict?

  • @steelbird
    @steelbird 3 ปีที่แล้ว +1

    Hey. Nice work.
    Do u have the handbrake project? Stl and so.. i couldnt find it.
    Thanks regards from uruguay

    • @AkakiKuumeri
      @AkakiKuumeri  3 ปีที่แล้ว

      Hi, I've just uploaded it in the same thingiverse posting. Try it out!

  • @fotoamgamgfoto3695
    @fotoamgamgfoto3695 ปีที่แล้ว

    What ID to use to get it recognizes by steam as generic game controller or wheel? Steam games does not use my Leonardo

  • @Were_M_Eye
    @Were_M_Eye 7 หลายเดือนก่อน

    Now I have to hide from usb police :/
    Great vid!

  • @PaddyPatrone
    @PaddyPatrone หลายเดือนก่อน

    Please focus on the actual topic. There is plenty of stuff in the video I had to skip through just to get to the actual part that refers to whats in the video title.

  • @garethbarry3825
    @garethbarry3825 5 หลายเดือนก่อน +1

    It's a pitty this doesn't seem to be working with the new IDE 2.x.

  • @BooktownBoy
    @BooktownBoy ปีที่แล้ว

    Hey there, cheers for the vid...I've got 2 Micros set up, both with individual names and PIDs and they show up in windows devices and printers no problem, however, the one with analogue controls does not work in games or in Xpadder....also the 2 Micros still report to the game with the same button numbers....so, I bind a key to a button on 1 micro (say it reports as button 1) then bind another key to the other Micro but it reports as being button 1 again and the game gets confused...help???

  • @rcdb4160
    @rcdb4160 ปีที่แล้ว +2

    Why I don't have hardware .... I just have libraries in my document/arduino/

  • @Simlife101
    @Simlife101 ปีที่แล้ว

    @Akaki Kuumeri I have a problem and not sure if this would help.
    I have a Button box and a racelogic which both come up as Arduino Micro in USB controllers in Windows but if I turn my pc on with both plugged in only the one will work and show up I have too unplug the one that isn't being detected then replug for it to show both arduino micro. What can I do to fix this please.

  • @jeumettu
    @jeumettu ปีที่แล้ว

    thanks alot fam

  • @joker_g7337
    @joker_g7337 3 ปีที่แล้ว

    Pretty cool indeed

  • @Viking8888
    @Viking8888 3 ปีที่แล้ว +1

    How many buttons/axises, axees (you know what I'm trying to say!) can a Teensy control. Some HOTAS units have a cable running from the stick to the throttle quadrant. Could that be done with a small micro controller like the Teensy to keep from using two separate controllers?

    • @tnield9727
      @tnield9727 3 ปีที่แล้ว

      Teensy 3.6 has 22 analog pins, so... a lot. You could do as many as 22 analog axes.

    • @S60Team
      @S60Team 3 ปีที่แล้ว

      With github.com/MHeironimus/ArduinoJoystickLibrary (Akaki use this):
      You can use 7 Analog Axis, 2 HatSwitch and 128 Buttons in Windows.

  • @Thalas5
    @Thalas5 ปีที่แล้ว

    Joystick.h also works on an Ardiono Due

  • @lancegoens747
    @lancegoens747 ปีที่แล้ว

    Do you know if these Arduino based controllers can be recognized by an xbox series x console? I'd like to build / print a flight yoke, throttle, and possibly rudder pedals for MS Flight Simulator... but on the xbox console, not PC. Does MS prohibit hobbyist development of hardware controlers? I see there is a "Designed for xbox" program but that appears to be for companies by the looks of it... not hobbyist.

  • @ScottDube1
    @ScottDube1 4 หลายเดือนก่อน

    Does anyone know if this still works with ide 2.x? I cannot find the path referenced here anywhere on my Mac. /Users/username/Documents/Arduino/hardware/. I have searched all over and cannot find where to store this new board description.

    • @hekka7270
      @hekka7270 4 หลายเดือนก่อน

      Try this: User name/AppData/Local/Arduino15/packages/arduino. I found my hardware folder there but this method didn't work. I recently came out with a new trick how to use multiple Arduinos same time and I am now testing it. It seems to be OK and everything works fine. Do you still have that problem?

  • @szkarlatny_pumpernikiel
    @szkarlatny_pumpernikiel 3 ปีที่แล้ว

    Hello, what is the name of this program what you are using 3d SolidCAD? Or some other? "Thumb-up!"

  • @interx007gmail
    @interx007gmail 3 ปีที่แล้ว +1

    Hi
    Great idea
    I was thinking if use a arduino mega for more input and sent to a leonardo that then send to pc usb
    Is it possible
    I can not program it my self

    • @AkakiKuumeri
      @AkakiKuumeri  3 ปีที่แล้ว

      It's possible. You could also use UnoJoy to make the Mega implement a USB gamepad directly: github.com/AlanChatham/UnoJoy

    • @S60Team
      @S60Team 3 ปีที่แล้ว +1

      It's possible, but i recommend you use Leonardo or Pro Micro + few MCP23017. You can get up to 128 buttons with 8 MCP using only 2 ports SDA and SCL (I2C bus)!

  • @roydavies953
    @roydavies953 3 ปีที่แล้ว

    Hi, great video, firstly...i have 5 button boxes i use for different sims but i only use a maximum of 3 at any given time, they all use leonardo boards.....this is where windows really gets confused and too my knowledge the person i buy my boxes off just wires up the buttons and thats all, so im assuming that that each board has a default bootloader, is there any way to read the default loader as an editable file, i use a powered usb hub for my boxes but the device id`s seem to be on random usb ports after a reboot to games like ACC gets mixed up controls even though i keep the boxes in the same usb ports, your help/advice would be greatly appreciated.

    • @AkakiKuumeri
      @AkakiKuumeri  3 ปีที่แล้ว

      No, there’s no easy way to read the binary off of the arduino board, much less to then modify it. You’ll need to contact the developer for the source or recreate it yourself

    • @roydavies953
      @roydavies953 2 ปีที่แล้ว +1

      @@AkakiKuumeri Hi, finally got round to trying to change the name, at first i couldnt get my head round it then i actually re-read the instructions lol, in the board.txt doc is there a limit to the length of text under usb product name, thank you for your help....very much appreciated. stay safe and an early Merry Christmas.
      Update....after getting the name changes sorted and are seen by windows 11 in device manager my games no longer recognize any of my button boxes rendering all 5 boxes unusable...all boxes have different names and different vid/pic numbers by 1 digit

  • @radiolo1221
    @radiolo1221 3 ปีที่แล้ว +2

    Could you upload the handbrake files to thingiverse?. I think is the perfect desing and size for my setup.
    Thank you for your vids, i love diy and electronics, and im trying to improve my 3d modeling skills.

    • @AkakiKuumeri
      @AkakiKuumeri  3 ปีที่แล้ว +2

      Yes, I'll be publishing it soon

    • @radiolo1221
      @radiolo1221 3 ปีที่แล้ว

      @@AkakiKuumeri Thank you!

  • @fotoamgamgfoto3695
    @fotoamgamgfoto3695 3 ปีที่แล้ว

    ok, nice, but how to rename them in windows only? :) I have a Logitech G920 and Dirt2 does not let it using even if I edit the XML files and duplicat G27 wheel files.... I need to rename it to be reported as Logitech G27 .... but in windows as I cannot touch firmware in the wheel, of course I also have Leonardo joysticks theye are also not recognized but they can be at leas renamed by your way here.....

  • @WayneMcNab
    @WayneMcNab ปีที่แล้ว

    Found it. I changed the .pid but not the .vid. Thanks

  • @kalyann1600
    @kalyann1600 3 ปีที่แล้ว

    Can it be used for playstation 4?

  • @leo_bysse4004
    @leo_bysse4004 3 ปีที่แล้ว

    Can i use the teensy instead of the arduino? and if would it be better?

    • @S60Team
      @S60Team 3 ปีที่แล้ว

      We try use Arduino Leonardo and Pro Micro because Teensy costs very much.

  • @karthikk6512
    @karthikk6512 3 ปีที่แล้ว

    Can u make a320 sidestick

  • @sebastiansaez3423
    @sebastiansaez3423 ปีที่แล้ว

    HELP. Can somebody tell me why my arduino pro micro is not recognized anymore? i follow all the steps and then my pc stops recognizing the device, it won´t appear on my game device controller. I upload the same code on the new board preset and the pc cannot recognize again the device

    • @sebastiansaez3423
      @sebastiansaez3423 ปีที่แล้ว

      Update: it doesn´t appear in the game controller menu from windows, but it is recognized in the game. How can i make it appear in the windows game controller menu?

  • @IronManhood
    @IronManhood ปีที่แล้ว

    I'm using 2.0 ide and this simply does not work. I'm new to all of this and don't have a clue what's wrong. Maybe I'll figure it out eventually.

    • @dencio1976
      @dencio1976 9 หลายเดือนก่อน

      figured it out yet?

  • @MrGeekGamer
    @MrGeekGamer 3 ปีที่แล้ว

    Link in the description is dead.

  • @axMf3qTI
    @axMf3qTI 2 ปีที่แล้ว

    Does this work with a Nintendo Switch. I imagine so since you made a smash controller.

    • @AkakiKuumeri
      @AkakiKuumeri  2 ปีที่แล้ว

      No, this is for USB HID only

  • @dualxsurvival155
    @dualxsurvival155 3 ปีที่แล้ว

    Could i use a non brand name arduino micro for joystick.h

  • @CSOCSO
    @CSOCSO 2 ปีที่แล้ว +3

    i had to put the boards text under here ( replace original one) C:\Program Files (x86)\Arduino\hardware\arduino\avr

    • @PaddyPatrone
      @PaddyPatrone 23 วันที่ผ่านมา

      Dude thanks for this

  • @memehosis8852
    @memehosis8852 3 ปีที่แล้ว

    can i get a link to your discord server?

  • @gamegame8558
    @gamegame8558 3 ปีที่แล้ว

    wow

  • @FrogFraction
    @FrogFraction ปีที่แล้ว

    THE USB POLICE *Wheeze* th-cam.com/video/YAbi_AqF7aQ/w-d-xo.html
    But i'm not sure what the exact setup here is.
    A couple of controllers with an arduino board inside. And each arduino board can be programmed with this code he shows, and if you edit the boards.txt file to have the same ID and name, it'll register the 2 controllers as 1 device?

  • @xuhaoping4360
    @xuhaoping4360 3 ปีที่แล้ว

    Actually, using MMJoy will be a much more easy way to do this hid devices.

    • @S60Team
      @S60Team 3 ปีที่แล้ว

      It's NOT easy. I've tried MMJoy and many others. This is the way to go!

    • @xuhaoping4360
      @xuhaoping4360 3 ปีที่แล้ว

      @@S60Team not really, this is definitely not the way to go. Firstly, you need to how to code, which is not a skill everyone knows, secondly, there are several lines of code needed to define each digital/analog input, which can build up easily if you are making a bigger hid box. For example, an MCDU requires more than 87 inputs, which leads to a few hundreds of lines of code. In a nutshell, Arduino library is too complicated for a noob starting with a simple box, and too
      cumbersome for a pro who wants to build a complex hid device. The only place where it is useful is when things like MMJoy cannot satisfy your requirement, ie, you need more than 6 rotary encoders, more than 10 rows/cols for button matrix, your shift register/adc chip is not supported, or you need some complex logic that is more than just simple reporting of buttons states. Otherwise, you are just wasting your time coding when other people have already spent years to develop a well around solution. Like MMJoy's author is now a major developer in VIRPIL, and even the current VIRPIL firmware and setup software are based on MMJoy.

  • @emiliodubois1433
    @emiliodubois1433 3 ปีที่แล้ว

    "its given to them by the USB police"

  • @Waylander131
    @Waylander131 2 ปีที่แล้ว

    well explained, just too much side talk. The important info and answer to the topic from 9:00 to 11:00

  • @yunusalih
    @yunusalih 3 ปีที่แล้ว +4

    Over engineering and dry humor, the german way.

    • @No1sonuk
      @No1sonuk 3 ปีที่แล้ว

      From the name, and a few video titles, I assumed he was from Finland...

    • @jonlucaslastra1637
      @jonlucaslastra1637 2 ปีที่แล้ว

      @@No1sonuk perk****! I also assumed he was Finnish. Strange Nihon-Finnish hybrid with sense of humour..

  • @uwe4741
    @uwe4741 3 ปีที่แล้ว

    Nice video, but you are talking too much.