How to control a windows device using arduino?

Is there any way to control a windows device(PC,Laptop etc) by arduino?
Any Library?

If you use a suitable Arduino such as a Leonardo then you can control the mouse of the PC and send keystrokes to the PC. Is that the sort of thing that you had in mind ?

Have a look at the Processing tool.

Can i do that wirelessly?

Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

  • Your OS and version can be valuable information, please include it along with extra security you are using.
  • Always list the version of the IDE you are using and the board version if applicable.
  • Use quote or add error messages as an attachment NOT a picture.
  • How to insert an image into your post. ( Thanks @sterretje )
  • Add your sketch where applicable but please use CODE TAGS ( </> )
  • Add a SCHEMATIC were needed even if it is hand drawn
  • Add working links to any specific hardware as needed (NOT links to similar items)
  • Remember that the people trying to help cannot see your problem so give as much information as you can


  • Ensure you have FULLY inserted the USB cables.
  • Check you have a COMMON GROUND where required. ( Thanks @Perry)
  • Where possible use USB 2.0 ports or a USB 2.0 POWERED HUB to rule out USB 3.0 issues.
  • Try other computers where possible.
  • Try other USB leads where possible.
  • You may not have the correct driver installed. CH340/341 or CP2102 or FT232 VCP Drivers - FTDI
  • There may be a problem with the board check or remove your wiring first.
  • Remove any items connected to pins 0 and 1.


  • Close any other serial programs before opening the IDE.
  • Ensure you turn off any additional security / antivirus just to test.
  • There may be a problem with the PC try RESTARTING it.
  • You may be selecting the wrong COM port.
  • Avoid cloud/network based installations where possible OR ensure your Network/Cloud software is RUNNING.
  • Clear your browsers CACHE.
  • Close the IDE before using any other serial programs.
  • Preferably install IDE’s as ADMINISTRATOR or your OS equivalent


  • CH340/341 based clones do not report useful information to the “get board info” button.
  • NANO (Old Types) some require you to use the OLD BOOTLOADER option.
  • NANO (ALL Types) See the specific sections lower in the forum.
  • NANO (NEW Types) Install your board CORE’s.
  • Unless using EXTERNAL PROGRAMMERS please leave the IDE selection at default “AVRISP mkII”.
  • Boards using a MICRO usb connector need a cable that is both DATA and CHARGE. Many are CHARGE ONLY.

CREATE editor install locations.

  • On macOs ~/Applications/ArduinoCreateAgent-1.1/
  • On Linux ~/ArduinoCreateAgent-1.1/config.ini
  • On Windows C:\Users[your user]\AppData\Roaming\ArduinoCreateAgent-1.1

Performing the above actions may help resolve your problem without further help.
Language problem ?
Try a language closer to your native language:

Thanks to all those who helped and added to this list.

Is that the sound of goalposts moving that I hear ?

You would need hardware connected to the PC to receive commands and pass them to the Serial port and, of course, hardware at the Arduino end to transmit the data

There are other possible methods that you could consider such as using an ESP8266 or ESP32 to host a web server and for the PC to run software to connect to the web server to receive commands.

How complicated do you want to make this and what HTML coding experience do you have ?

I have no HTML coding experience.I think i will do it with arduino connected to the laptop
Thanks for your help

Hi, @nousernameavailable
What do you want to do with your control over a PC/Laptop.
Do you want your Arduino to act like a keyboard or mouse?
Do you want your Arduino to open specific applications?
Do you want your Arduino to turn the PC?Laptop ON and OFF?

Please be more specific?

Can you please tell us your electronics, programming, arduino, hardware experience?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

I am sort of a beginner in programming and electronics. I would like the Arduino to automate a few keyboard tasks. I want to do this wirelessly.

Is it possible to let Arduino know which application I am currently using on my PC?


arduino bluetooth keyboard
That may get you started.

Tom... :grinning: :+1: :coffee: :australia:

Think about what wireless technology does a PC/Laptop have?

Bluetooth, WiFi. That's it what a standard PC/Laptop has.

How much wireless things does an arduino have?
Depends on the exact Arduino-TYPE
Arduino Uno NO wireless
Arduino Mega NO wireless

So a different microcontroller will be much better suited
I recommend using an ESP32 with bluetooth keyboard emulator

Most important thing for developing keyboardemulators:
Code that checks a hardware switch which makes the code send or NOT send keystrokes over bluetooth.
Otherwise your code in the editor will be overwritten all the time as soon as you start the device. => very hard to stop this process to upload a new code-version. Except you have a hardware-switch that can stop it.

best regards Stefan

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.