Тёмный

Arduino 56 Button Joystick 737 Gear Control 

Les O'Reilly
Подписаться 5 тыс.
Просмотров 44 тыс.
50% 1

In this video we build a 737 Gear Handle for the Sim. This is a 3D Printed unit with all the parts additionally added below.
Programming required for an Arduino Pro Micro as a 56 Button Joystick controller to interface additional switches beyond just the buttons for the gear handle.
3D print file I found and bought -- sorry could not find a free one.
cults3d.com/en/3d-model/game/...
Switches I used:
GC Electronics 35-842
Actuator: Simulated Roller
www.newark.com/gc-electronics...
www.alliedelec.com/product/gc...
Arduino Pro Micro
www.amazon.com/OSOYOO-ATmega3...
Has to be either a Pro Micro or a Leonardo -- needs the 32u4 for direct HID support.....will not work with other models.
Sketch
It is in the Video -- RU-vid does not seem to like it added here do to bracket types used in the sketches - so here is a dropbox link not sure how long it will stay available.
www.dropbox.com/sh/j7djeqnatx...
Joystick Library
www.dropbox.com/scl/fo/ahehvp...

Наука

Опубликовано:

 

1 июн 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 172   
@harrygray8789
@harrygray8789 4 года назад
This is perfect. I've always been a big mmo gamer and am looking forward to games like Star Citizen, at times I play elite dangerous- etc. Games that require many hotkeys/binds/etc. I often use a HOTAS setup with petals and don't like fooling with the close keys(not feeling like remembering really) on a keyboard in order to command a ship and what not. I've always wondered what it'd be like to program my own "Control box" or "Control center", you've basically shown how to do that with this video. Thank you, a lot. It's crazy too, 56 buttons is a loooooootttttttt of buttons, which means I can totally swap some of that number off for whatever it'd take to map a switch/toggle/etc. Since these audrinos are totally not that expensive, if push comes to shove I can invest in a larger one or more of the micro pro's. Point being- This is amazing. Thank you a lot for this. If and when I ever get around to building my dream setup for the various games I play, I will reference this video to hopefully inspire and inform others like it has me. I appreciate it
@LesOReilly
@LesOReilly 4 года назад
Glad to hear you liked it. I have a few Arduino units. And In fact have taken one a little further and built it out as 100 buttons :). With no encoder or Axis I was able to do 10 rows and 10 columns on the Arduino Leonardo. Just keep in mind the pro micro and the Leo are the ideal units as they have the native USB interface. The other models like the mega are not as easy as you need to go through a “serial” driver. Have fun with it!!
@robertvroman6788
@robertvroman6788 3 года назад
@@LesOReilly How did you get 100 buttons on the Leonardo? I modified your code to get 84 on the Leonardo using pins A0 - A5 as columns and D0 - D13 as rows. It works well, other than A3+D11 giving me the same result (button 21 on the Windows game controller setup) as A4+D10 (the actual button 21). A3+D11 should be button 31.
@LesOReilly
@LesOReilly 3 года назад
The LEO has additional pins that can be defined as analog. I put in the comments of the code In the Leo example which pins are the columns and which pins are the row.
@pb6198
@pb6198 Год назад
Thank you, used this to make a full car cockpit with 70 odd buttons and switches, with an 8speed manual using buttons too
@LesOReilly
@LesOReilly Год назад
Awesome!! they are fun to play with :)
@krisrandom3203
@krisrandom3203 4 года назад
respect, im doing level 3 electrical installations/engineering and im gradually gettin my head round this kinds thing
@LesOReilly
@LesOReilly 4 года назад
Awesome!! Keep going....I really wish I could get my almost 11 year old into it more :(. He likes plugging in the wires and that stuff but not the code side.
@K1Vernon
@K1Vernon 3 года назад
@@LesOReilly How would you code an LED to light up when one of the buttons are pressed with the keypad and joystick library
@K1Vernon
@K1Vernon 3 года назад
@@LesOReilly By the way you can change the names of your devices if you change the board.txt of arduino IDE
@LesOReilly
@LesOReilly 3 года назад
You would probably need to then start looking at Shift Registers. Since you would want to expand the I/O so you could have pins adding to say use an I2C bus to drive LEDs off a shift register. That said you will then be giving up pins from the the Keypad and this fewer buttons.
@K1Vernon
@K1Vernon 3 года назад
@@LesOReilly I have a few extra pins open and only want to indicate 2 LEDs for master arm and gear indicator, So what i tried was adding an if statement(under case pressed to set LED pin to HIGH when i == 1 for instance but that didn't work) and defining LED as output
@kristianfossumwilhelmsen3931
@kristianfossumwilhelmsen3931 4 года назад
Great video but you got to lose the music. It's terrible and way to loud.
@LesOReilly
@LesOReilly 4 года назад
ugh.....okay....Will do better next time.
@ggrigo33
@ggrigo33 4 года назад
Great explanation, just what I was looking for, you think you can make a video like that explaining how to include Axis as well? Thanks
@LesOReilly
@LesOReilly 4 года назад
This video has links in it to code -- have a look at it and if you still don't get what you need let me know... ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tUdNZUEyT1U.html That said I found that I preferred the Leo Bodnar Board for Axis. The 12 Bit Resolution was well worth the price of the board. I used one to modify my 2 saitek throttle quads.
@ggrigo33
@ggrigo33 4 года назад
@@LesOReillyO'Reilly what is the Arduino's resolution? I thought it is 16 bit according to this github.com/MHeironimus/ArduinoJoystickLibrary
@LesOReilly
@LesOReilly 4 года назад
Could be -- though I have found some issues with getting my preferred product (spad.next) to work with the Arduino Axis as for some reason it shows up as like -16K to positive 16K or something like that.
@chiragjeram
@chiragjeram 3 года назад
Thank You Sir for nice video. I want to build sim racing kit. I want to use accelerator, brake and steer with 3 potentiometers. so is it possible to use 3 potentiometers on single Arduino Leonardo?
@LesOReilly
@LesOReilly 3 года назад
Sure...the analog pins are for that. But that means you will reduce your keypad ability.
@dudeslayer.imba0721
@dudeslayer.imba0721 3 года назад
Great thanks to your tutorial, I made a 84keys controller0v0
@LesOReilly
@LesOReilly 3 года назад
Thanks for taking the time to drop a note about your success! Appreciate it.
@LesOReilly
@LesOReilly 3 года назад
There are other board options .. if you use an Arduino Leonardo there are more pins. Making at 10x10 - 100 buttons can be done with one of those.
@dudeslayer.imba0721
@dudeslayer.imba0721 3 года назад
@Gilgamesh Akkadian 6(analog)x14(digital), actually is made up by 82+2 keys, i use 2 keys to control the brightness of the CDU keypad backlight, this two keys is connected to another arduino board which controls the keypad backlight RGB led(ws2812)
@dudeslayer.imba0721
@dudeslayer.imba0721 3 года назад
yes, of course.but i use micro board to control ws2812, I use these pin to control 2812 strips.but you only need one pin to control 2812 matrix by adafruit libraries in theory.
@joshj3380
@joshj3380 3 года назад
Awesome video man, thanks! Could this same sketch be used with a 16 ch analog multiplexer?
@LesOReilly
@LesOReilly 3 года назад
Not sure...I have never worked with one. But considering I am using all available Analog pins to be part of the KeyPad you will be giving up rows and columns to use them for analog axis.
@joshj3380
@joshj3380 3 года назад
@@LesOReilly I found a sketch that works out for me, thanks for your response!
@lionsfan1478
@lionsfan1478 2 года назад
Nice vid. Also where can I get the small header board that the pro micro is in at 5:46? What are those even called?
@LesOReilly
@LesOReilly 2 года назад
Breakout boards... Just search on amazon or what ever for "arduino pro micro breakout" www.amazon.ca/Aideepen-Terminal-Adapter-Expansion-ATMEGA328P-AU/dp/B0788MLRLK/ref=sr_1_37?keywords=arduino+micro+breakout&qid=1637102277&sr=8-37
@JohninCle
@JohninCle 4 года назад
Leave it to the pilot to make a well remarked detailed arduino sketch.Thank you.. it didnt answer my question but it definately helps. (Im trying to create arduino code to treat a toggle and a pushbutton different. I need to address each switch not look at all of them the same way. figuring out this line " if ( buttbx.key[i].stateChanged )" I think is the key.
@LesOReilly
@LesOReilly 4 года назад
Actually I use this with “switches” not just buttons. When the gear is “up” the button is held steady the whole time - it is not treated as a repeat even. Though that help also comes from SPAD.NEXT for the behavior. I can assign events for switch “on” and switch “off”.
@yanivnaor8842
@yanivnaor8842 4 года назад
how can i see the joystick show screen ( right handside of the screen ) minute 8:27 ? I have been trying to create my own customer panel as well thank you
@LesOReilly
@LesOReilly 4 года назад
Hi, That is a Mac App that I think I bought in the Mac App Store for like a buck or something. If you are on Windows they actually have a native configuration screen where you can see the buttons and axis as well....
@alheeley
@alheeley 4 года назад
Great build - I'm having huge problems getting my Pro Micro to reset and to upload any sketches onto it, it only sees it at COM1, and I cannot get windows10 recognising it yet as joystick button controller. How do you get the little joystick button display window up and running?
@LesOReilly
@LesOReilly 4 года назад
Once it is built I just go into the Windows Control Panel and then do to devices and Printers. it shows up there and I can then click on it.
@alheeley
@alheeley 4 года назад
@@LesOReilly ok thanks - it looked like it was an add-on for the arduino s/ware.
@LesOReilly
@LesOReilly 4 года назад
@@alheeley Oh....I did some of that originally on my Mac not on my Sim PC which is Windows...I assumed you are on a windows machine. Since Mac does not have a "tool" like in Windows I had to download that from the Mac App Store to make sure that things were working.....
@alheeley
@alheeley 4 года назад
@@LesOReilly Ah ok that explains - I defected back off mac to windows so I could play more games ;)
@alheeley
@alheeley 4 года назад
Its prob the best and clearest talk-through of the button matrix sketch programming and practical mapping to a controller I have come across - many thanks for that :)
@Yukii_tan
@Yukii_tan 4 года назад
Hey, great video, just wanted to ask if you could maybe explain in a video how you do the wiring or suggest any places to learn this from ? I have the pro micro and I've figured the programming part out, but I struggle to figure out how I could wire up something like a toggle switch that stays on or off depending on position as well as having multiple ones in a sequence i'm currently stuck at having 1 thing added to the Arduino at a time. Again awesome video mate!!
@LesOReilly
@LesOReilly 4 года назад
The Arduino Tutorials are on the website and do a good job of this. When it comes to Toggle Switches it depends on the Toggle Switch and how you want it to work.....Also depends on what your target requires....So example if your able to control Data or you have the ability to program ON and OFF events from a single button then you get more freedom..... So with most 2 position Toggle Switches you have 3 connectors because you connect the VCC or GND to the centre pin and there the other two pins will pass that connection through when the switch is in the UP or Down State....Also think of it from "Inside" the switch as the Pin that will be active is relative to where the switch is inside not the arm.....It If the arm is UP then it is the lower pin that will be the Closed and the UPPer Pin is open. If your software can work in the concept of having a "switch" function so that it will essentially do one thing with the switch Closed and then another even when Opened then it is easy since you only need to connect One of the pins to a button pin. That way it is either ON or OFF but you don't have to put in a separate "Pin" for the OFF as well..
@Yukii_tan
@Yukii_tan 4 года назад
@@LesOReilly Thank you so much for the answer, I hadn't considered doing that on the software side, which honestly I have no idea how that skipped my mind. Also thank you for the fast response, I will have a look on the arduino website for the tutorials you mentioned for the wiring of the switches. The thing I am working on is a small button box to simulate the switches in a Cesna, so that should maybe give a bit clearer of an idea of how the switches should look/work and what the purpose of the project is overall. Again thank you for the answer!
@LesOReilly
@LesOReilly 4 года назад
I use SPAD.Next for all of my flight sim switch and controller programing. That makes it much easier to deal with as it supports setting up buttons as switches.
@mrazor
@mrazor 3 года назад
Glad to find this video at this moment as I want to build my button box for MSFS 2020. I download the sketch from your link provided and upload it to my leonardo without any problems, but when I connect the buttons to the pins it doesn't work. Dunno what went wrong and hope someone can give me some clue.
@LesOReilly
@LesOReilly 3 года назад
The comments in the sketch explain the "keypad" mappings and which pins connect to which Rows / Columns. Essentially Analog pins are connecting to multiple Digital Inputs at a time and this creates the matrix.
@mcgilp7
@mcgilp7 Год назад
Just started building my own button box using you code. I'm getting an error though regarding the Joystick_ entry. Any ideas, thanks
@LesOReilly
@LesOReilly Год назад
You don't have the Joystick Library installed then ... It's in the show notes.. but here is a link to the one I use as well.. www.dropbox.com/home/Arduino%20Shares/Joystick
@SL2K2000
@SL2K2000 4 года назад
higher setting means way more time........2 hour print can jump to 9 hours(example)
@LesOReilly
@LesOReilly 3 года назад
Thanks... Yes Quality = Time :)
@GarethIzCool
@GarethIzCool 3 года назад
Hey thanks for the great video, very helpful can you tell me will this be able to detect multiple button presses at once ?
@LesOReilly
@LesOReilly 3 года назад
Without using diodes in your hardware design you will need to try and space them to separate columns in a way that they don’t overlap too much with items you need to fire instantly together.
@GarethIzCool
@GarethIzCool 3 года назад
@@LesOReilly thanks
@LesOReilly
@LesOReilly 3 года назад
Yeah that looks about right ... I did not see this comment before now because it go held up for approval due to a URL link...
@damianbutterworth2434
@damianbutterworth2434 3 года назад
Could you use a Mega which has about 56 digital pins.
@LesOReilly
@LesOReilly 3 года назад
@@damianbutterworth2434 Not with the USB HID Joystick... The Micro and Leo use the native USB of the 32u4.... The Mega does not have the same ability.... There is the Hoodloader mod stuff out there, but out of the box it seems you need to stay with the Micro and or Leo..
@olinwinfrey1782
@olinwinfrey1782 3 года назад
do you know of a Windows 10 application to test 56 or more buttons? I show a limited 32 buttons in the games controller UI.
@LesOReilly
@LesOReilly 3 года назад
I use SPAD.Next to configure all of my controllers and interfaces with the flight sim. It is where I can see all of the buttons show up and register.
@olinwinfrey1782
@olinwinfrey1782 3 года назад
@@LesOReilly Great... I'll give it a try. Thanks Les!
@kinangeagle133
@kinangeagle133 3 года назад
Will it work if i use the analog as column and the digital pins as row?
@LesOReilly
@LesOReilly 3 года назад
No idea. Try it out.
@bratban919
@bratban919 Год назад
Hey cool video but I have a question. I have been trying to get my pro micro to work but I get "averdude" messages and cant get my board to work. Any tips?
@LesOReilly
@LesOReilly Год назад
Nope.. I use the standard arduino compiler and uploaded. No issues.
@bratban919
@bratban919 Год назад
@@LesOReilly i can't seem to get it to work. I've been messing with it all day but no success. Thank you anyway for responding so fast!
@LesOReilly
@LesOReilly Год назад
Make sure you have the correct board in the compiler and also make sure it really is a pro micro and not a pro nano… only pro micro and Leonardo have the 32u4 you need for joystick devices.
@jnkmal9519
@jnkmal9519 4 года назад
Can someone tell me why I was able to use the 2015 version of joystick.h without any issues and could happily upload sketches all day long. But the 2017 version doesn't even accept the same sketches and even the sample sketches that come with 2017 joystick.h continually brick my arduino to the point that I have to re-flash the bootloader.
@LesOReilly
@LesOReilly 4 года назад
No idea here.....I use the Leonardo or the Pro Micro when doing joystick as it is the easiest way to implement a Native USB HID device.
@get_outdoors
@get_outdoors 10 месяцев назад
I’m going to have to watch this a few times, will this work with a Pi Pico? Many thanks
@LesOReilly
@LesOReilly 10 месяцев назад
No idea this is all based on arduino and the 32U4 part that enables being a hid joystick device.
@garytaylor5646
@garytaylor5646 3 года назад
Thank you for all your help I am trying to write your sketch word for word but when I initialize it I get the error message " Joystick_ does not name a type " on line Joystick_ Joystick(JOYSTICK_DEFAULT_ID, any help? thanks
@LesOReilly
@LesOReilly 3 года назад
You probably don't have the correct Joystick library installed..
@Marszalek99
@Marszalek99 11 месяцев назад
It is possible to achieve 81 buttons with 9 rows and columns?
@LesOReilly
@LesOReilly 11 месяцев назад
Yes.. 9x9 = 81.
@moschidreamer
@moschidreamer 3 года назад
Can I build more button boxes and connect to PC?
@LesOReilly
@LesOReilly 3 года назад
Yes they just show up like additional Joysticks :). I have 3 hooked up.
@ilia8661
@ilia8661 4 года назад
Hi. I really like your movie and Arduino program. I'm going to make a panel for B738 using Arduino Leonardo and your 100 button program. I would like to connect 76 buttons there. Would you share a video showing how to do it, or a diagram of a pcb board for connecting buttons? I don't know much about it and I need help. Best regards.
@LesOReilly
@LesOReilly 3 года назад
Just look up Button Box... Lots of examples... Use Diodes if you want to ensure that you don't have Ghost switches www.google.com/search?q=how+to+wire+button+box+Array+images&rlz=1C1CHBF_enCA925CA925&sxsrf=ALeKk02X0josqBWLCwiRZBRkv4F4o-P4fQ:1617298359979&source=lnms&tbm=isch&sa=X&ved=2ahUKEwiqxvfxyd3vAhXbElkFHeavB18Q_AUoAXoECAIQAw&biw=1920&bih=947#imgrc=tkhRQkWSW1_4xM
@kueto27
@kueto27 4 года назад
Hi friend where can I download the library files? Thanks a lot for this awsome job
@LesOReilly
@LesOReilly 4 года назад
Hi - which library files are you referring to?
@kueto27
@kueto27 4 года назад
@@LesOReilly Hello friend, sorry the libraries were installed by default. It was a failure of my IDE, now it is solved. To use it with a LEONARDO, the pinout (21,20,19,18) of the code would be the same? I made it work a month ago with my 3d printed H shifter, and I didn't keep a copy of the sketch. And now I would like to add more buttons through a button box. Thanks a lot
@LesOReilly
@LesOReilly 4 года назад
@@kueto27 Sorry for such a late reply....I did not seem to get a notification that you replied......Another person commented so that brought me back.. Here is a link to a 100 Button Box Sketch for a Leo Board :) www.dropbox.com/sh/rgu3x2uebziepyj/AABkbc58Aa5YdeBx2u_ojR7_a?dl=0
@kueto27
@kueto27 4 года назад
@@LesOReilly thanks a lot friend this is awsome!
@brown_salazar
@brown_salazar 3 года назад
@@kueto27 podrías ayudarme? Precisamente quiero usar dos switches igual que este video, pero en un sketch ya hecho, funciona con una palanca g29 y un arduino Leonardo
@luisangelchiciau2686
@luisangelchiciau2686 11 месяцев назад
En la libreria joystick que se encuentra en github dice que solo puede controlar 32 botones y al momento de testear el mando desde administrador de dispositivos con el codigo que compartiste solo aparecen 32 aun que se le haya establecido 56, como le hizo para leer mas de 32 botones? acaso modifico la libreria? gracias de antemano
@LesOReilly
@LesOReilly 11 месяцев назад
don't speak the language
@mate2logica
@mate2logica 10 месяцев назад
Hola luis como conseguiste la libreria joystick en github la que estaba en dropbox ya no esta disponible
@fotoamgamgfoto3695
@fotoamgamgfoto3695 3 года назад
I've built a Yoke a Steering wheel etc using no mechanicak parts switches or potetntiometers for pedal and wheel movement, much cheaper and easier just puttin an accelometer tilt sensor to each pedal, the wheel itself etc. and measure the angle, also for the shift gear, just SAIYAN!
@LesOReilly
@LesOReilly 3 года назад
Cool!!!
@farhan-op
@farhan-op 2 года назад
what module , sensor did you use exactly
@ishtiaqahmed9019
@ishtiaqahmed9019 Год назад
Hello, I’ve try my best and unable to find "Joystick.h" which can allowed to use 56 buttons I can only use and see 32 buttons, can anyone help me to get the right "Joystick.h" libraries, thanks
@LesOReilly
@LesOReilly Год назад
The links are In The description of the video.
@jorgerivas6909
@jorgerivas6909 Год назад
Hi Les O'Reilly, I wanted to know if you could help me with your code, I entered it into the arduino but it gives me an error because of the joystick folder, do you know how to solve this problem? thank you
@LesOReilly
@LesOReilly Год назад
The Sketch and the Joystick library are listed with links in the show notes
@jorgerivas6909
@jorgerivas6909 Год назад
@@LesOReilly I don't have a problem with that, if not it's in the joystick library (of which the link you left is deleted, look for the folder online arduino joystick librari master but all are without the joystick file) and I get this message when loading the sketch 'joystick_' does not name a type; Did you mean 'joystick'? I've been looking for the solution for months but I can't find a way to get it to work. If you know something, could you please guide or inform me, thank you again.
@LesOReilly
@LesOReilly Год назад
@@jorgerivas6909 www.dropbox.com/sh/0xjh38wme7oalez/AACi4dcSGBt808DjITb0iKu7a?dl=0 Not sure why the link is dead but I just restarted it. Try that link.
@jorgerivas6909
@jorgerivas6909 Год назад
@@LesOReilly Thank you very much, now everything is correct thanks to your help, it is greatly appreciated for all your time.
@TallWestEddy
@TallWestEddy Месяц назад
Hey, does this mean I can have more than 1 toggle switch on the pro micro? For dcs
@LesOReilly
@LesOReilly Месяц назад
Keypad designs will need Diodes if you are looking to be able to Hold Multiple Switches / Buttons down at the same time
@TallWestEddy
@TallWestEddy Месяц назад
@@LesOReilly thanks, I just need to set up about 6 toggle switches, no buttons as such, just 6 toggle switches.. I’m a noob so not really sure what the pro micro can support
@LesOReilly
@LesOReilly Месяц назад
@@TallWestEddy oh then you don't even need to implement Keypad expansion .. you only need 6 Digital Pins.. 1 per switch. All Switches tie to Ground and you enable the Pins with the Pullup so that you just short to ground to trigger.
@TallWestEddy
@TallWestEddy Месяц назад
@@LesOReilly thank you!! I uploaded some joystick library following a video someone did, but it only allows me to wire two toggle switches as it shows pin mode 9-12…but the pro micro doesn’t have 11-12. I’m so lost. Maybe I need to learn to code to?! Managed to get two toggle switches working on the pro micro but guessing I’m using the wrong library to let me use the other pins?!
@LesOReilly
@LesOReilly Месяц назад
you have to write / modify the sketch files in the Arduino IDE to configure the pins/switches and then map those to the joystick library..
@flavianojose8423
@flavianojose8423 2 года назад
Hi there, how do i use an LED with arduino Pro Micro for parking brake, any schematic and codes please
@LesOReilly
@LesOReilly 2 года назад
You will need to learn about using spad next and the spad protocol to control those kinds of things.
@flavianojose8423
@flavianojose8423 2 года назад
@@LesOReilly i know how to use spad next, but only to control the Saitek radios and controls, not to link with arduino pro micro, and I am trying to do a research on RU-vid, I can't find any tutorial explaining what you have just said. Any idea or links you know so that I can have a look at it?
@LesOReilly
@LesOReilly 2 года назад
I did a tutorial on how to use the spad protocol to make an autopilot panel with arduino.
@flavianojose8423
@flavianojose8423 2 года назад
@@LesOReilly great, i will have a look at you channel to find the video, should be ease if you could just post with the link of it.
@LesOReilly
@LesOReilly 2 года назад
(Sim Video) Arduino Based 3D Printed Autopilot P1 | MSFS 2020
@willframirez2218
@willframirez2218 3 года назад
Hello friend, what a good project for joystick and buttons, I would like to have the connection diagram for the buttons, since I'm a very newbie even with Arduino and I don't understand much, I want to make my cessna 208 fsx cabin, thanks in advance for your help and contribution.
@LesOReilly
@LesOReilly 3 года назад
Th comments of the linked code tell you which pins are the column and which pins are the row connections.
@willframirez2218
@willframirez2218 3 года назад
@@LesOReilly well thanks i will check the code
@migas_2407
@migas_2407 Год назад
Hi. I m having and errors. I tried a few ones but it does'nt work. could you link those files please?
@LesOReilly
@LesOReilly Год назад
www.dropbox.com/sh/0xjh38wme7oalez/AACi4dcSGBt808DjITb0iKu7a?dl=0
@LesOReilly
@LesOReilly Год назад
Keypad is the one from arduino.
@migas_2407
@migas_2407 Год назад
Thanks for your quick reaction and help😁👍 that solved my problem. it works perfectly
@migas_2407
@migas_2407 Год назад
hi 🖐.. I have 1 more question. is it possible to ad 4 rotary encoders to this configuration? if yes how can I connect them?
@LesOReilly
@LesOReilly Год назад
@@migas_2407 no would require a lower button count since you need pins directly for the encoders.
@alexsandrocampelo
@alexsandrocampelo Год назад
Quais bibliotecas você utilizou ?
@LesOReilly
@LesOReilly Год назад
Everything is listed in the video.
@apatock
@apatock 3 года назад
Does this work with a ESP32 also?
@LesOReilly
@LesOReilly 3 года назад
No idea.... never used one of those.
@Eduardog1975
@Eduardog1975 Год назад
it is posible make a 9x9 grid to get 81 digital inputs?
@LesOReilly
@LesOReilly Год назад
Yes it can be done with 81... www.dropbox.com/s/rlzozx0r17i523t/MicroUSBButtonBox81.ino?dl=0
@Eduardog1975
@Eduardog1975 Год назад
@@LesOReilly thanks a lot, I go to see
@Eduardog1975
@Eduardog1975 Год назад
@@LesOReilly how are the máximum DI it is posible for a PC game
@LesOReilly
@LesOReilly Год назад
No idea. It depends on the game I guess. But I know that MSFS will see 128 buttons on a vJoy.
@andrewrogers9098
@andrewrogers9098 4 года назад
I am going through the process of making a button box. One of the things I want on this button box is a potentiometer based 2 way axis or a joystick
@andrewrogers9098
@andrewrogers9098 4 года назад
Could you make a video on this process?
@LesOReilly
@LesOReilly 4 года назад
Maybe. I did a GPS controller with AXis for the volume knobs. Those were easy - as there was already examples out there. Encoders and large numbers of buttons using keypad is harder to do. Will see if I can get some time. Been so busy with work these days working from home is more work than working from work :).
@olinwinfrey1782
@olinwinfrey1782 3 года назад
Hi Les, I've tried to compile the sketch but I'm getting the following error, "MicroUSBButtonBox_With_Axis:41:20: error: 'JOYSTICK_DEFAULT_REPORT_ID' was not declared in this scope Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID, ^~~~~~~~~~~~~~~~~~~~~~~~~~ MicroUSBButtonBox_With_Axis:42:3: error: 'JOYSTICK_TYPE_JOYSTICK' was not declared in this scope JOYSTICK_TYPE_JOYSTICK, 56, 0, ^~~~~~~~~~~~~~~~~~~~~~ exit status 1 'JOYSTICK_DEFAULT_REPORT_ID' was not declared in this scope Any help would be greatly appreciated. Regards
@LesOReilly
@LesOReilly 3 года назад
I don't think you have the Joystick.h Library added to your libraries....
@olinwinfrey1782
@olinwinfrey1782 3 года назад
@@LesOReilly Hi Les, Yes I have the Joystick.h library added but it may not be the correct one as I've found another post on google with the same issue. Can you share the library you used or a link?
@LesOReilly
@LesOReilly 3 года назад
@@olinwinfrey1782 Pretty sure I recently downloaded it directly from within the IDE and the Library Manager...Just searched for Joystick in it
@olinwinfrey1782
@olinwinfrey1782 3 года назад
@@LesOReilly Thanks Les, I found "ArduinoJoystickLibrary-master" and it compiled, but on with 32 buttons.
@LesOReilly
@LesOReilly 3 года назад
www.dropbox.com/sh/0xjh38wme7oalez/AACi4dcSGBt808DjITb0iKu7a?dl=0 That is the Joystick Folder from my Arduino Library folder....
@requiem4adreamc
@requiem4adreamc Год назад
Should i add diodes in this project?
@LesOReilly
@LesOReilly Год назад
depends how you use it .. using it with a GNS 530 type project where you don't have multiple buttons held at the same time it is not an issue .. if you don't wan to worry about ghosting then you need diodes.
@requiem4adreamc
@requiem4adreamc Год назад
​@@LesOReilly Thanks :) Ghosting an issue for me. I added diodes to the columns, it works for me. But in online tutorials they are adding to the rows. If i add diodes to rows nothing works.
@LesOReilly
@LesOReilly Год назад
@@requiem4adreamc okay I guess it would be based on which way you hook up the columns and rows. As in which side column or row is attached to the analog outputs.
@requiem4adreamc
@requiem4adreamc Год назад
@@LesOReilly It makes sense. I will give it a try. Thanks :)
@requiem4adreamc
@requiem4adreamc Год назад
I think i connected the left of the row rather than right or vice versa. Or maybe diodes placed to the wrong direction.
@Hyperchaosbringer
@Hyperchaosbringer 3 года назад
How does the computer know you're not holding the button down.
@LesOReilly
@LesOReilly 3 года назад
I don't understand your statement..... The Arduino is doing a loop and scanning the Button Grid. If the Button is held down it reports as held down...
@Hyperchaosbringer
@Hyperchaosbringer 3 года назад
@@LesOReilly You answered question. When I toggle my taxi lights on the strobe from the controller input.
@michaelnetland1622
@michaelnetland1622 3 года назад
when i verify the sketch I get the following error. " Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID' was not declared in the scoop" any idea why? or how to fix it?
@LesOReilly
@LesOReilly 3 года назад
You don't have the correct Joystick.h library
@michaelnetland1622
@michaelnetland1622 3 года назад
@@LesOReilly I got it. Thanks for the help!!
@rseguras
@rseguras 3 года назад
What about ghosting? Help pls :c
@LesOReilly
@LesOReilly 3 года назад
I don’t understand the question. Any clarification you can make would be helpful.
@rseguras
@rseguras 3 года назад
@@LesOReilly when i press more than one button, the "ghosting" appears, i saw on internet that i can eliminate with 1N4148 diode, but i dont know how to connect it :c
@LesOReilly
@LesOReilly 3 года назад
Okay got it -- yeah this site has an example of a 4x4 grid with diodes...this is how you would do it. www.gammon.com.au/forum/?id=14175
@emreduzer5353
@emreduzer5353 3 года назад
Why my windows show 32 button ???
@LesOReilly
@LesOReilly 3 года назад
If you are looking in windows game controller it can only display 32 buttons. However games or configuration software can see them all - ie my sim interface of choice SPAD.Next sees all 100 on my one unit.
@orpanyolcu3922
@orpanyolcu3922 3 года назад
@@LesOReilly Thanks for answer . Now A3 Colomb 1.2.3....(Total 14 pin) Row connect th toggle swich is great work but extra connect A2 Colomb 1.2.3...... Row not work . Disconnect 1 pin A3 row system connect 1 pin A2 row so working 10 pins .what can ı do .
@LesOReilly
@LesOReilly 3 года назад
@@orpanyolcu3922 You are running into the issue where similar pins held on adjacent columns will have issues with with Latched switches.... Try with Push Button Momentary buttons and it will be fine with independent buttons and then you design your spacing based on combinations that can be multi Held/pressed at the same time. If you want to use Switches with ON/Off then you are going to have to design Diodes into your circuit to prevent this.
@mate2logica
@mate2logica 10 месяцев назад
the library arduino in dropbox not exist
@LesOReilly
@LesOReilly 10 месяцев назад
I updated the Link again .. Should work now with the update.. Dropbox tends to kill off long time links.. Thanks for letting me know.
Далее
GNS 480 Arduino USB Knob Control
20:05
Просмотров 4 тыс.
DIY Flight Simulator Joystick
9:10
Просмотров 1 млн
COMMUNISM vs CAPITALISM: Who Made Better Power Tools?
24:39
DIY Bluetooth GamePad for Android, PlayStation and PC
6:32
DIY ARDUINO MOUSE JOYSTICK
2:14
Просмотров 129 тыс.
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 1,3 млн