So I wanna build something which, when it receives a remote signal, presses the spacebar on my laptop keyboard. I tried using the Keyboard.press() but it is available only for Leonardo. Is there any way I can use it in my Uno, without having to mess with the firmware?
If not, what else can I use to accomplish my goal?
-
1github.com/NicoHood/HoodloaderMajenko– Majenko2020年06月28日 14:20:57 +00:00Commented Jun 28, 2020 at 14:20
-
@Majenko Are you sure this has no dangers at all?DeathVenom– DeathVenom2020年06月28日 14:46:19 +00:00Commented Jun 28, 2020 at 14:46
-
1You can do that without burn a new bootloader via an interface application. The disadvantage is that you have to code a new application. You can do that with Java, C++, C#, ... You can send a message through serial and received it with your app. Tha's not the best way.2CoB9– 2CoB92020年06月28日 14:54:46 +00:00Commented Jun 28, 2020 at 14:54
-
1you could send a signal character over serial ... run a Processing sketch on the laptop that generates a keypress everytime the signal character is receivedjsotola– jsotola2020年06月28日 16:19:16 +00:00Commented Jun 28, 2020 at 16:19
-
2Control a servo that physically presses the spacebar...Majenko– Majenko2020年06月28日 23:06:32 +00:00Commented Jun 28, 2020 at 23:06
2 Answers 2
On Windows you can use a serial to keyboard redirector like this one
It can start with windows, Im using it for a long time without any issues. enter image description here
if you have some knowledge in Java or Python you can interface your Arduino board to PC, through Arduino's SerialPort. When Arduino sends a byte, for example, 0xAB, your Java or Python script sends a fake key-press event. I hope this can help. Good luck!
-
are you sure you can send a keypress event to any application from other application?2020年06月29日 13:34:54 +00:00Commented Jun 29, 2020 at 13:34