Control your keyboard with Arduino! Automate simple tasks!

  Рет қаралды 65,012

Programming Electronics Academy

Programming Electronics Academy

2 жыл бұрын

🤩 FREE Arduino Crash Course 👇👇
bit.ly/get_Arduino_skills
Want to learn more? Check out our courses!
bit.ly/3k8kI0u
We designed this circuit board for beginners!
Kit-On-A-Shield: amzn.to/3lfWClU
**Get your Free Trial of Altium PCB design Software**
www.altium.com/yt/programming...
SHOP OUR FAVORITE STUFF! (affiliate links)
---------------------------------------------------
Get your Free Trial of Altium PCB design Software
www.altium.com/yt/programming...
We use Rev Captions for our subtitles
bit.ly/39trLeB
Arduino UNO R3:
Amazon: amzn.to/37eP4ra
Newegg: bit.ly/3fahas8
Budget Arduino Kits:
Amazon:amzn.to/3C0VqsH
Newegg:bit.ly/3j4tISX
Multimeter Options:
Amazon: amzn.to/3rRo3E0
Newegg: bit.ly/3rJoekA
Helping Hands:
Amazon: amzn.to/3C8IYXZ
Newegg: bit.ly/3fb03X1
Soldering Stations:
Amazon: amzn.to/2VawmP4
Newegg: bit.ly/3BZ6oio
AFFILIATES & REFERRALS
---------------------------------------------------
►Audible Plus Free trial: amzn.to/3j5IGrV
►Get LastPass: lastpass.wo8g.net/b3N1vk
►Join Honey- Save Money bit.ly/3xmj7rH
►Download Glasswire for Free:bit.ly/3iv1fql
FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: / programmingelectronics...
Twitter: / progelecacademy
Website: www.programmingelectronics.com/
**About Us:**
This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
**We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

