Turn your ESP8266 into a USB Keyboard and Mouse - Easy Tutorial

preview_player
Показать описание
In this video, I will show you how to turn your ESP8266 microcontroller into a keyboard and mouse. This is a great project for those who want to control their computer remotely or automate their computer tasks. We will walk you through the process step-by-step, from setting up the the toolchain to programming the ESP8266 to emulate keyboard and mouse functions.

We will provide you with all the code you need, and you don't need any additional hardware other than an ESP8266 board and only one resistor. So, whether you're a beginner or an experienced maker, you'll be able to follow along and create your own ESP8266 keyboard and mouse in no time!

So, sit back, grab your ESP8266, and let's get started!

I also recommend my latest esp32-s3 design for native USB support.
You check it out here:

Executable docker image to easily compile and flash for the ESP32 and ESP8266 :

Link for the project files:

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 - Intro & summary
0:27 - Investigation
0:48 - Soldering, and things to be careful of
2:47- Setting up the toolchain, compiling and flashing the firmware
5:08 - Connecting it to a PC and testing
Рекомендации по теме
Комментарии
Автор

Hello all,
Also a correction: the AMS1117 regulator that I used in the has the wrong pinout. The carrier board uses 1-Gnd 2-Vin 3-Vout whereas the AMS1117 is 1-Gnd 2-Vout 3-Vin. If you connect AMS1117, you might get unpredictable results. Instead you should use something like HT7333. Thanks for noticing @Dean Cording.

makersfunduck
Автор

Thank you for the video. It and the code helped me realize how I could use one of these for a project I am making for my boys. I have been pulling my hair out, trying to find a USB HID interface chip, with my program running on an arduino or esp(32 or 8266) controlling the TFT Display vis SPI. All I want to do is send keystrokes to the USB port, depending on clicks in my little device. Basically a fancy Macro Keyboard with a touch screen :) I now realize I can do this all on the 8622, with some clever code and proper power management. Please keep on making videos, they are appreciated.

DonaldDuvall
Автор

Hello,
Is possible to create Arduino library from this project for mor easier use ? where you at start define just pins to use and then you can use it similarly to Arduino HID library ?

Thank you in advance for answers :)

jonatanrek
Автор

How are you flashing the board without a USB to Serial converter (like ch340) ?

destiny_
Автор

can this be done on the original esp32?
esp32s2 and have native usb support but i want to make a keyboard that support both usb mode and bluetooth mode and original esp32 is perfect if it can support bitbanged usb
also can you make a libary for use with arduino ide since im more familiar with it

lifeai
Автор

Thanks for the video, but how do i use Custom commands?

edit: also how do i press windows key over the web interface

YeetTheAnOn
Автор

What's the initial image of the ESP8266 to accept the flashing of bin files via GPIO4 and GPIO5 pins?

JohnSaintTV
Автор

If you make a video on how to customise espusb project, and use it in your custom project .
It will be will be helpful for us
As i am working on a similar project but with custom funcnality

Gopichand-gdmr
Автор

with two esp32+USB modules, could you in theory share the trackpad and keyboard from one laptop with another? Perhaps using something like a key combo or macro key to switch between straight input (capture and process on laptop 1 as normal), and capture, send and inject via ESP no.2 on the other machine to control laptop number 2? Thanks!

ben_jammin
Автор

Is there a way to control Keyboard output USB from microcontroller by itself? Like add some buttons and send message through USB? Without WIFI, phone etc.

Dewal
Автор

can you please elaborate the steps required if i used the esp8266 module? (i mean the development board)

tekine
Автор

does it support waking up a PC from sleep mode?

mhtalha
Автор

does it support usb full speed satndard?

thissundae
Автор

很不错的视频,我订阅了你。能否唤醒睡眠中的电脑?(It's a great video. I subscribed to you。 Can I wake a sleeping computer?)

ReynoldStudio
Автор

The 1824 regulator you are using has the wrong pinout for that carrier board. The board is actually very badly designed for use with a regulator as it uses an uncommon pad layout and doesn't have room for any filtering caps.

DeanCording
Автор

Buen dia, espero que estes bien .
cual seria el diagrama para que funcione en esp32?
si me podrias ayudar con eso porfavor

JuanCarlos-yzpu
join shbcf.ru