DIY

Touch keyboard to control your computer using hotkeys

Touch keyboard to control the computer using hotkeys Controlling your computer with hotkeys and macros is a great way to speed up your workflow. Unfortunately, devices designed for this (for example, Stream Deck from Elgato) cost from $ 120 and more.
The master has developed his own version of such a device – FreeTouchDeck. FreeTouchDeck will cost about $ 20 to make (shipping included). The device uses ESP32 and a 3.5-inch touchscreen. Commands from the device, via Bluetooth, are transmitted to a computer running Windows, MacOS or Linux.
You can customize FreeTouchDeck using the configurator. The configurator is a web page hosted on the ESP32 itself. You can customize menus, buttons, logos and colors. Also you can create your own button logos and upload them. Basically, this device can be configured from smart home control to computer game control.
It's a very simple assembly that will take less than an hour, and all the parts are available.
Tools and Materials: ESP32-WROOM 38-pin board -32; -TFT-screen ILI9488 with touch controller XPT2046;
-Soldering accessories;
-Wires;
-3D-printer (option);
-Computer with software;
Touch keyboard to control the computer using hot keys Touch keyboard for computer control using hot keys Step one: connecting the TFT screen to the ESP32
Following the diagram, it is not difficult to connect the screen to the ESP. There are several connection options. You can use a breadboard or you can assemble everything on a PCB specially designed by the master.
You can download the file for making the board here.
It is important to know that the ILI9488 screen can be touchscreen and normal (the device needs a touchscreen). The screen works from 3.3V, connecting to 5V can lead to breakdown.
Connect as follows:
ESP32 – & gt; ILI9488
3.3V – & gt; VCC
GND – & gt; GND
GPIO15 – & gt; CS
GPIO4 – & gt; RESET
GPIO2 – & gt; DC/RS
GPIO23 – & gt; SDI (MOSI) and T_DIN
GPIO18 – & gt; SCK and T_CLK
GPIO32 – & gt; LED
GPIO21 – & gt; T_CS
GPIO19 – & gt; T_DO
GPIO27 – & gt; T_IRQ
Touch keyboard for computer control using hot keys Touch keyboard for computer control with using hot keys Touch keyboard for computer control using hot keys Step Two: Installing the Libraries
Installing the Kernel Arduino ESP32 IDE.
Go to Arduino – & gt; Preferences and click the icon behind the input field for additional Board Managers URLs.
Then copy and paste the following link (without quotes) into the popup:
“https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json”
Confirm twice with OK.
Then go to Tools – & gt; Board: – & gt; Board Manage and search for “ESP32”. Install the latest version and click Close.
Installing the required libraries.
FreeTouchDeck uses several libraries. Three of these libraries can be installed using the library manager. Go to Sketch – & gt; Include Library – & gt; Manage Libraries, find and install the following libraries:
Adafruit-GFX-Library
TFT_eSPI
ArduinoJson
The other three libraries need to be loaded manually. For each of them, the process is the same, so the wizard describes only one of them.
Go to “https://github.com/DustinWatts/ESP32-BLE-Keyboard”, click “Code” and “Download .ZIP”. In Arduino IDE go to Sketch – & gt; Include Library – & gt; Add .ZIP library.
Repeat these steps for the libraries at the addresses:
“https://github.com/me-no-dev/ESPAsyncWebServer”
“https://github.com/me- no-dev/AsyncTCP “
Touch keyboard to control the computer using hot keys Touch keyboard for computer control using hot keys Touch keyboard for computer control with using hotkeys Step three: setting up the TFT screen
Before uploading the FreeTouchDeck.ino sketch, you must edit the user_setup.h file included in the TFT_eSPI library. It can be found in the Arduino thumbnails folder under libraries. If the TFT_eSPI library folder has not been renamed, the user_setup.h file can be found in TFT_eSPI-master. Here you will need to uncomment the lines related to your hardware configuration.
To keep things simple, you can find the user_setup.h file that you need for this project in the downloaded repository under the “user_setup.h Examples” folder. Copy the file “ESP32_Dev_Kit_V1_ILI9488_Resistive.h” to “/TFT_eSPI-master /”. Rename the “User_Setup.h” that is already “User_Setup.old” (this way you keep the original in case something goes wrong). Now rename “ESP32_Dev_Kit_V1_ILI9488_Resistive.h” to “User_Setup.h”. Save and close the file.
Touch keyboard for controlling a computer using hot keys Touch keyboard to control the computer using hot keys Touch keyboard for computer control using hotkeys Step Four: Upload Code to ESP32
ESP Sketch Data Upload Tool
FreeTouchDeck uses SPIFFS (ESP32 Flash Memory) to store configuration and used images. You will need to upload them to ESP32 before uploading your sketch to ESP32. This requires the ESP32 Sketch Data Upload tool. It can be downloaded from Github: “https://github.com/me-no-dev/arduino-esp32fs-plugin”.
Download the archive from the releases page.
In the Arduino album directory, create a tools directory (if it doesn't already exist).
Unpack the tool into the tools directory (the path will look like /Arduino/tools/ESP32FS/tool/esp32fs.jar) .
Restart the Arduino IDE.
(On MacOS, create the tools directory in ~/Documents/Arduino/and unzip the files there).
FreeTouchDeck.ino
The complete source code for FreeTouchDeck can be found on Github. Go to the FreeTouchDeck Github repository and click on “Code” and “Download .ZIP”: https://github.com/DustinWatts/FreeTouchDeck
Unzip and rename the extracted folder to “FreeTouchDeck”. Open the FreeTouchDeck.ino sketch in the Arduino IDE. This will open several other header files (.h) as well. You don't need to touch them.
Wi-Fi Settings
After the FreeTouchDeck.ino thumbnail is open, navigate to the folder that contains the FreeTouchDeck.ino thumbnail, open “/data/config/wificonfig.json”. Here you need to enter your Wi-Fi SSID and password so that you can connect to FreeTouchDeck and configure it.
-Change “YOUR_WIFI_SSID” to the Wi-Fi SSID to which FreeTouchDeck should connect.
-Change “YOUR_WIFI_PASSWORD” to the password that the WiFi network uses.
Uploading the data folder
Before uploading the data folder to ESP32, you must first select the correct partitioning scheme.
-Go to Tools – & gt ; Board and select ESP32 Dev Module.
-Under “Tools” select “Partition Scheme” – & gt; “No OTA (2MB APP/2MB SPIFFS)”.
-Clicking on the ESP32.
-Click on “Tools” and select “ESP Sketch Data Upload”.
If the data upload fails, most likely you have a serial monitor open. In this case, close the serial monitor and try again.
Upload the sketch to ESP32
After successfully uploading the data folder, you need to upload the FreeTouchDeck.ino sketch to the ESP32. Options in tools, besides the partition scheme, can be left as default.
Go to Sketch and choose Upload. It may take a while to load because it is a large thumbnail.
Touch keyboard for computer control using hot keys < a href = "https://usamodelkina.ru/uploads/posts/2020-12/1607786028_1-14.jpg" rel = "prettyPhoto">Touch keyboard for computer control using hot keys Step five: body
For this device, the master has developed a case. The body can be printed on a 3D printer. The craftsman printed it with PLA filament with a layer thickness of 0.2 mm. The top needs no support if you print it face down. The bottom requires minimal support if you print with the hole facing down. The body parts must be tightly connected to each other. For reliability, you can use glue, but then it will be more difficult to get to the components if necessary.
Print files can be downloaded from Thingiverse.
For those wishing to change the shape of the case, you can download the Fusion 360 files on Github.
Touch keyboard for computer control using hot keys Touch keyboard for computer control with using hot keys Touch keyboard for computer control using hot keys Touch keyboard for computer control with using the hotkeys Step six: loading and configuring
After downloading the sketch and all files ESP displays the screen calibration setting on first boot.
The calibration file is saved in the ESP file system.
There are 6 buttons on the main screen. These are the menu buttons when you click on which you can go to the submenu. These buttons are colored differently from the function buttons in the menu. The main screen also has a Settings button.
After loading the main screen, bluetooth is also launched. You can now connect your computer to FreeTouchDeck. You may need to update the list of Bluetooth devices on your computer. To check if Bluetooth is working properly, go to the “Music” menu. And click “Mute” to see if Bluetooth has been established.
Touch keyboard for computer control using hotkeys Touch keyboard for computer control using hot keys Touch keyboard for computer control with using hot keys Touch keyboard for computer control using hot keys You can now customize FreeTouchDeck. You can customize the menus and buttons of each submenu. You can also customize the button colors and upload your own logo.
To launch the configurator, click the lower right button, go to the Settings page, and then click the WiFi button in the upper left corner. After starting the configurator, you can open your web browser and go to freetouchdeck.local.
To learn more about how to use the configurator, visit the Wiki on Github.
 Touch keyboard to control the computer using hot keys Touch keyboard to control the computer using hot keys  Touch keyboard to control the computer using hot keys Touch keyboard to control the computer using hot keys Everything is ready, and in the video you can see examples of how the device works and settings.

Source:

usamodelkina.ru

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Please disable your ad blocker

We know you are here for the stories. Not the ads. But we need the ads to keep the lights on. So please whitelist Buzzon.live.