Пікірлер: 149
@paparoysworkshop
@paparoysworkshop 2 жыл бұрын
I got the perfect use for this. Because I have arthritis, playing games on my computer can be difficult and I was thinking about building an input device where I can comfortably place my hand in its natural position and then operate buttons that would be mapped to the keyboard. I was initially planning to use the chip from an old keyboard and build an appropriate matrix, but I think this will be not only easier, but modifiable as well. Thank you so much for this video. I've used an Arduino for many projects, but never played with these libraries.
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Very cool application Roy - good luck on the build!
@watch54
@watch54 2 жыл бұрын
MickeyMouse!!!!! hahahahahhahahahahhahahahah 2:40
@varickveit2245
@varickveit2245 2 жыл бұрын
Happy to see you still making videos. Quality content.
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks a ton!
@edgarbonet1
@edgarbonet1 2 жыл бұрын
A couple more small remarks: 1. @17:07 you say that Keyboard.write() prints ASCII. Actually, this is just a shortcut for press() followed by release(), so it can hit any key you want, like, e.g., Keyboard.write(KEY_PAGE_DOWN). 2. @19:19 you write Keyboard.print("clear"); Keyboard.press(KEY_RETURN); Keyboard.release(KEY_RETURN); This can be simplified to Keyboard.println("clear"); As println() is just print() followed by hitting the Return key.
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks for this!
@frazier283
@frazier283 2 жыл бұрын
Great tutorial. Can I add if you find yourself in a keyboard/mouse runaway situation you can press and hold the reset button on your Arduino, the Arduino sketch won't run while the button is held in. Click load on your IDE and simultaneously release the reset button.
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks a ton for posting that Scott!
@YashJain-qh5tn
@YashJain-qh5tn Жыл бұрын
Can i use arduino nano or uno😢
@NguyenTastic
@NguyenTastic 2 жыл бұрын
This was very helpful, thank you!
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Glad it was helpful! Thanks a ton for watching!
@jacobwigent1931
@jacobwigent1931 2 жыл бұрын
Great tutorial! I love it
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks so much! It’s a fun library to work with.
@WayneMcNab
@WayneMcNab Жыл бұрын
Very very good tutorial! Thank you!
@programmingelectronics
@programmingelectronics Жыл бұрын
Thanks Wayne!!
@laygoman7547
@laygoman7547 2 жыл бұрын
Love your videos. Thank you for helping
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks!
@johnm4962
@johnm4962 11 ай бұрын
love this video exactly what i needed !!!!!!!
@programmingelectronics
@programmingelectronics 11 ай бұрын
Great! Good luck on your project John!
@anvarjonovb
@anvarjonovb 6 ай бұрын
That's cool Bro!!! Thanx a lot!!
@programmingelectronics
@programmingelectronics 6 ай бұрын
Thanks for watching!
@sdwsom4287
@sdwsom4287 2 жыл бұрын
Cool i got an idea. I would connect that to a wifi board the i will be able to upload sketches over the air from the cloud. So now i can control many of the smart displays like showing and typing things on them. All from my control room! Thanks mate.
@runargundersen2310
@runargundersen2310 2 жыл бұрын
This is great :)
@TOMTOM-nh3nl
@TOMTOM-nh3nl 2 жыл бұрын
Thank You
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks a ton for watching - I hope you found it helpful!
@cschmitz
@cschmitz 2 жыл бұрын
Nice head's up on those library gotchas. Def good to know before diving in to a project
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks! I was struggling to figure out what was up when using those functions
@cschmitz
@cschmitz 2 жыл бұрын
@@programmingelectronics I def feel you. That was def an "ugh, relatable!!" part of the video. I've def felt that sting before :)
@edgarbonet1
@edgarbonet1 2 жыл бұрын
Regarding begin() and end(): the purpose of these methods is to future-proof your sketch. If you use them as suggested by the documentation, your sketch should be compatible with future versions of the library. This means: never use another method before begin() nor after end(). Do not assume print() before begin() does nothing, and do not assume it does something either: don't make assumptions, just don't do it. And please, do not teach people to omit begin(). BTW, since version 1.0.4 of the library, begin() is not empty anymore. Regarding your example program at the end of the video, you would be better off leaning how to use the “alias” command from bash. The Keyboard library is most useful when you want to build custom input devices, like a game controller or a barcode scanner. For regular task automation, software-only tools tend to be more effective.
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Awesome - thanks for adding this Edgar!
@atiyos
@atiyos 2 жыл бұрын
thank you
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks so much for watching!
@freemind1621
@freemind1621 2 жыл бұрын
Wonderful
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thank you! I hope it helps!
@peterthinks
@peterthinks 2 жыл бұрын
Very nice! I was using a HID rubber ducky to TAB and ENTER thru Facebook menus of bots to report all their bot friends as fake accounts. Adding a button would make it smoother to use!
@robthom09
@robthom09 2 жыл бұрын
Glad that someone is doing this. Too much fake news.
@mradulbhardwaj3147
@mradulbhardwaj3147 Жыл бұрын
Does ESP32 also support this ??
@mikysantana644
@mikysantana644 6 ай бұрын
I would like to make a macro to repeat actions within a video game, is it possible using Arduino?
@mtalhakhalid1679
@mtalhakhalid1679 2 жыл бұрын
I use processing 3 for keyboard and mouse with ardino uno
@programmingelectronics
@programmingelectronics 2 жыл бұрын
I LOVE processing! That's what actually got me thinking about using Keyboard/mouse control. We have lessons on connecting to twitter through Arduino/Processing library called twitter4j -but we're using the Processing 4 I think?
@hughy2938
@hughy2938 2 жыл бұрын
Does anyone know a modification to this code that would work, I want to use my keyboard keys and not a arduino button
@KeithFiore
@KeithFiore 2 жыл бұрын
So, (14:30) how did you reprogram the board to stop the key entry or mouse movement? You mentioned that you tried to upload a new sketch. Is the solution to upload a new "bare minimum" sketch?
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Great question! You can upload any sketch that allows you to get back keyboard/mouse control - the "bare minimum" would be a great option, or you can just comment out/change the lines of the current program, so as not to use the keyboard/mouse.
@RicardoPenders
@RicardoPenders 2 жыл бұрын
@@programmingelectronics That's still not the answer to the question Keith had and I still have, that you can program the bare minimum sketch or to comment out the problematic line of code is the most logical thing to do, but if the Arduino is causing havoc to the input of your computer and really doing something that makes it impossible for you to do anything yourself with your mouse or keyboard. Let's say we are in a hypothetical worst case scenario and as soon as you plug in your Arduino it makes everything you want to do impossible and there's nothing you can do, other than unplugging the Arduino to get back the control over your computer, do you have to consider the Arduino to be unusable from that point or is there something you can do to either block the Arduino from taking over your keyboard and or mouse or is there a way to reprogram the Arduino without plugging in the USB connector? If I would start tinkering with this keyboard and mouse library for the Arduino, I for sure as hell would have made something either in software that can deal with a worst case scenario to prevent the Arduino from causing havoc or I would made something in hardware that has one very important task which is connect to the Arduino and instantly uploads a minimal sketch, and this would always be ready to use and in close proximity. While I'm writing this comment I realize that I came up with the answer myself. >> HERE IS THE 5 STEP SOLUTION
@programmingelectronics
@programmingelectronics 2 жыл бұрын
@@RicardoPenders Awesome! Thanks for adding all these details and steps!
@frazier283
@frazier283 2 жыл бұрын
If you find yourself with that type of runaway situation you can press and hold the reset button on your Arduino, the Arduino sketch won't run while the button is held in. Click load on your IDE and simultaneously release the reset button. Hope this helps.
@cirdiam1800
@cirdiam1800 2 жыл бұрын
So do you connect the Arduino to one USB port on your computer and your actual keyboard to another USB port on your computer? Or do you connect the Arduino to a USB port on the computer and you somehow plug your actual keyboard into the Arduino and the Arduino “passes thru” keyboard presses on the keyboard thru to the computer?
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Great question! You just keep your normal keyboard plugged in and it works fine. The Arduino then acts as an additional keyboard.
@dedey0637
@dedey0637 3 ай бұрын
can you explain how to use keyboard.h with the matrix sistem?
@benamen5274
@benamen5274 2 жыл бұрын
Can you somehow asign additional f-keys to those buttons and like a mouse-wheel to a potentiometer?Would be very nice, because then it could work as a editing keyboard for davinci as an example.Very nice video btw!
@programmingelectronics
@programmingelectronics 2 жыл бұрын
I think that is very doable. I think you might consider a rotary encoder over a potentiometer for the spin action, but in general, yes, totally possible.
@benamen5274
@benamen5274 2 жыл бұрын
@@programmingelectronics Yes, after a bit of researching that seams like the best option. Not quite sure how to set this up in my editing Software(Davinci), but il find a way.
@hugochavez6170
@hugochavez6170 Жыл бұрын
Nice tutorial! 👍 What about Unicode characters? Is it possible to press them using hex or binary code?
@programmingelectronics
@programmingelectronics Жыл бұрын
Great question! I am thinking you could send a a unicode symbol using the keyboard.print() function, but I'll have to check. www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardprint/
@mtalhakhalid1679
@mtalhakhalid1679 2 жыл бұрын
Keyboard library didnt work in arduino uno nano but may worknif i change ots bootloader
@programmingelectronics
@programmingelectronics 2 жыл бұрын
I believe these USB libraries will only work on boards using the 32u4 or SAMD micros. If I am not mistaken, I think Nanos use the 328p micro.
@jorencuppens1434
@jorencuppens1434 Жыл бұрын
can i also use an arduino uno ?
@TheUnofficialMaker
@TheUnofficialMaker 2 жыл бұрын
Is there a way to make a key to do a Command C (copy) for the Mac? On the runaway problem, I just added a 5-second delay in setup. I used the pro micro to make a programmers keypad, so I have separate keys for (), {}, < > etc. works great.
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks for adding that about the runaway problem V J! As for the copy (and maybe paste as well?) I have not tried this, but I think you would use the press command, the appropriate modifier keys, and then the release command. That would be fun to try! Press-> www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardpress/ Modifier Keys -> www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardmodifiers/
@TheUnofficialMaker
@TheUnofficialMaker 2 жыл бұрын
@@programmingelectronics Yes, but I don' think one can simulate a 'command' button because its some kind of key for the OS only, as far as I can tell. Thanks.
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Hi @@TheUnofficialMaker - I just check on this, and looks like it is KEY_LEFT_GUI or KEY_RIGHT_GUI to press the CMD Key on Macs - I have it working in a simple sketch to copy and paste a line of text. I'll see if we can get a short video showing how as well - thanks for the great questions!!
@donald-parker
@donald-parker 2 жыл бұрын
Can the Arduino emulate other special keyboard keys that don't seem to have predefined constants in keyboard.h (for example, sleep , multimedia keys, PrtScn, and differentiate between main keyboard numbers vs "number pad" numbers)? Is yes, how can we find out what codes to send so we can augment the built in constants with our own? What about maybe trying to find it out by building a keylogger. I suppose I would need to add a host USB port to the Arduino. But can you use a host port and device port at the same time? Or even better, can I control the function of the USB port on my Leonardo and "toggle it" between host port and device port behavior?
@edgarbonet1
@edgarbonet1 2 жыл бұрын
Version 1.0.4 of the Keyboard library brings a few more key macros, including KEY_PRINT_SCREEN and all the keys of the numeric keypad. You now have all the keys of a “standard” full-size PC keyboard. No Sleep or multimedia keys though. I do not think an Arduino can be used as an USB host. The SAMD based-ones maybe, but not the Leonardo.
@hughy2938
@hughy2938 2 жыл бұрын
Is there a way to do this without a physical arduino button? Because it would be quite nifty to be able to bind this process to a key on my keyboard, thanks.
@chesshooligan1282
@chesshooligan1282 11 ай бұрын
Autohotkey. It can emulate a keyboard and do a lot more at the touch of a key. It can maximise and minimise windows; it can open, move, copy, and delete files; it can run programs, with or without arguments; it can detect the colour of a pixel on the screen; and a lot more. It can also do different things dependent on context. The context can be whether a file exists, a certain window is open, a certain window is active, and so on. It beats the Arduino hands down. I couldn't live without AHK. It has saved me millions of keystrokes and mouse clicks.
@laygoman7547
@laygoman7547 2 жыл бұрын
How would I use rf24 to set pins high or low using 2 Arduino unos and a laptop?
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Great question! Can you expand a little on the application?
@WayneMcNab
@WayneMcNab Жыл бұрын
Hi. I did not see your video in time. Sure enough that’s what happened. Took some time to get it straighten out. Thanks. If I could ask a question on if else statement. I have nested if- else statements 3 deep. When coming out after executing the inside statement, does the program flow skip over any ‘else’ statement it finds coming out though the outside ‘else’ statements. If that makes any sense
@WayneMcNab
@WayneMcNab Жыл бұрын
Is there a good way to get out of this keyboard lock. Just happened again and whatever I did last time to get out of it I cannot replicate getting the Arduino to again accept downloads. Sorry for the trouble. Wayne
@test_channel_eg
@test_channel_eg 3 ай бұрын
Hi my friend I have a problem with Arduino pro micro and old trackpad from old hp laptop It like just an ordinary laptop touchpad But I don't know tk maje right click And scroll down and down Any help plz
@samtvtest4159
@samtvtest4159 Жыл бұрын
Thanks for this nice tutorial. I'm trying to emulate the keyboard library in Bluetooth HID. Tried bleKeyboard library for ESP32 but unfortunately the esp is not connecting. Can you recommend a different library for ble Bluetooth? Thanks
@programmingelectronics
@programmingelectronics Жыл бұрын
Hi Sam, I am working through similar issues right now (you are not alone!), hopefully when I get to the light, I'll be able to post something here!
@rdvardi3296
@rdvardi3296 9 ай бұрын
Please how to instal keyboard.h library
@yayangmario8550
@yayangmario8550 2 жыл бұрын
sir can you help me for my project ?? I have a project to make digital scales, but here I need a tool to enter an address,, can you help me to program a keyboard so that it can connect to the arduino and work
@MattVSNNL
@MattVSNNL Жыл бұрын
Is there a way to do this on the Arduino Uno R3?
@programmingelectronics
@programmingelectronics Жыл бұрын
I can be done, but it would be very tricky and non-standard. arduino.stackexchange.com/questions/991/can-the-2nd-mcu-on-the-uno-r3-be-used-for-keyboard-emulation
@lwcfr
@lwcfr Жыл бұрын
Can i use it for ps4 or Xbox
@PatonMacD
@PatonMacD Жыл бұрын
been having a hard time finding how to do with with more than one button. I have a box I made and did this in the past.. but I cant find my project file or resources on how to do it so far! I know it isn't that hard.. but I cant figure out how to do it so far... I have 10 buttons setup in a non matrix style all of the buttons have pull up resisters on it already... plugged into a leostick ...Any ideas?
@programmingelectronics
@programmingelectronics Жыл бұрын
Great question - I've been wanting to build a custom keyboard emulator myself for some specific key presses. Basically, you just need to read button presses in the loop, and when a specific button is pressed, you have you code execute that keyboard command. It can get a little tricky, because you want to make sure a button press is only registered once per press, and that button presses don't get missed if you're doing other stuff in the program. I'll see if i can come up with something for this one...
@99percent_freedom
@99percent_freedom 2 жыл бұрын
could you attach a 16 button keypad for 16 cusom functions?
@programmingelectronics
@programmingelectronics 2 жыл бұрын
That's the exact kind of thing I have in mind as well! As long as you could register each press, you could assign it a specific task using the library.
@dardodiesel5502
@dardodiesel5502 Жыл бұрын
Excellent video, very clear explanation. But if I don't have a Kit-On-A-Shield, would making a connection with a switch between pin 5 and ground be enough?
@programmingelectronics
@programmingelectronics Жыл бұрын
Great question Dardo! I should have been more clear about that in the video. You should probably add to that a ~10K pull down resistor from pin 5 to ground as well.
@dardodiesel5502
@dardodiesel5502 Жыл бұрын
@@programmingelectronics Is it possible for the plate to burn out if I do not connect the resistor? Because I saw other tutorials in which they connected the pin directly to ground, in that case it was an arduino pro micro board which is the one I bought. I'm new to this, sorry if my question is too obvious.
@programmingelectronics
@programmingelectronics Жыл бұрын
@@dardodiesel5502 Great question! There would be no harm done to the board/circuit/button/etc if you did not connect the resistor. This gets a bit convoluted, but...The resistor recommendation was to make sure that your input pin was "pulled down" when not being pressed - that is, so when you are not pressing the button that it reads a LOW voltage. It may already be showing a LOW voltage when the pin is not pressed, but the pin is in a "floating" state if it's set to an input and not connected to a voltage source (aka, ground or 5V). Now what you could do, is sett the input pin to an INPUT_PULLUP using the pin mode function, and then instead of hooking your button to pin 5 and 5V, you connect it to pin 5 and ground. In this case, when you don't press the button, it would read HIGH, and when you press the button it would read LOW, so you just need to adjust your logic in this if statement to trigger on LOW. Sorry for the run on - hope it helps some!
@dardodiesel5502
@dardodiesel5502 Жыл бұрын
@@programmingelectronicsThank you very much for taking the time to answer! Your explanation helped me a lot.
@programmingelectronics
@programmingelectronics Жыл бұрын
@@dardodiesel5502 Great!
@paulb36utube
@paulb36utube 2 жыл бұрын
I can’t seem to figure out how to (action press down) copy ; (action release button) paste. Any hints? Perhaps a video in the future? I’m able to to copy paste from 2 seperate buttons but this one had me confused.
@edgarbonet1
@edgarbonet1 2 жыл бұрын
You may want to try a button debouncing library. With the the Bounce2 library, for example, you can write: button.update(); if (button.fell()) { Keyboard.press(KEY_LEFT_CTRL); Keyboard.press('c'); Keyboard.releaseAll(); } else if (button.rose()) { Keyboard.press(KEY_LEFT_CTRL); Keyboard.press('v'); Keyboard.releaseAll(); }
@mmaad2165
@mmaad2165 Жыл бұрын
I'm using your code but it keeps running without hitting the button why is that
@Pit.Gutzmann
@Pit.Gutzmann 2 жыл бұрын
You did not mention Arduino Uno and Mega boards. Do they work with it as well?
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Great question! They do not work with this library.
@RobinHood-zi9ct
@RobinHood-zi9ct 11 ай бұрын
@@programmingelectronicsbut this is not anymore the case with UNO rev4 right?
@RobinHood-zi9ct
@RobinHood-zi9ct 11 ай бұрын
Can it also appear as a native keyboard and mouse like 32u4 and SAMD based boards?
@programmingelectronics
@programmingelectronics 11 ай бұрын
@@RobinHood-zi9ctThat's right! I believe the new R4 UNO's should work with these libraries.
@Pit.Gutzmann
@Pit.Gutzmann 2 жыл бұрын
And how do you do this "outcommenting" of several lines at once with double slash?
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Great question! If you select multiple lines, and use "Control + /" on PC, or "Command + /" on macOS, it will comment multiple lines. If you select commented lines, and then use the same keyboard shortcut, it will toggle back to un- comment
@Pit.Gutzmann
@Pit.Gutzmann 2 жыл бұрын
@@programmingelectronics thank you! I learned something today!
@programmingelectronics
@programmingelectronics 2 жыл бұрын
@@Pit.Gutzmann awesome - glad it helped!
@ruhruhruhruhruheisjsij
@ruhruhruhruhruheisjsij Жыл бұрын
Hopefully this doesnt get used for any sort of malicious purposes any time soon 😈 (jkjk good video though thanks, really helped me get started with it. Been using this for a custom keyboard ive been making out of a repurposed type writer I find. Really helps with macros especially custom ones for VIm. )
@MrJohnnaz
@MrJohnnaz 2 жыл бұрын
Will any of this work with a DOS computer?
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Great question - I am not sure!
@theunofficialprofessional
@theunofficialprofessional 6 ай бұрын
This would work with the 2560 Mega right?
@programmingelectronics
@programmingelectronics 6 ай бұрын
Unfortunately no. These libraries only work with boards that are recognized as HID (human interface devices)
@theunofficialprofessional
@theunofficialprofessional 6 ай бұрын
Thank you so much for responding, There's no way i can add some library? There must be. @@programmingelectronics
@programmingelectronics
@programmingelectronics 6 ай бұрын
I don't think so, but I could be mistaken for sure. @@theunofficialprofessional Maybe this is worth exploring? www.instructables.com/How-to-Make-a-Arduino-HID-Keyboard/ Best of luck!
@syedadnan9142
@syedadnan9142 Жыл бұрын
How many characters it can type in one second?
@programmingelectronics
@programmingelectronics Жыл бұрын
Not sure - it would be limited by the speed of the loop.
@ItsKalle231
@ItsKalle231 Жыл бұрын
Hello, grate video, but can you help me whith the keyboard.press(); command, i realy want to doo that, If you see this, pls reply
@programmingelectronics
@programmingelectronics Жыл бұрын
Maybe this this video can help? kzbin.info/www/bejne/aGq0ioWmpdV7rJo
@YashJain-qh5tn
@YashJain-qh5tn Жыл бұрын
Can i use arduino uno or nano🥺🥺
@programmingelectronics
@programmingelectronics Жыл бұрын
Unfortunately not Yash.
@YashJain-qh5tn
@YashJain-qh5tn Жыл бұрын
@@programmingelectronics 🥺🥺🥺🥺
@alendmusa6964
@alendmusa6964 2 жыл бұрын
do arduino megas work with this?
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Great question Alend! Unfortunately no, Arduino MEGAs will not with this keyboard library.
@alendmusa6964
@alendmusa6964 2 жыл бұрын
@@programmingelectronics Do you know of any way that I could replicate this without the keyboard library?
@shubhankarroy7772
@shubhankarroy7772 8 ай бұрын
do it also work in aurdino uno ?
@programmingelectronics
@programmingelectronics 8 ай бұрын
On the UNO R3 no, but it would work on an UNO R4
@shubhankarroy7772
@shubhankarroy7772 8 ай бұрын
Thank a lot
@spidy8554
@spidy8554 2 жыл бұрын
Does it really send keystrokes or just copy paste
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Good question! I am pretty sure it is sending the keystrokes.
@spidy8554
@spidy8554 2 жыл бұрын
@@programmingelectronics did you test it by using keyslogger
@arkodeepchatterjee
@arkodeepchatterjee Жыл бұрын
will this work on Arduino Uno??
@programmingelectronics
@programmingelectronics Жыл бұрын
It will work on an UNO R4, but not the more common UNO R3
@Qwzdf
@Qwzdf Жыл бұрын
guys I get error Compilation error: keyboard.h: No such file or director how do I fix it?
@programmingelectronics
@programmingelectronics Жыл бұрын
Great question! What board are you using?
@Qwzdf
@Qwzdf Жыл бұрын
@@programmingelectronics uno 3
@programmingelectronics
@programmingelectronics Жыл бұрын
@@Qwzdf Unfortunately, these libraries will not work on an Arduino UNO.
@TriflingToad
@TriflingToad Жыл бұрын
@@programmingelectronics will it work on the MEGA? im considering buying it, also which ones are supported?
@programmingelectronics
@programmingelectronics Жыл бұрын
Great question @@TriflingToad ! A Mega will not work with this library. An Arduino Leonardo would work.(Zero, Duo, and MKR family)
@Looki2000
@Looki2000 Жыл бұрын
It doesn't work for me at all. I'm using MKR WiFi 1010
@guzmadera
@guzmadera Жыл бұрын
Hola, al ver este video que me ha encantado porque creo que es la solución que andaba buscando varios meses, al fin me parece que voy a solucionar mi problema, gracias y te voy a preguntar si el posible lo que quiero. Hace años compré una aplicación de música STYLE WORK XT y al cambiar de ordenador la aplicación me pide un nuevo pin, escribí varias veces al vendedor, pero me enteré que este señor había fallecido, con lo cual no puedo utilizar esta aplicación. PREGUNTA: si me hago una aplicación en arduino, crees que puedo ir generando pines en la ventana de esta aplicación como si las fuera tecleando manualmente? solo necesito enviar NUMEROS y usar la tecla INTRO, FLECHA IZQUIERDA Y FLECHA DE BORRAR.
@programmingelectronics
@programmingelectronics Жыл бұрын
Buen proyecto! Sí, eso suena posible. Vea también los otros videos que tenemos sobre el uso de teclas especiales. ¿Vas a escribir un programa que intente muchas combinaciones de pines hasta que encuentres el pin correcto? kzbin.info/www/bejne/aGq0ioWmpdV7rJo
@guzmadera
@guzmadera Жыл бұрын
@@programmingelectronics Si eso es lo que intento, ya hice uno con relé de 16 canales soldando a un teclado viejo y funcionó, pero el relé se quemó porque es un pin de 6 dígitos. Voy a ver todos los videos y ya te contaré. Gracias por contestar
@guzmadera
@guzmadera Жыл бұрын
Gracias por darme ánimos, seguí probando y al final lo he conseguido, saludos
@wolf33b
@wolf33b Жыл бұрын
came for see is arduino i have can be use as keyboard. suddenly learn how to make it. tbh it kinda same as keyboard library from python. wonder if they are made by same guy anyway if you still use a macro or other people plan to make macro like this. im suggesting using python library and bind it to function key like F12 or F1. or maybe just like me using macro keyboard to add F13 and F14(yes it does exist and yes it registered on windows. the only way i know to make this by print it with python script while record macro key on my keyboard. and waila you have extended Function key) by doing this you make 0$ macro function instead buy Arduino and buy a button. but sure having keyboard library on Arduino does kinda help if you want to fix old expensive keyboard but chip broken. im actually planning fix my keyboard that why im coming here to make sure is my board compatible with library
@pixelgrafik1146
@pixelgrafik1146 2 жыл бұрын
The „normal“ Arduino Uno doesn’t work, right?!
@programmingelectronics
@programmingelectronics 2 жыл бұрын
That’s correct, this library requires an Arduino that can act as a USB emulator.
@pixelgrafik1146
@pixelgrafik1146 2 жыл бұрын
@@programmingelectronics thank you for answering! 🙏🏼
@programmingelectronics
@programmingelectronics 2 жыл бұрын
@@pixelgrafik1146 Happy to help!
@luxraider5384
@luxraider5384 Жыл бұрын
You don t need an arduino to do that. Just run a script on your pc.
@programmingelectronics
@programmingelectronics Жыл бұрын
You're right! Could run a script on a mac as well. The idea is being able to use external hardware to trigger such tasks, aka, button presses, sensors, etc.
@syedadnan9142
@syedadnan9142 Жыл бұрын
bro nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice nice very very thank you so much bro 🔥🔥🔥you won my heart
@programmingelectronics
@programmingelectronics Жыл бұрын
Glad you liked it!
@leowribeiro
@leowribeiro Жыл бұрын
If you're on Windows just use AutoIt, far more elegant solution than plugging an arduino to simulate a keyboard!
@chesshooligan1282
@chesshooligan1282 11 ай бұрын
AutoIt is good but obsolete. There's Autohotkey now.
Control your mouse with Arduino!  Automate simple tasks!
35:15
Programming Electronics Academy
Рет қаралды 32 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 35 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 7 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 10 МЛН
If you don’t learn sprintf(), your code will hate you later
8:34
Programming Electronics Academy
Рет қаралды 50 М.
Arduino Sketch with millis() instead of delay()
14:27
Programming Electronics Academy
Рет қаралды 225 М.
Dynamically Assignable Macro Keyboard with e-ink Display
11:46
there oughta be
Рет қаралды 231 М.
Using Serial.parseInt() with Arduino
15:39
Programming Electronics Academy
Рет қаралды 46 М.
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 148 М.
How to Organize Code
14:37
Programming Electronics Academy
Рет қаралды 61 М.
How to Connect a PC Keyboard to an Arduino?
6:12
Doctor Volt
Рет қаралды 51 М.
Using Arrays with Arduino
13:51
Programming Electronics Academy
Рет қаралды 28 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 35 МЛН