Control your PC keyboard and mouse via serial messages from a microcontroller board like the BBC micro:bit or Arduino.
This is done by loading any of the pre-made libraries into the microcontroller board, and then executing in the PC application from this repository.
Embedded libraries to use with this application:
- BBC micro:bit MicroPython module
- BBC micro:bit MakeCode extension not yet done
- Arduino library not yet done
This project is still under heavy development, so it can be a little bit unstable or incomplete.
Current way to install and run it is with poetry:
$ git clone https://github.com/carlosperate/serial-pc-control.git
$ cd serial-pc-control
$ poetry install
$ poetry run python serial_pc_control/process_cmds.py
Current status:
- Controlling the mouse position is working.
- Mouse left click and right click are working.
- Typing text from the keyboard is working.
- Typing special keys from the keyboard (arrow keys, shift, alt, etc) not yet implemented
- Tested in macOS
- Not yet tested in Windows, although it should work
- Not yet tested in Linux, although it should work
- Automatically detecting the micro:bit or Arduino serial port is working.
- CLI interface includes command line arguments to manually select the por and baud rate.
- CLI interface includes command line arguments to manually select the por and baud rate.
- Known issues not yet solved can be found here: