The Simplest DIY Macro Keypad with Arduino

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 115

  • @BrianLough
    @BrianLough  5 років тому +6

    Any suggestions for things you would do with this type of keypad? Or do you know of an simpler one!?
    Sorry about some of popping in the audio, I've changed a lot recently (new computer, new editing software, new version of OBS) so I haven't got everything dialed in yet

    • @BrianLough
      @BrianLough  5 років тому +1

      Yeah I think I might make something for video editing with a rotary encoder as well, I think it might be nice

    • @mahmoudghanim3717
      @mahmoudghanim3717 5 років тому

      I'm waiting for your reply plz plz plz,
      About ESP32 cam

    • @mahmoudghanim3717
      @mahmoudghanim3717 5 років тому

      Can i recording the video streaming?
      and Can i send a command or a signal from arduino to start or stop record video?!
      finally, how i can upload this video wich it recorded to cloud or server?!
      Thank you for your reply

    • @mahmoudghanim3717
      @mahmoudghanim3717 5 років тому

      @@2000jago what is that?
      And i think this is not your business

    • @rawgames3564
      @rawgames3564 5 років тому +1

      @@mahmoudghanim3717 yes. You can do the same way in the hotkeys menu in obs. Uploading.... Just do through the browser. If you want live then that's a bit more complicated. But also possible in OBS

  • @parsakajbaf1581
    @parsakajbaf1581 3 роки тому +2

    Keyboard' not found. Does your sketch include the line '#include '?

    • @basstel_bude
      @basstel_bude 3 роки тому

      just found out that you have to select the correct arduino in the tools section of arduino IDE in order to get no error messages. I think Arduino Leonardo is the correct one but you might need to try different ones! ;)

  • @SianaGearz
    @SianaGearz 5 років тому +2

    There's another few problems with the Digispark: it's a flaky little shit due to software USB, sometimes it connects, sometimes it doesn't. And when you make a poopoo, debugging is proper hell. I really like the borderline disposable nature of the Digispark and its compact footprint but i don't like actually dealing with it.
    I always have an urge to use the big pile of STM32 Blue Pills i have here, but then that's just me. They're so cheap, why are they so cheap? OK they need one resistor fitted to really work with USB, big deal. And it's nicer to use a $2 dedicated programming device, because then you don't need Boot0 and can use the rear debug pins rather than figuring out every time where the goddamn RX/TX pins are.

    • @BrianLough
      @BrianLough  5 років тому

      I have a blue pill sitting here for about two years and to my shame I've never used it! I also had some issues with the Digispark for printing, sometimes it just missed characters.

    • @squalazzo
      @squalazzo 5 років тому +1

      @@BrianLough i used a digispark with an optical endstop switch to simulate the coin insert in my arcade machine: when the coin passes between the 2 "pillars", it sends the 1 coin key to MAME :)

    • @squalazzo
      @squalazzo 5 років тому +1

      @@BrianLough a sensor like this (beware, the item refers to 10pcs): www.banggood.com/TWO-TREES-10pcs-Optical-Endstop-Light-Control-Limit-Optical-Switch-for-3D-Printer-p-1510313.html

  • @TheDefpom
    @TheDefpom 5 років тому +14

    I don’t know if you saw the live stream I did a few weeks a ago, I used a pro micro and a pir sensor to automatically switch cameras when I moved to my electronics bench, I’m going to add a capacitive button panel to allow me to configure different camera views on the fly with the automatic switcher, am planning on doing a project video on the whole thing.

    • @welshdave5263
      @welshdave5263 5 років тому +1

      This sounds exactly what I would want to use, heading to your channel to subscribe so I don't miss this.

    • @welshdave5263
      @welshdave5263 5 років тому +1

      What that video called please? don't know which one I'm looking for.

  • @wadeddy1062
    @wadeddy1062 4 роки тому +2

    If you want to type a message such as "hello world" replace the sendMacroCommand() with Keyboard.print("hello world"). www.arduino.cc/reference/en/language/functions/usb/keyboard/

  • @obiwanbd1
    @obiwanbd1 4 роки тому +11

    To help with programming you can set an enable pin on one of the leftover pins. So if say pin 10 is connected to ground it just skips the loop and waits 1 min and then checks again. That way when you want to reprogram the Keypad you can jumper 10 to ground and your keypad won't output anything.

  • @PsiQ
    @PsiQ 3 роки тому +2

    GREAT just what i wanted to ask you about, thought i'd look around first and there you are ;-)

  • @UndernetSystems
    @UndernetSystems 5 років тому +4

    Very good video brother. I made something similar with an ESP but it is wireless and hijacks the x server on linux to activate shortcuts

  • @vilsonyuri7696
    @vilsonyuri7696 Рік тому +1

    How do you make a key simulate a mouse click?

  • @ImnotChuck.
    @ImnotChuck. 5 років тому +2

    I got busy and put it together tonight (1 Oct 2019.) Found a plastic project box just the right size for the keypad, and put the pro micro inside. Tomorrow, I am going to add a power-on LED to the face of the box as well as an LED which lights whenever a button is pushed. (That's to compensate for the poor tactile feedback from the membrane keyboard.) It's going to help tremendously with OBS. Thanks a bunch for the idea and the code.

  • @D4rkysLP
    @D4rkysLP 23 дні тому

    Thanks for your video! I used it, added some mouse functionality and made some macros and shortcuts for Cubase, since my finger is broken and my left arm has a casting on atm, which is very inconvenient when working in a larger program, where shortcuts really cut time. Now I can at least work on some recordings, while I'm on sick leave for 6 weeks :) And while I was at it, I made some automations (move mouse, scroll, klick, enter text), that were in my mind since I began to use the software package.

  • @newburypi
    @newburypi 5 років тому +1

    Seeking a cure for YDPPIS.
    "UA-cam Demonstrated Produce Purchase Inducement Syndrome"
    Pronounced "You'd piss"?

  • @PsiQ
    @PsiQ 3 місяці тому

    I have to say that i totally forgot the content of this video.. 😞 !
    Because the keyboard.h explanation on the arduino site does not really explain how to mod the program to allow the SHIFT+KEY thing,
    and you simply showed it in your script with a bas ic "if-then" loop.
    Now all i need to find out is how the thing with diodes works, so i can use multiple keys at the same time.. or 2x 4x4 pads
    if this doesnt work due to pins number i will simply grab another pro micro and hook up the Shift+Fkey on there..
    Thank You !
    (Havent heard/seen from you long time, youtube doesnt promote you anymore)

  • @danpolzi1577
    @danpolzi1577 2 роки тому +1

    Can i use a arduino nano, arduino uno or arduino mega 2560?

  • @drakelazerus
    @drakelazerus 4 місяці тому

    Awesome Brian! I have creating a login switch box and username and password set up for systems that require this all day long, using the Micro. I was using only the keyboard.h library for printing text and wiring up my little boxes with momentary push buttons. I like this plug and play keypad version! Will save me time and money! I have the code for making requirements so it doesn't get stuck in a loop. I am trying to figure out how to add a Control alt delete, then return function to the code I already have. The code does the following with 1 button press: types in a username, tabs to password bar and types in the password and then returns. I am not quit sure how to add the control alt delete then return to this same button function. Would be happy to share what I have for the keyboard.print to get any suggestions. Thanks again for this video!!!

  • @TheTinkerDad
    @TheTinkerDad 5 років тому +1

    Hi Brian,
    Nice vid as usual! If you want to go overboard with the project, you could make change it to use an es8266 and have a web gui set up for customizing the keys. Howbowdah? :)

  • @bean_frog4565
    @bean_frog4565 3 роки тому +1

    2:06 lmao same bro

  • @bdk1488
    @bdk1488 4 роки тому +1

    I really wanna build this one, but I have an official arduino micro instead of an aliexpress one. How do I connect the wires up? The official one has more pins

  • @whiterice6663
    @whiterice6663 2 роки тому

    I tried copying thr code to arduino but keep getting the error 'Keyboard' not found. does anyone know how to fix this. I'm still very new with all this

  • @shafayettasin4270
    @shafayettasin4270 3 роки тому

    it works except for the function key. how to control volume using this macro keyboard.

  • @chiccoross6868
    @chiccoross6868 2 роки тому

    sorry for my english, but i love you. in one evening, you solved my problem. 1000 thanks

  • @majRFan
    @majRFan 2 роки тому

    Can I connect this to ipad and use this as procreate shortcut macropad ????
    Please reply..

  • @piconano
    @piconano Рік тому

    Sorry I'm 3 years late.
    What happens if you press 2 or more keys at the same time?

  • @PsiQ
    @PsiQ 3 місяці тому

    Aaaand here i'm back again .
    I will build A F13 to F24 for StarCitizen. (i plan to will to build to..)
    And if i get my head around it another row with
    Shift-F13 to Shift F24

    • @PsiQ
      @PsiQ 3 місяці тому

      Edit: Darnit... Star Citizen doesnt know F13 to F24 😞
      Maybe i can use Left ALT + Right ALT + F1 to F12 .. meh..

  • @NabilTouchie
    @NabilTouchie 3 роки тому +1

    Worked like a charm! Thanks for all the effort in putting this together!

  • @pileofstuff
    @pileofstuff 5 років тому

    If you got stuck with automatic text not allowing you to re-program the thing, you could probably resort to using ICSP for programming.
    But, as you said, best to avoid that pitfall if possible.

  • @WayneRigley
    @WayneRigley 4 роки тому

    SO this is my situation and need help, I got an Arduino Pro Micro and MX keys, I've programmed it to send (SHIFT +A-J) fire it up open note pad, and bingo works ABCDEFGHIJ / Opened OBS assign the hotkeys to my scenes, scene 1 SHIFT + A etc , test it with my computer keyboard and it works... but when I try it from my macro keypad it jumps to other scenes or nothing at all.. any help?

  • @mosikanm6093
    @mosikanm6093 Рік тому

    Can anyone know how to do the same thing using NODEMCU? I tried with the same code given above but I shows some errors, please let me know anyone knows the way to do it using the NodeMCU

    • @BrianLough
      @BrianLough  Рік тому

      Nodemcu can't emulate USB in this way so it doesn't work

  • @andymouse
    @andymouse 5 років тому +1

    Very cool, this could be useful...cheers

  • @whatsGyall
    @whatsGyall 10 місяців тому

    how do you do Fn key with this?

  • @TechnoWit3D
    @TechnoWit3D 3 роки тому

    HI Brian .. thanks for the tutorial . it's a very well-documented tutorial. could you make the tutorial for customising shortcut via local web manager ?

  • @Pitchlock8251
    @Pitchlock8251 3 роки тому

    I have a question, can you setup multiple keypad/matrix to one arduino board?

    • @sail4life
      @sail4life 2 роки тому

      you could, but making separate ones is easier. Depending on how many io pins you have left, you could expand the rows or columns and map the extra keys to the new columns or rows.

  • @Enderbro3300
    @Enderbro3300 2 роки тому

    Oh this is exactly what I was looking for. All the other projects use expensive keyboards and shit. I just wanted something for 10 dollars to use for my soundboard. Thank you

  • @sail4life
    @sail4life 2 роки тому

    I just made one for my son's birthday. I bought a numeric keypad, decoded the key matrix (5*6!) and hooked it up. Soldering the USB D+ and D- to the tiny 22 ohm resistors was a PITA, but it works! Saves me a good USB cable. This is so cool, I just might make one for myself too.

  • @lrita7179
    @lrita7179 10 місяців тому

    Very informative video - thank you! You also have a very pleasant voice and are easy to understand.
    I'm going to try programming my keypad for the most common functions I use for the Blender app. If I'm successful, I'll attempt to turn this into a macro pad with 3d printed keys.

  • @flightsimulatorvietnam8593
    @flightsimulatorvietnam8593 Місяць тому

    i can use Arduino uno ?

  • @kalxi1724
    @kalxi1724 3 роки тому +1

    I'm subscribing purely because this man is irish

  • @kirilkirilov2064
    @kirilkirilov2064 3 роки тому

    Can i use arduino mega 2560 for this project?

    • @BrianLough
      @BrianLough  3 роки тому

      Not really, doesn't natively support HID

  • @qzorn4440
    @qzorn4440 3 роки тому

    very, very nice... i would like to control F11 and F12 in Bandicam on an old windows xp computer. thanks a lot...:)

  • @SpaceMarshalGyorni
    @SpaceMarshalGyorni 3 роки тому

    I absolutely love the juxtaposition of your bone-dry tone of voice with the neon-flashing "I'm also very lazy" light effect at 2:09. Really made me laugh.

  • @MindFlareRetro
    @MindFlareRetro 5 років тому

    A great tutorial and crafty use for OBS. I may very well take advantage of this. Very smart. Thanks for sharing.

  • @lpgoodsale3427
    @lpgoodsale3427 3 роки тому

    thanks / excellent video
    May I say a word to those 'Technical' people who post videos :
    Please make the assumption that your watchers are all beginners and they need preliminary details to make things work

  • @virusandtech7788
    @virusandtech7788 4 роки тому

    Hi thanks for your video...i have the same hardware and i am looking to do a similar a similar thing. But as my use case is as a keypad for flight simulations, i need it to send Directx inputs (like joystick buttons) and not keyboard commands. Is there a simple way to do that?Thanks

  • @nedstar7378
    @nedstar7378 Рік тому

    Thanks for sharing this very useful info, just what I needed.

  • @blackcloudstofollow
    @blackcloudstofollow 2 роки тому

    fantastic video, do you know of any way to get the arduino to send media next, media play/pause, etc type messages using the keypad?

  • @sibermak6136
    @sibermak6136 4 роки тому

    I wanna know can I make launchpad with that setup
    I actually make something like that with arduino nano and the code you make is similar but it is not see as usb device so if I change my arduino nano to arduino pro micro can make the think more easier (Sorry I can't explain think I want with english very well)

  • @guirec2458
    @guirec2458 3 роки тому

    I made myself one as my first arduino projet. Thanks for the video and the code ! (That of course I tweaked a little) I made a case for it with custom keys that I designed and laser cut (inspired by 70s sci fi). If you're interested, you can find pictures on Instagram (Ernest Fabrique des Trucs). Anyway, thank you very much !!!

  • @jacobgoodwin6752
    @jacobgoodwin6752 5 місяців тому

    I know this is quite old now, but can you use it to input a string of buttons. to get to the menu I want i need to press alt+n, then the down button 10 times. I purchased a cheap macro pad but can only input 5 buttons per key press which isn't enough.

    • @BrianLough
      @BrianLough  5 місяців тому

      Yeah you can code it do whatever you want! You can do a million clicks if you want 😅

    • @LPvi1
      @LPvi1 2 місяці тому

      Dont know if you still need it, but I just built a keypad and coded what you want. when tested, it correctly registered alt+n and 10 down keystrokes, it took me a bit to get it right since im new to coding, but it was easy to achive with arduino's guide of the keyboard library

  • @t0rion94
    @t0rion94 2 роки тому

    hallo, do anyone know how I can send a keycommand as long as i push the button?

    • @LPvi1
      @LPvi1 2 місяці тому

      i've spent all day trying to figure this out, and still got nothing

  • @hz8711
    @hz8711 3 роки тому

    Seems like this library didn't exist now.

  • @le0d406
    @le0d406 4 роки тому

    Thanks ! (it work for 3*4 matrix you just have 2or3 things to change!)

  •  4 роки тому

    Great project! completed one board today with 3d printed case to come. I was wondering how you would go about launching a program with the arduino, Like your email client or a browser? Thanks for the video!!!

  • @leorusnac
    @leorusnac 5 років тому +2

    nice video, I expected to see it based on the esp32 😅

    • @BrianLough
      @BrianLough  5 років тому +3

      On the todo list!

    • @matthewgaming831
      @matthewgaming831 3 роки тому

      @@BrianLough is it done?

    • @BrianLough
      @BrianLough  3 роки тому +1

      @@matthewgaming831 yes, it's on my channel now
      ua-cam.com/video/4sIkW7wogrE/v-deo.html

    • @matthewgaming831
      @matthewgaming831 3 роки тому

      @@BrianLough awesome. I was not even expecting you to message back most youtubers don't nowadays.

    • @BrianLough
      @BrianLough  3 роки тому +1

      I don't always to be honest, I do most of my social media interaction on my phone when I'm in between doing other things (Right now I'm replying while brushing my teeth before bed 😅) and the youtube studio app on the phone is really not great.
      I reply to people on discord a lot quicker just cause the app is better! (BLoughie/discord if you'd like to join)

  • @azyfloof
    @azyfloof 5 років тому

    How was I not subbed to you?!
    Oh well that was an easy fix :P
    I have an idea for something like this that has changeable overlay cards for the buttons which I can swap out on the fly and which will have printed different characters, macros, strings of text etc.
    I'm looking for something like an array of those metal tact domes, though I might have to build it :O

    • @BrianLough
      @BrianLough  5 років тому

      I might be working on something that fits this description! It's capacitive touch though

  • @AJB2K3
    @AJB2K3 5 років тому

    Nice, I was wondering how to use those keypads for OBS and now I wondering about building a custom keyboard.

  • @filipemecenas
    @filipemecenas 2 роки тому

    Thanks

  • @alanbacknd3120
    @alanbacknd3120 5 років тому

    Very cool, Thanks I've been looking for something like this for a while. Thanks again

  • @rehanurrahmanraihan6053
    @rehanurrahmanraihan6053 4 роки тому

    Can I make one of this with digispark,?????Only 4 button needed

    • @jeffhaas9577
      @jeffhaas9577 4 роки тому

      It's included in the Digispark software - there are several examples out there, just search for "Digispark keyboard".

  • @steveredstone1711
    @steveredstone1711 4 роки тому

    I do wonder if it's possible to use double keys, like CTRL + C. Everybody is doing videos about the single press keys.

    • @BrianLough
      @BrianLough  4 роки тому

      This video has triple keys being pressed (CTRL +SHIFT + F1 etc)

  • @vitorcs34
    @vitorcs34 4 роки тому

    Nice video, thanks!
    Could I use this same library to hook up the keys on the keypad from F13 to F24? Or is it limited only to the keys present in normal keyboards?

    • @BrianLough
      @BrianLough  4 роки тому

      This supports f13-24 if I remember correctly!

  • @AlNexus
    @AlNexus 3 роки тому

    Thanks for the tutorial, I'd rather use real keyboard keys but they are kind of expensive and I couldn't find any membrane ones

    • @jtayefeh
      @jtayefeh 3 роки тому

      3d print one and just place the keypad under it as keyboard switches essentially

    • @TheUnofficialMaker
      @TheUnofficialMaker 2 роки тому

      salvage from an old keyboard

  • @WoolseyCole
    @WoolseyCole 4 роки тому

    just to make sure, this would also work with an Arduino nano, right?

    • @luisfelipehernandez5185
      @luisfelipehernandez5185 3 роки тому

      No, it's because the nano can't be used/recognised as a USB device. This function is fundamental for this type o projects to work the way they should

  • @rezaz3816
    @rezaz3816 3 роки тому

    Great video. Thanks a lot for sharing.

  • @ImnotChuck.
    @ImnotChuck. 5 років тому

    Very helpful. Thanks.

  • @Tw3akst3r
    @Tw3akst3r 4 роки тому

    First, thanks for the video and info.
    Second, I hope you still watch this space and reply. I have no clue what I am doing but thought this looked easy enough to try but it seems I have an error msg. Now I thought I got the same hardware and it looks the same but I had to select LilyPad Arduino USB rather than the Arduino/Genuino Micro so it seems that part I sorted. The thing is thought my layout looks like yours I get an error anytime I attempt to upload to the device. No clue if this is enough info but this is a part of that error.
    note: 'void loop()' previously defined here
    void loop() {
    ^~~~
    exit status 1
    redefinition of 'void setup()'
    Hopefully you have some ideas or can point me to where I might need to learn more of this type error and how I might correct it.
    Thank you.

    • @AlNexus
      @AlNexus 3 роки тому

      Did you fix it?

    • @Tw3akst3r
      @Tw3akst3r 3 роки тому

      @@AlNexus I figure I got a bum board as it wouldn't power on properly so I abandoned the project since I didn't care to order and wait for a replacement.

    • @AlNexus
      @AlNexus 3 роки тому

      @@Tw3akst3r Sad to hear that.

    • @Tw3akst3r
      @Tw3akst3r 3 роки тому

      @@AlNexus At least the boards are really cheap, what has my interest now but I am not yet decided if I will pursue it is a MUCH better-looking option that is still really cheap. www.instructables.com/A-Bluetooth-ESP32-TFT-Touch-Macro-Keypad/?

    • @AlNexus
      @AlNexus 3 роки тому +1

      @@Tw3akst3r Woah, thanks for sending that, looks really nice. Good luck on making that one!

  • @jerril42
    @jerril42 5 років тому

    Thanks Brian, this is great.

  • @deathshaker0026
    @deathshaker0026 5 років тому

    Awesome project!

  • @rvgamingmygames7322
    @rvgamingmygames7322 2 роки тому

    i get 'Keyboard' niet gevonden. Bevindt de lijn '#include ' zich in uw schets?
    error any idea how to fix wana use it for exel copy paste