Arduino keyboard emulator

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2024

Комментарии • 203

  • @KnackiiTM
    @KnackiiTM 5 лет назад +57

    6:18 "well that's interesting" x)

    • @INVINET
      @INVINET 5 лет назад +2

      I just died ahahhaha

    • @Nuvhandra
      @Nuvhandra 4 года назад

      @@INVINET me too haha

    • @donnymontreano2045
      @donnymontreano2045 4 года назад +4

      NB: When you use the Keyboard.print() command, the Leonardo, Micro or Due board takes over your computer's keyboard! To insure you don't lose control of your computer while running a sketch with this function, make sure to set up a reliable control system before you call Keyboard.print(). This sketch is designed to only send a Keyboard command after the board has received a byte over the serial port.

  • @sgtfoose8842
    @sgtfoose8842 6 лет назад +20

    For toggle switches, you always need a int pull-up for debounce. I use this code:
    #include
    const byte switchPin = 8;
    byte oldSwitchState = HIGH; // assume switch open because of pull-up resistor
    const unsigned long debounceTime = 10; // milliseconds
    void setup ()
    {
    Serial.begin (9600);
    pinMode (8, INPUT_PULLUP);
    } // end of setup
    void loop ()
    {
    Keyboard.begin();
    // see if switch is open or closed
    byte switchState = digitalRead (switchPin);
    // has it changed since last time?
    if (switchState != oldSwitchState)
    {
    oldSwitchState = switchState; // remember for next time
    delay (debounceTime); // debounce
    if (switchState == LOW)
    {
    Serial.println ("Switch closed.");
    Keyboard.press('a');
    delay(100);
    Keyboard.releaseAll();
    } // end if switchState is LOW
    else
    {
    Serial.println ("Switch opened.");
    Keyboard.press('b');
    delay(100);
    Keyboard.releaseAll();
    } // end if switchState is HIGH
    } // end of state change
    // other code here ...
    } // end of loop

  • @JudgeD-hc9vw
    @JudgeD-hc9vw 5 лет назад +2

    I have been looking all over for this. Finally found it, Thank You. I will be using button presses to send to Excel for specific information. One button send +1/2, another may send -1/4. All my buttons have fixed output needs to populate specific cells of a spreadsheet. I may also need arrow key controls to move about the spreadsheet using the Arduino.
    Thanks again!

  • @KNO3Arts
    @KNO3Arts 5 лет назад +10

    This is very helpfull to me.
    I'm tying to generate "Keystrokes" in response to certain (electronic) actions.
    Up till now I could not find a device which can do just that. Even more fun that is its integrated in an Arduino.

  • @AlfredoTalamantes
    @AlfredoTalamantes 3 года назад +1

    Thank for your video. This helps choosing the correct micro controller for an automated Chromebook enrolling centipede. 32u4 chip for keyboard emulation is what I need.

  • @anthonykoeslag
    @anthonykoeslag 4 года назад

    Thank you! this was exactly what I was looking for. In your intro you answered all my questions, really a big thank you

  • @danielungureanu430
    @danielungureanu430 6 лет назад +21

    In this video you start explaining the role of the direct USB interface of the processor. But, later, you just show us how you receive the keyboard text via rs232 channel. Your example can be implemented on any Arduino (even Uno), but the main challenge was to create an USB keyboard. It should work in any text input app, without starting the rs232 channel. Also, you should seen a "generic HID" in the Device Manager.

    • @accuxpert2277
      @accuxpert2277 5 лет назад +5

      Absolut right! That's exactly why I wonder ....

    • @RichardDTube
      @RichardDTube 5 лет назад +5

      @@accuxpert2277 No! It was the serial monitor, but the text appeared in the textbox where you type stuff to go TO the Arduino.

    • @jceggbert5
      @jceggbert5 4 года назад +4

      @@RichardDTube correct, that was just the most convenient text box that he had available.

  • @Deadgray
    @Deadgray 5 лет назад +3

    Just needed to know which Arduinos work with Keyboard.*() and you made that very well :-)

  • @MrSupergumpi
    @MrSupergumpi 4 года назад

    Wow I think you have solved a headache, built an arcade machine but needed default keybaord actions for escape, and certain numbers which are default keybaord commands for MAME for things like add coin, player 1 start etc. Ordered a couple of these to try.

  • @graham287
    @graham287 4 года назад +1

    Great idea. I'm going to use it to re-wire an old Simulator Yoke I have stored so I can operate flight simulation software that uses keyboard commands. Thanks.

    • @graham287
      @graham287 4 года назад

      Got a feeling that you have used a Nano in the video. Before I buy the Mini Pro, which doesn't have a USB on the dev board, or the Leonardo Pro Mini, which does have a USB, will a Nano do the job?

    • @jcarrandson
      @jcarrandson 4 года назад

      @@graham287 You just need to make sure the board you have/get has a 32U4 chip. I'm also doing the same, building a (very) basic cessna cockpit so I can cold start from switches rather than the keyboard for a bit of added realism.

  • @vectorchan5647
    @vectorchan5647 5 лет назад +9

    Good enough to get me started.

  • @mattyferg9472
    @mattyferg9472 2 года назад

    Is it possible to do this however with a potentiometer. For an example once a potentiometer reaches a certain value it simulates pressing the key ‘W’?

  • @joe-blow1613
    @joe-blow1613 6 лет назад +2

    im confused,..the red wire doesnt seem to go anywhere to me, i see it supose to be positive but im not seeing no wires that are hooked to it so whats red wire hooked to?

    • @gearyae
      @gearyae 4 года назад

      For future reference, the red wire is not used, but appears to be left over from previous examples.

  • @korenucl3646
    @korenucl3646 3 года назад +1

    Would this be perceived by the PC exactly as if you were to type on a regular keyboard? (Not a synthetic input like what Autohotkey or pyautogui generates?)

  • @vasantnehete3459
    @vasantnehete3459 4 года назад

    explained in most simple , cool way so one can digest what he wants to convey

  • @ematech
    @ematech 5 лет назад +4

    how to emulate keypress F1? and key combination like ctrl + alt? and with a potentiometer emulate key left right changing?

  • @elitehadock69420
    @elitehadock69420 5 лет назад +1

    hey im getting this error message:
    exit status 1
    'Keyboard' not found. Does your sketch include the line '#include '?
    i did include the line '#include ' and even spellchecked it but it still doesn't work! could you please help?
    EDIT: i figured it out i had the wrong board selected!

    • @ronkloiber
      @ronkloiber 5 лет назад +1

      I get this error as well. Anyone have some help ??

    • @MasoodOfficial
      @MasoodOfficial 4 года назад

      it only works with arduino mini or leonardo arduino.stackexchange.com/questions/57581/keyboard-h-not-found forum.arduino.cc/index.php?topic=346139.0

    • @elitehadock69420
      @elitehadock69420 4 года назад +1

      @@ronkloiber make sure you have the correct board selected and also make sure you have a compatible board in the first place! (Leonardo,Pro micro,due i think, something else maybe)

  • @ronkloiber
    @ronkloiber 5 лет назад

    One nice feature of this would be a secure login device. If you add a fingerprint reader (and maybe more buttons) you could read the fingerprint which would then allow you to press one of the buttons to send a user/password to the host (PC, MAC, Chromebook ??? ). I'm looking for just this type of device. I have to access hundreds of computers on a network (with the same user/password) all day, so typing these in is a pain... It would also be nice to easily be able to change the fingerprint and button codes without having to modify and download the sketch.

  • @matejhantabal235
    @matejhantabal235 5 лет назад

    Thanks for the sketches bro!

  • @ernststravoblofeld
    @ernststravoblofeld Год назад

    If you press buttons, and the computer receives keypresses, it's a keyboard. I don't see where the word "emulation" comes into it.

  • @carpenterfamily6198
    @carpenterfamily6198 5 лет назад

    I did this - Built HID Keyboard from Pro Micro 5v, using the SparkFun sample code. It works great on my local computer, but when I Remote Desktop into another computer, here on my local home network, then - randomly - any upper case characters may change to lower case, but others won’t. Rerunning the code it may not happen at all, or it will happen to different upper case characters in the string. Lower case characters are no problem, they always stay lower case.

    • @carpenterfamily6198
      @carpenterfamily6198 5 лет назад

      I found this “
      When sending capital letters, Keyboard.write() sends a shift command plus the desired character, just as if typing on a keyboard.

      That’s exactly what appears to be happening in my case. It’s like some of the ‘shift’ keystrokes are missing.
      www.arduino.cc/en/Reference/KeyboardWrite

    • @carpenterfamily6198
      @carpenterfamily6198 5 лет назад

      [ FIX ] = SparkFun Pro Mirco 5v HID Keyboard code worked on local computer, but when connecting to another computer via Windows RDP Remote Desktop - it failed.
      Randomly any capital characters may appear in their lower case form - For example A = a or $ = 4 You get the idea, any 'uppercase' key that would require a SHIFT key when typed manually by a human.
      So it appeared the SHIFT key was being randomly dropped when using RDP.
      I read somewhere that Keyboard.write sends a SHIFT first whenever sending a capital character.
      Then I read in the old days - the way to manually do this was to use Keyboard.Press to hold down the SHIFT key then send the lower case letter - in order to get the upper case version of the letter.
      BUT that the Keyboard.Press SHIFT - > HAD < - to be followed by at least a 25 msec delay before the next character was sent.
      So, to get this to work, that's what I did - but I made my delays 35 msec's . . . Why ? Cuz I ain't in no hurry - I just want the damn thing to work !!!
      Example = To get " ! " character :
      Keyboard.press(0x85); //Shift Key
      delay(35); // Needed b/f next character is sent.
      Keyboard.press('1'); // Doing it this way to ensure RDP gets it capitalized. In this case a ' ! '
      Keyboard.releaseAll(); // If you don't Release All, then all subsequent characters are also capitalized.
      My apologies to the Arduino Code Artisans. I'm sure there is a much more efficient and elegant solution.
      You're comments are welcome - make me a better 'programmer!'

    • @carpenterfamily6198
      @carpenterfamily6198 5 лет назад

      I will research the syntax for Keyboard.h perhaps the user can define the delay between each character. And in particular the delay following SHIFT, before the next character is sent. That would be good.

  • @accuxpert2277
    @accuxpert2277 5 лет назад +1

    You use a serial monitor there, as if only one COM port is emulated by USB ...
    Have I misunderstood something or can you also open Microsoft Word and enter the text there? Because if it is a HID device that must go with ANY text input, including Word or Excel, or not?
    Thank you for a clarifying answer.

    • @learnelectronics
      @learnelectronics  5 лет назад +1

      Yes, you can use it with word

    • @accuxpert2277
      @accuxpert2277 5 лет назад

      @@learnelectronics Thanx for your fast reply. That means this is a real HID-Device that I can find under the "Device Manager" from Windows?

    • @learnelectronics
      @learnelectronics  5 лет назад +1

      You are correct. It's been a while since Ive done it, but I believe it shows up as a keyboard.

    • @accuxpert2277
      @accuxpert2277 5 лет назад

      @@learnelectronics Thanx a lot, Sir. I thing, I have to build one device for my keyboard project ...

  • @MONKEY-vi7hx
    @MONKEY-vi7hx 5 лет назад +1

    Why do you need the VCC port (red cable), it leads to nothing? This video was useful to me (THANKS) However my circuit works perfectly without the unecessary red cable.

  • @cadenisconfused
    @cadenisconfused 2 года назад

    how would i go about holding down a button and the button doesnt just turn on and off but instead get held (im using this for making a gaming keyboard)

  • @davidklueger4845
    @davidklueger4845 6 лет назад +1

    This is so helpful. Thank you so much.

  • @Marcin79W
    @Marcin79W 3 года назад

    So, if I'd program it like that and plugged into PC, would it print these characters or quote?

  • @TheDrunkenPL
    @TheDrunkenPL 4 года назад +2

    Great tutorial. Btw is that possible to use the same thing but apart from using momentary button use state ones (that will detects state change)?

  • @richardwind5691
    @richardwind5691 3 года назад

    Do you have any experience with Centipede? I am getting a headache with the needed script changes for v90+ Chrome OS. In any regard, it could be more user-friendly. The company does not support the 'free' code.
    The keyboard emulator tabs to add the WiFi key, then tabs to Enterprise Enrollment, waits 15-30 seconds for updates. Then, it tabs through a few screens and unclicks a checkmark for sending information to Google. Then, it adds the username and password for enrollment, waits for a small amount of time for the enrollment to complete, and clicks 'done'.
    I'm currently using a clone off Amazon, the OSOYOO Pro Micro ATmega32U4 5V/16MHz Module Board with 2 Row pin Header Replace with ATmega328 Pro Mini for Arduino.

  • @Simon-ox4zu
    @Simon-ox4zu 3 года назад

    Is there a way to send LEFT and RIGHT?
    UPDATE:
    www.arduino.cc/en/Reference/KeyboardModifiers
    there are the hex codes

  • @flo6119
    @flo6119 4 года назад +1

    Did you use the 3.3v or the 5v variant?

  • @MrBetos007
    @MrBetos007 3 года назад

    what if i have an arduino nano, what do i have to do in order to make it work as an USB HID?

  • @johannesdoner8802
    @johannesdoner8802 Год назад

    hello, where can i find the hex values for example "alt"

  • @truesircat4448
    @truesircat4448 3 года назад

    how can i make it press a button instead or like.. writing it? like can i make it press "ctrl+c" for example

  • @sergeleenders6122
    @sergeleenders6122 2 года назад

    Helpfull, thanks !
    I would like to try but I can only get arduino nano. Would that work? No compatibility problem?

  • @kushalgawande7006
    @kushalgawande7006 4 года назад

    Please tell me that how to build a program in which if I press letter A from laptop then my servo should move 60 degree

  • @yacineyaker7485
    @yacineyaker7485 5 лет назад +1

    How to make it wirless using HC-05 module ?

  • @mahroosalimi3449
    @mahroosalimi3449 3 года назад

    I tried this, but the computer crashes! how do I stop that?

  • @nexus1635
    @nexus1635 2 года назад

    Seems like my pc cant find my pro micro port, do I need to download a driver or something?

  • @eternytime1282
    @eternytime1282 5 лет назад

    Cannot find the board with ATMega43u4 chip , I only find ATMEGA32U4 Pro Micro Arduino

  • @omsingharjit
    @omsingharjit 4 года назад

    Does this keyboard works without serial monitor , for typing text on pc ?

  • @rumbachumba330
    @rumbachumba330 5 лет назад +1

    2 questions,
    is it possible to integrate mouse+keyboard in the same board? I've already seen the mouse video
    Is it possible to do something like 2 buttons at the same time give you a different letter? for example something like if (digitalRead(3,4) ==0) Keyboard.write ('W')? or what would the code look like, if possible, I'm new to this

    • @Goku17yen
      @Goku17yen 5 лет назад

      yes and yes, joystick u need a new library and then for the second you need to combine them both into one code

  • @blurycode
    @blurycode 5 лет назад

    I guess the keyboard.end command is my problem. As soon as I connect the Arduino to my computer, it starts typing and the mouse wheel function is screwed up.There's no way I can stop it. I tried to re upload an example sketch, jump pins to the ground etc. without success. Is there a way to start anew with the micro pro board or it's too late?
    edit: Forgot to mention that TX LED stays on.

  • @pranavsathi6709
    @pranavsathi6709 3 года назад

    How can we connect a rotary encoder to the same?

  • @SCARECROM
    @SCARECROM 6 лет назад

    im making my own sampler board for my dj setup (i want controller + samplers board); this video is the most usefull on youtube :p

  • @elfwing
    @elfwing 7 лет назад

    Awesome ... super useful!
    Since making this request I was able to get it sort of started ... but the code I used looks nothing like this one!
    Mainly cause I found a pre made code with a slightly different purpose than what i wanted, that I managed to modify to work ...
    But this code looks a lot better ... thank you!
    I will set this up ... and will probably have some follow up questions (if you do not mind) ... :)
    I have one already ...
    Can I use all the "pins" for this or are they different?

    • @learnelectronics
      @learnelectronics  7 лет назад

      w1der I'm glad it was helpful. you can all the pins you like. and if you have more questions you know where to find me. 😀

    • @elfwing
      @elfwing 7 лет назад

      OK ... got it working (struggled a bit until I found that my breadboard has some issues) ...
      What if I wanted to setup one button as a "shift" or "ctrl" ... and ones that is pressed it waits for me to press the next button (and combines those two in to one "command") ... is that possible?

    • @learnelectronics
      @learnelectronics  7 лет назад

      w1der totally possible, I don't know the hex codes off the top of my head, but just Google Windows keyboard hex codes. as for multiple key combinations... you use keyboard.press(hex code), then keyboard.write(char), then keyboard.release(first hex code)

    • @LeoTakacs
      @LeoTakacs 7 лет назад

      An easier method is to use the Ducky Script to Arduino converter. Ducky Script is a coding language meant for the USB rubber ducky but there are quite a few converters out there on the netz' to convert the extremely-easy-to-learn Ducky Script into Arduino compatible code.
      So instead of
      #include
      void setup(){
      Keyboard.begin():
      }
      void loop(){
      delay(1000);
      Keyboard.print("Hello!");
      }
      You'd have:
      DELAY 1000
      STRING Hello!

  • @JoseHernandez-do1bj
    @JoseHernandez-do1bj 3 года назад

    The programmed seemed to upload correct and I wired it according how you displayed it. I got notification that the arduino converted to a keyboard usb, but when I tried clicking the button it has no output. I'm not sure if my arduino is defective since it has a solid red light instead of the green light. I would appreciate some feedback. Thank you in advance.

  • @CoolMcGamer123
    @CoolMcGamer123 6 лет назад

    moustafa refaat where does the red positive wire go to? I'm going to hand wire this, and I don't get how to wire this to mechanical switches.

    • @CoolMcGamer123
      @CoolMcGamer123 6 лет назад

      Please I really need to know where to put the red positive wire connect to?

    • @Ronitrocket
      @Ronitrocket 5 лет назад

      @@CoolMcGamer123 5v

  • @f.l846
    @f.l846 3 года назад

    is it posible to use the F13-F24 buttons?

  • @jariroseleth3855
    @jariroseleth3855 4 года назад

    is the maximum amount of possible buttons then 16 on a pro micro. i want to make a buttonbox for simracing.

  • @pernu6477
    @pernu6477 5 лет назад

    Excellent video. One question it why is the red wire in the setup? It appears to be irrelevant.

  • @attilavarga346
    @attilavarga346 3 года назад

    Nice! Its helped me! :) But can u make a video how i can use a lenoardo to emulate keyboard with potentionmeter?

  • @moustafarefaat6155
    @moustafarefaat6155 7 лет назад +9

    i did every thing u said it give this msg (exit status 1
    'Keyboard' not found. Does your sketch include the line '#include '?) what should i do and im working with arduino leaonardo !

    • @learnelectronics
      @learnelectronics  7 лет назад +1

      it's not finding the library

    • @moustafarefaat6155
      @moustafarefaat6155 7 лет назад

      that happing when i try to upload

    • @moustafarefaat6155
      @moustafarefaat6155 7 лет назад

      so what should i do to make it find it ?

    • @moustafarefaat6155
      @moustafarefaat6155 7 лет назад

      how i can solve the library problem ?

    • @learnelectronics
      @learnelectronics  7 лет назад +1

      I can't help you there. I know nothing of your computer setup, what IDE you are running etc. Paste the error message into a search on Arduino.cc

  • @zacmitchell_1984
    @zacmitchell_1984 3 года назад

    Can this be made to work with the PS/2 keyboard port?

  • @jay-tbl
    @jay-tbl 4 года назад

    How would I do something similar with an UNO?

  • @LuisGamer-or9gc
    @LuisGamer-or9gc 5 лет назад

    anyone know how to do only one key per click, i don't want a keystroke, and i also don't want to have a delay of 1 second, i want it just like an actual keyboard, is that possible?

  • @Skeletal_Interface
    @Skeletal_Interface 4 года назад

    how would you set up the shift ctrl and alt keys as modifier keys

  • @mcw0530
    @mcw0530 5 лет назад

    How could we use this setup to test (send) USB HID scan codes on a PC to see if they work?

  • @ken7481
    @ken7481 3 года назад

    why you show a video of something not working

  • @f.l846
    @f.l846 3 года назад

    how many buttons can use with it?

  • @AmeanAbdelfattah
    @AmeanAbdelfattah 7 лет назад

    Were you recording near an ambient engine?

  • @mischakis
    @mischakis 5 лет назад

    Keyboard library for Arduino for all languages and keys mapping
    search on github KeyboardMultiLanguage library
    This library allows an Arduino board with USB functions to act as a keyboard. The following languages are integrated: English, German, Russian, French, Greek, Hebrew, Italian, Georgian

  • @emergc
    @emergc 7 лет назад

    Hi, thank you for answering my question. I will try to find a local vendor and buy a Pro Micro. Thank you once again :)

    • @learnelectronics
      @learnelectronics  7 лет назад

      RandomDeviation no problem

    • @emergc
      @emergc 7 лет назад

      Hi. I already have the right device. I was able to compile a script and upload it. My problem now is that the GUI r command does not seem to work and hence I cannot send commands to Windows to run a program like Notepad or cmd.exe. I can only see the output of the STRING command on whatever active window that has a text area. I already tried searching the internet for answers. TIA

  • @MasoodOfficial
    @MasoodOfficial 4 года назад

    Plugging it into random windows PC do i need to install any special driver or Arduino IDE itself or it runs without any requirement like normal keyboard.

    • @gadhagod3387
      @gadhagod3387 4 года назад

      Works just like a usb keyboard

  • @charnjit525
    @charnjit525 6 лет назад

    There are only modifier key's name on arduino page. Where can I get key's name function of All keys of keyboard????? Like all alphabet keys, all number keys, all numeric keys, ,,,,,,,,,, I mean total keys,,,,, please give help?????

  • @chintanjagtap3262
    @chintanjagtap3262 6 лет назад

    help me please... after 1st time uploading program(hello world) it is working but now i want to connect to PC again it is showing "Unknown USB" device

  • @elfwing
    @elfwing 7 лет назад

    Hello again ...
    I am still working with (struggling a bit) with my button box project, which I managed to build thanks to your clip!
    I got it working, but not exactly how I want it to work.
    Been looking around at different YT clips to find a solution but most of them does not explain exactly "how to do it", they only show the possibility to do it and leaves me clueless on how to accomplish it.
    With this setup, I have run out of available pins on my card.
    I have found a few clips that shows the possibility to use an analog pin (to red the input voltage) setting up the switches, in series, using resistors in between them ... and based on the reading on the pin you can set it to send different keystrokes.
    Is this setup possible to accomplish with this card, or does it only work with the "UNO"?
    If it is possible ... how do I do it? ... :)

    • @learnelectronics
      @learnelectronics  7 лет назад

      You can certainly use the analog inputs as digital inputs. Just use a digital read instead of an analog read. nothing else special required.

    • @fpv_am
      @fpv_am 7 лет назад

      а для винды какие драйфера нужны чтоб она признавала контроллер как юсб устройство мышь и клаву???

    • @xenoshade8997
      @xenoshade8997 6 лет назад

      did you ever figure this out? if not i can help you with it, just let me know!

  • @disappointingburrito7298
    @disappointingburrito7298 6 лет назад

    I plan on making a 7 key pad out of mechanical keyboard switches to act as a little macro pad/game pad. Six of the buttons will be used as a game controller but is there any way to code the 7th so that when pressed it changes all of the keys to a different function. So they could be wasdqe one minute and cut copy paste etc the next? And then press to change back after? Thanks

    • @learnelectronics
      @learnelectronics  6 лет назад

      Yep there is a press code and a release code

    • @disappointingburrito7298
      @disappointingburrito7298 6 лет назад

      learnelectronics what and I wouldn’t have to hold it to access the alternate features? I’ll lookup this code if you don’t know it off the top of your head but thank you

  • @himmetsumer6976
    @himmetsumer6976 3 года назад

    Cen we write any where or just serial monitor

  • @ChopLabalagun
    @ChopLabalagun 3 года назад

    dude this is interesting, can i hook a bluetooth module and configure it to conenct to a real bt keyboard and stream all the keystrokes into the computer making the computer think that the keyboard is connected as USB?
    i want this to have KB access on bios and to emulate other keyboards like microsoft or logitech that their bluetooth dongle works all the time not only on windows.
    hope it makes sense.

  • @kungpow8062
    @kungpow8062 7 лет назад

    When I set everything up my middle button function just spams, I've checked for shorts but found none

    • @learnelectronics
      @learnelectronics  7 лет назад

      Nathan Caggiano sounds like it's bouncing

    • @kungpow8062
      @kungpow8062 7 лет назад

      It seems that just holding the board while its on causes my middle command to trigger, this is without the switches connected

    • @learnelectronics
      @learnelectronics  7 лет назад

      Nathan Caggiano if that's the case, you are coupling somewhere causing the signal to switch. that's a hardware issue. have you tried switching to different pins? that way you can narrow it down

    • @kungpow8062
      @kungpow8062 7 лет назад

      I've tried switching the pins and I've tried a completely different pro micro

    • @kungpow8062
      @kungpow8062 7 лет назад

      I do appreciate your help by the way.

  • @TomFoolery9001
    @TomFoolery9001 7 лет назад

    how would you send "cntl alt del" or "alt f4" from just one button press?

    • @learnelectronics
      @learnelectronics  7 лет назад +2

      Ctrl-Alt_del would be:
      keyboard.press(0x80);
      keyboard.press(0x82);
      keyboard.press(0xD4);
      keyboard.releaseAll();

  • @qureshiowais6951
    @qureshiowais6951 4 года назад

    Does atmega328p work?

  • @buder5116
    @buder5116 4 года назад +1

    1:56 yeah im freekin piss i got a uno and can't do anything that i need now

    • @buder5116
      @buder5116 4 года назад

      search for unojoy
      great alternative for gamepad with was what i trying todo

  • @walkerdick3685
    @walkerdick3685 5 лет назад

    Do you know a good place where I can buy these components in a kit?

  • @franklee4598
    @franklee4598 4 года назад

    Instead of keyboard.print(), why not make an if-else where if the button is pushed, keyboard.press('a') and else, keyboard.release('a')? I found out myself that the keyboard.print() function doesn't really do well when run in certain games, plus we don't need the delay() anymore

  • @hanniballecture
    @hanniballecture 6 лет назад

    What is the command for the Leonardo to hit an arrow key?

    • @disappointingburrito7298
      @disappointingburrito7298 6 лет назад

      Hannibal Lecture did you figure this out? I want to make a mini keypad to play Tetris online with before I make a 3D version on an led cube which requires arrow keys

  • @Zynfinity
    @Zynfinity 7 лет назад

    Which costs more? UNO or Leonardo?

    • @learnelectronics
      @learnelectronics  7 лет назад

      Zynder Malban the Leonardo is more expensive, but the uno can not do keyboard emulation

    • @DrexProjects
      @DrexProjects 5 лет назад

      @@learnelectronics Yes you can github.com/BlitzCityDIY/arduinoMacroKeyboard

  • @mtli5040
    @mtli5040 7 лет назад +2

    Why vcc need to connect the positive?

    • @learnelectronics
      @learnelectronics  7 лет назад

      +MT Li because the Arduino does not do negative voltages

    • @mtli5040
      @mtli5040 7 лет назад +1

      thank you for your reply, but what connect to your positive side on your breadboard then? i could not tell by just watching the video. thank you

    • @thorbjrnhellehaven5766
      @thorbjrnhellehaven5766 6 лет назад +2

      My guess: Probably just a habit, in case you need it, but this project seems to only use GPIO-output, and GND.

  • @dhruvbhilare6676
    @dhruvbhilare6676 4 года назад

    can anyone help me plz i m getting some errors

  • @MacaroniLove
    @MacaroniLove 7 лет назад

    Hi, would that setup wake up a computer from sleep if you press a button like a real keyboard would?

    • @learnelectronics
      @learnelectronics  7 лет назад

      Patrick Huard the computer sees no difference between this and a USB keyboard. the signals are the same.

    • @MacaroniLove
      @MacaroniLove 7 лет назад

      I am asking because I tried something really similar with a Digispark, which use a Attiny85 chip. The result is similar, in the device manager Windows sees it as a regular keyboard, so in theory it should work (and it does work perfectly while Windows is running). However, as soon as the computer goes in sleep mode, even if the chip is still powered by the USB port, it won't wake up the computer. A real keyboard will wake it up just fine.
      that's why I am asking you if that particular board can wake up a computer from sleep.

    • @learnelectronics
      @learnelectronics  7 лет назад

      Patrick Huard I can't give you 100 per cent

  • @christopherlawes9286
    @christopherlawes9286 3 года назад

    Could you do this to press a button connected to Arduino and it enters Windows 10 login password?

    • @learnelectronics
      @learnelectronics  3 года назад

      Yes

    • @christopherlawes9286
      @christopherlawes9286 3 года назад

      @@learnelectronics Awesome! I will give it a go (prob with ESP32 as I have them already). Thanks for your speedy reply. A 5 year old video where you reply to a comment in 1 hour, really impressive!

    • @learnelectronics
      @learnelectronics  3 года назад +1

      I read 'em all!✌️

  • @sharkyfive
    @sharkyfive 7 лет назад +1

    Hello I wanted to ask if you could make this with a rotary encoder with Volume up, Volume down, Mute/Unmute or Fast Forward, Rewind, Start/Stop
    or with a Button Skip a song or

  • @vishalgaurav4411
    @vishalgaurav4411 6 лет назад

    Would it write the same on a text editor too ?

  • @palashpalpattuwar87
    @palashpalpattuwar87 6 лет назад

    Thank you very much sir for this video. As I am using nodemcu as my development board, I am getting error messages when I am compiling this code. I think it has to do with 32u2 chip. Sir, is there any other way to assign the buttons specific characters and functions?
    Please help me.

  • @master138
    @master138 4 года назад

    Could you plz make a video about how to emulate ps2 keyboard as a device.(Like this but with ps2 protocol)

  • @charnjit525
    @charnjit525 6 лет назад

    Thank you for tips, how many maximum buttons can be connected to arduino Pro micro board ????? ,, can we use some buttons for keyboard keystroke & some for mouse moving, clicking, dragging on (x, y) position on pc screen??????

    • @learnelectronics
      @learnelectronics  6 лет назад

      +CHAR NJIT Hi, there it's no maximum limit. And yes, you can mix it up between mouse and keyboard comments in the same sketch.

    • @charnjit525
      @charnjit525 6 лет назад

      Can l connect it 20 buttons for different keyboard and mouse output??????? Or 12 buttons???

    • @learnelectronics
      @learnelectronics  6 лет назад

      +CHAR NJIT you can connect it to as many inputs as you have available. Or use some sort of multiplexing to add as many as you want. The only hard limit is memory size.

  • @maronilabuni5935
    @maronilabuni5935 4 года назад

    Is it work with nano or mini

  • @georgesar2116
    @georgesar2116 3 года назад +1

    please i want some help

  • @danielghani3903
    @danielghani3903 Год назад

    then the ai did its job. Just like what it is programmed to do. you can never run.

  • @shoaibakhtar2484
    @shoaibakhtar2484 5 лет назад

    Does it work with pro mini ?

  • @anedosugov
    @anedosugov 7 лет назад

    very helpful! could you also give some tips on emulating a mouse? thanks!

    • @learnelectronics
      @learnelectronics  7 лет назад +1

      Alex Fisherman yes sir, look for a mouse tips video in a few days. and thanks for the suggestion. keep them coming.

    • @moustafarefaat6155
      @moustafarefaat6155 7 лет назад

      thx !!

  • @Keremgamer
    @Keremgamer 5 лет назад

    does it works on games too

  • @gokhanzengin3295
    @gokhanzengin3295 6 лет назад

    is it works with clone pro micro

  • @reddy_dhruva
    @reddy_dhruva 6 лет назад

    Can I make it on a pro mini

  • @vishalgaurav4411
    @vishalgaurav4411 6 лет назад

    1:06you said it is 'nano' ?

    • @rattatteb
      @rattatteb 5 лет назад

      Well it's a pro micro obviously.

  • @imalshamaduvantha6070
    @imalshamaduvantha6070 5 лет назад

    Can i une arduno mega 2560 board

  • @ridhikqoirion9816
    @ridhikqoirion9816 6 лет назад

    can i make emulated keyboard with andruino for button keyboard like alphabetic , numpad 0-9?? because i need for my project queue
    it's need assemble leanguage number of keyboard or else ??
    can you make a full tutorial
    and after finish that my own diy keyboard are p2p on other computer that does'nt need to install other driver or software ..
    sorry for my bad english iam from indonesia

  • @TMCHL
    @TMCHL 7 лет назад

    thanks!

  • @aimless3827
    @aimless3827 7 лет назад

    I gave you a thumb up. and please upgrade your computer.

    • @learnelectronics
      @learnelectronics  7 лет назад

      Soon as the big RUclips starts rolling in. Thanks for thumbs up!

  • @reddy_dhruva
    @reddy_dhruva 6 лет назад

    Plz msg fast