This project is designed to automate everyday tasks performed on a computer with the push of a single button. The project is developed on a Linux platform.
To use this project, you'll need the following:
- An Arduino Uno board
- Three buttons
- One potentiometer
- Three resistors
- Jumper cables
-
Connect the buttons and potentiometer to the Arduino Uno board as per the circuit diagram provided in the project files.
-
Connect the Arduino Uno board to your computer using a USB cable.
-
Open the
system_control.ino
file in the Arduino IDE and upload it to the Arduino board. -
Install the necessary libraries on your computer. (The project is developed on a Linux platform and requires the following libraries):
- PySerial
- alsaaudio
- pyautogui
You can install these libraries using the following command on your Linux terminal:
pip install pyautogui pip install pyalsaaudio pip install pyserial
-
Download the project files and extract them to a folder on your computer.
-
Open the
main.py
file in a Python editor and modify the serial port name and other parameters as per your requirements. -
Run the
main.py
file to start the program.
To use the program, simply press one of the three buttons connected to the Arduino Uno. The Python script running on the computer will listen to the serial port for input and trigger the corresponding function. (You can change the function.)
The functions that can be triggered are:
- Function 1: Open the Discord.
- Function 2: System update.
- Function 3: Open the Visual Studio Code.
The potentiometer can be used to control the volume of the computer. Turn it to the left to decrease the volume, and to the right to increase it.
This project was developed on a Linux platform, and as such, certain changes may need to be made to the Python code to ensure compatibility with Windows. For example, the serial port names differ between Linux and Windows, and this difference should be taken into account when modifying the Python code. Additionally, the libraries used in this project have been selected specifically for Linux, and may need to be modified for use on a Windows system.
This project was inspired by the need to automate repetitive tasks on a computer. Special thanks to Vibasdo and the developers of PySerial, PyAlsaAudio and Pyautogui for making this project possible.
This project is licensed under the MIT License - see the LICENSE file for details.