Control your keyboard with Arduino! Automate simple tasks!

preview_player
Показать описание
🤩 FREE Arduino Crash Course 👇👇

Want to learn more? Check out our courses!

We designed this circuit board for beginners!

***Get your Free Trial of Altium PCB design Software***

SHOP OUR FAVORITE STUFF! (affiliate links)
---------------------------------------------------

Get your Free Trial of Altium PCB design Software
We use Rev Captions for our subtitles

Arduino UNO R3:

Budget Arduino Kits:

Multimeter Options:

Helping Hands:

Soldering Stations:

AFFILIATES & REFERRALS
---------------------------------------------------

FOLLOW US ELSEWHERE
---------------------------------------------------

***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.***
Рекомендации по теме
Комментарии
Автор

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.,

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.

edgarbonet
Автор

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.

paparoysworkshop
Автор

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.

frazier
Автор

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.

edgarbonet
Автор

Happy to see you still making videos. Quality content.

varickveit
Автор

Nice head's up on those library gotchas. Def good to know before diving in to a project

cschmitz
Автор

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?

KeithFiore
Автор

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.

TheUnofficialMaker
Автор

Is there a way to do this on the Arduino Uno R3?

MattVSNNL
Автор

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?

dardodiesel
Автор

I use processing 3 for keyboard and mouse with ardino uno

mtalhakhalid
Автор

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!

peterthinks
Автор

Keyboard library didnt work in arduino uno nano but may worknif i change ots bootloader

mtalhakhalid
Автор

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?

cirdiam
Автор

How would I use rf24 to set pins high or low using 2 Arduino unos and a laptop?

laygoman
Автор

Love your videos. Thank you for helping

laygoman
Автор

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
Автор

can you explain how to use keyboard.h with the matrix sistem?

dedey
Автор

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.

sdwsom
Автор

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.

hughy