No video

ESP32 Bluetooth Keyboard as a Game Controller for Retro Home Computers

  Рет қаралды 35,643

Bytes N Bits

Bytes N Bits

Күн бұрын

The ESP32's built in Bluetooth Low Energy module allows you to turn it into a programmable Bluetooth keyboard. In this video I'll show you how to get the keyboard code up and running and then we'll use it to build a gamepad that mimics key presses on your keyboard. This will let you use the gamepad in any games that don't support game controllers.
Make sure you check out the project page for this video at,
bytesnbits.co....
Add ESP32 support to the Arduino IDE
docs.espressif...
ESP32 Bluetooth Keyboard Library
github.com/T-v...

Пікірлер: 133
@182mm
@182mm 2 жыл бұрын
Your source is so simple but very powerful. I made steamlink(in retropie) by your esp32 code! Thanks! Thanks so much! -From South Korean
@BytesNBits
@BytesNBits Жыл бұрын
Nice work! Glad it helped!
@Ulrik47
@Ulrik47 Жыл бұрын
Thx 👍👍 Needed an a and a d for some bike hometrainer program for my wife. Made 2 switches and used your code with a small change.
@BytesNBits
@BytesNBits Жыл бұрын
Nice work! Hope it got you some brownie points!
@SeamusMcNeil
@SeamusMcNeil 2 жыл бұрын
Excellent mate - and out before the end of the year as you had suggested. This is the one I have been waiting for - thank you so much. Cheers. Jim
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi Jim. Hope you enjoy it!
@germanskena6537
@germanskena6537 2 жыл бұрын
GREAT VIDEO Bob!. Thank you very much for your latest comment about the ZX joystick-
@BytesNBits
@BytesNBits 2 жыл бұрын
My pleasure!
@MHTSAPAS
@MHTSAPAS Жыл бұрын
Thank you for the sketch sir! I'm fairly new to all this and was looking for something to replace the Keyboard.h library I use on the ProMicros. I'm working on a 3D Printed Joystick/Potentiometer and button pad thingie. I have it all printed out with 10 buttons but did not know how to code the buttons on an ESP32. This will be perfect! I started off with the buttons using the same INPUT_PULLUP setting so that sketch is done. I then leaned how to place images on an OLED display and spent a good week with trial and error learning how to combine the two sketches. Now I'd like to move that all over to an ESP32 and then add the joystick/Potentiometer combo to use both for design work and maybe some good old retro gaming. I have a ridiculous amount of electronics and no experience so I am using what I have to create small projects to learn both the electronics and the coding side of things. Thankfully I am at the stage where I no longer get frustrated and just slowly work out the problems until everything just works and it is so rewarding when it does! Your work and provided sketch in your video page is a huge help and I thank you kindly for it!
@BytesNBits
@BytesNBits Жыл бұрын
Hi. Great to hear you're having fun with the projects. Keep going!
@jyvben1520
@jyvben1520 Жыл бұрын
multi use version, expect an oled (only active in setup mode) + power on setup button + using the available buttons as up/down buttons to scroll thru available configs, other buttons to act like escape and enter, wifi mode may even let you upload an updated configs text file to the esp32.
@BytesNBits
@BytesNBits Жыл бұрын
Hi. Thanks for the info.
@RyoHazuki1
@RyoHazuki1 19 күн бұрын
Thank you for this.
@BytesNBits
@BytesNBits 13 күн бұрын
You're welcome
@saleembeg3113
@saleembeg3113 Жыл бұрын
Amazing…thanks for the tutorial
@BytesNBits
@BytesNBits Жыл бұрын
You’re welcome 😊
@rgbcrafts
@rgbcrafts Ай бұрын
Hm, would ESP32 would work properly like the Pi Pico and the GP-2040CE, which allows more than a few buttons be pressed simultaneously, without that limit of a keyboard?
@BytesNBits
@BytesNBits Ай бұрын
The video sets the ESP32 to act as a bluetooth keyboard. You need other software to get it to act as a game controller. You can also start combining the bluetooth drivers to make the ESP32 / Pico act as a combo device for both or more. The great thing about these is that you're in total control - but you do need to get your head around the Bluetooth device descriptions.
@user-gc5wd1bf7c
@user-gc5wd1bf7c 5 ай бұрын
Hi there, I'm having trouble connecting my ESP32 Ble gamepad (though i also used your code for keyboard )to RetroPie on my Raspberry Pi Zero 2W. I can see the device in the Bluetooth menu, but when I try to connect, nothing happens after selecting the security option. its also not shown in the list of connected devices.(it works perfectly fine with my computer and even phone) But ESP32 controller shows up as a gamepad in RetroPie, but button presses aren't registering during configuration. I've followed every instruction on youtube for fixing the bluetooth issue (pairing through bluetoothcl ,downloading weekly builds of retropie , downloading xpadneo,etc) Please help me ,any advice on how to get this working would be greatly appreciated! Thanks!
@BytesNBits
@BytesNBits 5 ай бұрын
It's strange the RPis aren't connecting. It sounds like the controller is working OK if the PC and phone are picking it up. When they connect and you test does it connect as a generic gamepad or some other model? It might be the Pi isn't recognising the type of gamepad, but just guessing at this stage.
@user-gc5wd1bf7c
@user-gc5wd1bf7c 5 ай бұрын
@@BytesNBits Thankyou so much for replying but actually i got it working , it is still not being shown in the list of connected devices but now the button presses are being registered in the game pad config. ,Actually i wrote a new code without the use of the special buttons fuctions (like the dpad hat ,start ,select button ,etc) i just configured them as generic buttons (used the MultipleButtons example )as reconfigured them in the retropie . But still I am so grateful for your help , have a great day.
@joelwilliam5799
@joelwilliam5799 Жыл бұрын
Hi, I'm a beginner at this. I'm confused between Rpi Pico W, Arduino pro micro, Esp32 to make my own game controller. Which one do you think is a safe and simple option for me as a beginner, or is there any other board you'd suggest?
@BytesNBits
@BytesNBits Жыл бұрын
Hi. The main choice for this project is in how you want to connect to your computer. I'm using Bluetooth so the board has to have that interface, or be able to have one added easily. If you want a wired controller it must support a USB port. After that it's really down to processor / RAM / ROM and coding tools. We all have our preferences but it's really what you like - they will all basically do the same job. I hope this helps.
@PatagonianDuck
@PatagonianDuck Жыл бұрын
Thank you for making the video. Does it handle multiple bluetooth controllers well? I want to use 4 controllers simultaneously. Thanks!
@BytesNBits
@BytesNBits Жыл бұрын
If you mean 4 ESP32s acting as controllers then it should be fine. One ESP32 acting as four controllers I'm not sure. You can add axes and buttons to the device definition but I'm not sure if you can get it to show up as 2 separate controllers.
@PatagonianDuck
@PatagonianDuck Жыл бұрын
@@BytesNBits the former. Thank you. I plan on creating some replacement guitar hero controllers
@hirudikapremaratne2034
@hirudikapremaratne2034 Жыл бұрын
Hi, I'm currently building this as a macro keyboard. Would it be possible to have a wiring diagram? I'm quite new to this stuff.
@BytesNBits
@BytesNBits Жыл бұрын
The video uses the ESP32 GPIO pins in their pull up config. To wire a button or switch you just need to connect one side of the button to the GPIO pin and other side to 0V.
@eral4517
@eral4517 Жыл бұрын
Quiet nice Video, it motivated me to extend my Sim Racing setup, although it’s really annoying having to reconnect it via Bluetooth every time I want it to work… Is there a fix for that? Greetings from Germany 🇩🇪!
@BytesNBits
@BytesNBits Жыл бұрын
The short answer is yes, you can code the ESP32 to reconnect to a paired device. The long answer is that you need to write a block of code to get it to do it. Have a look at the ESP32 bluetooth documentation. It's something I'll be covering in an upcoming video but not for a couple of months probably.
@MrBoi96969
@MrBoi96969 Жыл бұрын
hey can you give connections of buttons to esp32 and will this work without modifying the code that you have provided plz tell
@BytesNBits
@BytesNBits Жыл бұрын
Hi. All the tutorials have a web page for more details. Have a look at bytesnbits.co.uk/esp32-bluetooth-keyboard/ for the connection details.
@PostalPete
@PostalPete 5 ай бұрын
So with this solution, each pin only corresponds to one button. That the amount of possible input key press variations are limited. How could we increase the amount of possible buttons connected to the ESP32? Thanks by the way, this really helped me get my project going.
@BytesNBits
@BytesNBits 5 ай бұрын
You need to use an IO expander chip. Search for I2C IO expander and you'll get some pop up. I think Adafruit do a breakout board for some of these ICs. This basically gives you 8 or 16 IO lines at the end of the I2C bus, plus you can run a number of these at the same time so pretty much as many IO lines as you need.
@Quinchi
@Quinchi 5 ай бұрын
I think you can also increase the number of Buttons by reading a voltage on an analog pin and runing for example 4 buttons attached to a different value resistor. Search for "Arduino multiple buttons one pin" and there´s plenty of tutorials. Hope it helps!
@1001panoramas
@1001panoramas Жыл бұрын
Thanks for this project. I'm not familiar with this device, and before diving in deeper I would like to know if I can use it for 12 buttons or if not, which BLE device is better to use?. Thanks
@BytesNBits
@BytesNBits Жыл бұрын
The ESP32 has over 30 IO pins you can use or you can attach I2C devices. The keyboard driver in the tutorial lets you have buttons mimic any key on the keyboard. If you want the buttons to simulate a gamepad you need a different Bluetooth descriptor but it's fairly straight forward to achieve.
@1001panoramas
@1001panoramas Жыл бұрын
@@BytesNBits Thanks for your response ! I Only want keys, no gamepad... so it will fit the need.
@rollitomp2241
@rollitomp2241 Жыл бұрын
Hi very nice Video. Question: What the name for this "Mini-Joystick" and WHERE can I get it? Thank You!
@BytesNBits
@BytesNBits Жыл бұрын
www.adafruit.com/product/5223
@182mm
@182mm 2 жыл бұрын
YOU ARE MY HERO
@BytesNBits
@BytesNBits 2 жыл бұрын
Thanks.
@zupaxis
@zupaxis 2 жыл бұрын
Hi Bytes N Bits thank you so much for this awesome tutorial. I was wondering if you knew how I could go about adding the CTRL + r function?
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. You just need to send two key presses (or more if needed) before you release them. bleKeyboard.press(KEY_LEFT_CTRL); bleKeyboard.press('r');
@zupaxis
@zupaxis 2 жыл бұрын
@@BytesNBits I keep trying what you told me to do. The problem is that the software I am using r is rotate and thats all it wants to do so how do i go at setting up another button to do the ctrl-r?
@BytesNBits
@BytesNBits 2 жыл бұрын
@@zupaxis Hi. Does the software work if you just use a normal keyboard?
@zupaxis
@zupaxis 2 жыл бұрын
@@BytesNBits when I use the default script from the people that make the BLEKeyboard it works fine that way. After searching and searching I found this video kzfaq.info/get/bejne/fJmVq9ajzbrGeo0.html and so far his is working for what I need. Other than the fact that the buttons positive side has to be on the 3.3v rail.
@BytesNBits
@BytesNBits 2 жыл бұрын
@@zupaxis Great you've got it working.
@SamihaFansur
@SamihaFansur 4 ай бұрын
I'm unable to print to my notepad or any text editor but it prints to my serial monitor(while debugging), I'm using the latest BleKeyboard library and an esp32-s3-mini-1. Any idea why? I've tested it out on another esp32 as well
@BytesNBits
@BytesNBits 4 ай бұрын
Did you manage to get the deivices paired?
@SamihaFansur
@SamihaFansur 4 ай бұрын
Unfortunately not
@MichaelJordan-bw1sl
@MichaelJordan-bw1sl 8 ай бұрын
hi,currently work on a project that requires the use of gyroscope to build a game controller with 6 dof,is it good to use bluetooth connection? And if it becomes my keyboard I just assign the signal sent to any key that inputs to my games is it?
@BytesNBits
@BytesNBits 8 ай бұрын
Once you can read the gyroscope and work out what direction it's moving you can get that to drive whatever key presses you want. The video covers sending the key signals to your PC so you just need to add the gyro code.
@Silverturky
@Silverturky 11 ай бұрын
I'm going to use this to make a sim racing button box
@BytesNBits
@BytesNBits 11 ай бұрын
Sounds great. Let me know how you get on.
@pablopeu
@pablopeu Жыл бұрын
Is it fast enough to catch repetitive keypresses or key combinations?
@BytesNBits
@BytesNBits Жыл бұрын
Hi. Yes. I haven't measured the scanning rate but I guess it will be in the KHz range.
@ahcenebendenia5278
@ahcenebendenia5278 Жыл бұрын
Hello, thanks for the video, I know I am a bit late but do you know if I can use this project for a retropie controller ?
@BytesNBits
@BytesNBits Жыл бұрын
Yes and no. This project stimulates a keyboard so it will work wherever keyboard input works. If you need an actual game controller input we can still use the ESP32 but we need to set it up to emulate the Bluetooth of the game controller.
@zacmitchell_1984
@zacmitchell_1984 2 жыл бұрын
I'd like to see this but use a PS/2 wired connection instead of Bluetooth. So it could be used on older computers!
@BytesNBits
@BytesNBits 2 жыл бұрын
Have a look at www.arduino.cc/reference/en/libraries/ps2dev/ It's a PS/2 keyboard signal driver. I hope this helps.
@jaycheda3232
@jaycheda3232 2 жыл бұрын
Hello can i use the cd74hc4067 module to extend the number of gpio pins i have on my board to add more buttons?
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. I had a quick look at the module. Yes, it will allow you to use one analog IO pin to connect to 16 signals but don't forget you'll also need 4 IO pins to control the addressing. There are I2C analogue devices that will give you more connections from just the two data lines.
@Salvatore_A
@Salvatore_A 11 ай бұрын
I tried following the steps for the SendKeyStrokes with a Nano esp23 but after the code uploads the arduino doesn't actually trigger anything. The serial monitor shows the key presses occurring but nothing is actually typed. Any reason why this might be?
@BytesNBits
@BytesNBits 11 ай бұрын
Does the nano pair with the PC ok? How does the nano appear in the PC Bluetooth device list? Can you get any keypresses to appear on another device?
@Salvatore_A
@Salvatore_A 11 ай бұрын
@@BytesNBits No keypresses appear on any other device. When I pair to my PC it flips between paired and connected. On my phone Its the same situation
@lfrdo7815
@lfrdo7815 2 жыл бұрын
Hello, Can you plz do an example with analog values for a jostick
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. I do plan to do a full gamepad project soon. Keep an eye open.
@lfrdo7815
@lfrdo7815 2 жыл бұрын
@@BytesNBits thank you, i am looking forward to it
@TaraPayne
@TaraPayne Жыл бұрын
Annoyed that you point to a site riddle with ads with the promise of code that really isn't there.
@BytesNBits
@BytesNBits Жыл бұрын
Hi. Sorry you didn't find the code. The whole Arduino sketch is downloadable through the orange 'Download Code' button at the bottom of the page, after the code explanations.
@beatwrecker7343
@beatwrecker7343 2 ай бұрын
i doubt you're active anymore to even see this comment, but im having a LOT of issues using the keyStates array in this code, in my own project. im new to coding, but its almost the exact same minus a few variable numbers (and pin numbers) changed and added??
@BytesNBits
@BytesNBits 2 ай бұрын
It's hard to say what your errors are but try to stick to the way the code is written in the example. You should only have to change pin numbers to match your project.
@cwtjones
@cwtjones 2 жыл бұрын
Hi Bytes N Bits, is there a way i can create similar keypad using the esp32 and the code, but with 30 buttons?
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. Yes. You need to use an I2C IO expander to add more input IO channels.
@MyszkoServe
@MyszkoServe Жыл бұрын
When I use your code, and use media keys. I get compile errors? Can you help?
@BytesNBits
@BytesNBits Жыл бұрын
What compile errors are you getting? Does it not recognise the key codes?
@rikupasanen
@rikupasanen Жыл бұрын
I like the simplicity of the code, but as I'm amateur of coding, how do I add debounch function to the code. Any advice on this?
@BytesNBits
@BytesNBits Жыл бұрын
Hi. To debounce in software you need to monitor the switch value for a small number of code loops. e.g. the switch value changes from 1 to 0. You monitor the signal and if it doesn't change over the next 5 code loops you accept the new value.
@rikupasanen
@rikupasanen Жыл бұрын
@@BytesNBits Could you give me example of code? I'm building bt controller for motorcycle use.. switching between apps and controlling map with cloves on. Everything works on garage but on the road buttons start to act up..
@pppiu
@pppiu 2 жыл бұрын
Hi, great video. I tried to adapt your project but using an mpu6050 to get directional (up, down, left, right), it works for a few minutes and then freezes. Searching on google, this kind of problem with the BLE library seems to be common, I suspect that the BLE + mpu6050 data is overloading the ESP32's memory, can you give me any suggestions, thanks.
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. Try running the ESP32 with it plugged in to the PC so you can use the serial terminal. Use some debug code to see what it's doing when it looses connection. Has the ESP32 crashed, lost BT connection, etc.
@pppiu
@pppiu 2 жыл бұрын
@@BytesNBits I ended up discovering the problem, Windows10 adds it as ESP bluetooth gamepad, after a few minutes it changed to ESP CH343S.... then I lost the connection, already on my Android phone it worked perfectly, thanks again for your attention!
@BytesNBits
@BytesNBits 2 жыл бұрын
@@pppiu Great to hear you've got it sorted out.
@dreamcazman
@dreamcazman 10 ай бұрын
Hey, I'm trying to make a button box for my PC using a Lolin32 lite and your code. I've editted the code slighting to include additional buttons and change the key pressed. It connects to my PC ok but when shorting a respective GPIO pin with ground, nothing activates. The pins are high as I've tested this with a multimeter. Any ideas?
@BytesNBits
@BytesNBits 10 ай бұрын
I'd put some debug print statements in the code to make sure the ESP32 is reading the inputs OK and then adding them to the Bluetooth output. If that's all OK there's probably an issue with the Bluetooth code building up the data package. Make sure the bluetooth code is able to send characters to the PC as in the first code example on the video. Then concentrate on getting one button to send one character. Then work up from there.
@dreamcazman
@dreamcazman 10 ай бұрын
@@BytesNBits Thanks for the reply. After some more testing, the Arduino seems to be functioning ok by the response I'm getting from the serial monitor, just not getting any output in notepad. I suspect the PC should see the ESP32 as a HID device and it's not doing that hence why I'm not getting any output.
@BytesNBits
@BytesNBits 10 ай бұрын
@@dreamcazman Just checking... did the ESP32 keyboard pop up on your PC bluetooth settings and were you able to pair with it? If yes, try forgetting the pairing and them re pairing. The ESP32 should only send the characters if it thinks it has a valid connection. When you open notepad make sure you click inside the edit window to give it focus to receive the keyboard presses.
@dreamcazman
@dreamcazman 10 ай бұрын
@@BytesNBits Yes, I checked all of that, it was definitely connected properly via BT.
@dreamcazman
@dreamcazman 10 ай бұрын
@@BytesNBits Just a quick update, I've scrapped everything and started again (new Arduino install, updates etc) and your code seems to be working in it's default state which is a great start. 🥳 I'm now trying to implement using special keys, (escape, enter, arrow keys, etc). Are you able to assist with this? Sorry for the noobish questions, but I am not sure how these are to be entered into the code. Thanks for everything thus far. EDIT: After much trial and error, I got the code working with special non-type keys using some decimal values I found. The respective pinMode entries were also entered further down the sketch. #define Up 32 #define Down 33 #define Left 25 #define Right 26 #define Coin 13 #define Start 15 #define Spacebar 2 #define Enter 0 #define Escape 4 bool keyStates[9] = {false, false, false, false, false, false, false, false, false}; int keyPins[9] = {Up, Down, Left, Right, Coin, Start, Spacebar, Enter, Escape}; uint8_t keyCodes[9] = {(218), (217), (216), (215), '5', '1', (180), (176), (177)};
@karasuZanu
@karasuZanu 2 жыл бұрын
Hi, i have "esp32 lolin32 lite" and it uses CH340G, can i do bluetooth keyboard with this? please help me.
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. That should be fine. I think it has all the Bluetooth and WiFi hardware built in.
@karasuZanu
@karasuZanu 2 жыл бұрын
​@@BytesNBits thank you, i will try again, maybe, linux needed another package too. Edit: And i did it, thank you again. "pip3 install pyserial"
@umutkayacan7659
@umutkayacan7659 2 жыл бұрын
Video after video!
@BytesNBits
@BytesNBits 2 жыл бұрын
Trying to keep up the momentum!
@marwan.naasan
@marwan.naasan Жыл бұрын
Woow ...great video .. I'm wondering if can I integrate MPU6050 with the gamepad to work Gyro and play motion games like wii games in dolphin emulator .. cani do that ?? .
@BytesNBits
@BytesNBits Жыл бұрын
In principal yes. Getting the gyro readings into the ESP32 should be fairly straightforward. The hard part will be working out how dolphin needs the data to be presented to it over the bluetooth link. Have a look at the Wii Remote bluetooth descriptor - some info here wiibrew.org/wiki/Wiimote
@marwan.naasan
@marwan.naasan Жыл бұрын
@@BytesNBits Thank you for your reply. I think I am a beginner in the Gamepads and also a beginner in the ESP32 . I usually work on the Arduino Uno, and my English is not that good, so I could not understand the article you sent.. But if the controller that you made works like any communication device in a computer This means that the board can be set up in any emulator by setting the control buttons in the settings. Is that possible?? Honestly, I do not have these parts to try, so I ask you about them , because in fact I want to buy these parts only for this thing, which is to connect the MPU650 to it for WII games
@BytesNBits
@BytesNBits Жыл бұрын
@@marwan.naasan The ESP32 will let you mimic any bluetooth device. You need to think about the two halves of the project separately. Getting the ESP32 to read the data from the MPU6050 is one half. You need to translate that data into the motion you want to mimic. You can test this half by just writing data to the serial monitor. The second half is to get the ESP32 to present that data over the Bluetooth connection in a way that the games can use it. The ESP32 tells the connected computer what sensor and button data it's providing by sending over the Bluetooth descriptor. In the video you'll see the descriptor for a keyboard. You need to work out what descriptor settings you need to mimic the WiiMote. I'm not sure if that uses standard settings or some custom ones so you'll need to do some research. I hope this helps.
@marwan.naasan
@marwan.naasan Жыл бұрын
Thank you so much ... I'll try it soon .. and I'll tell you about that
@dekipet
@dekipet 2 жыл бұрын
6:20 or solder 100nF between EN and GND. And forget that BOOT button forever.
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. Thanks for the tip.
@SimplyARandomPerson
@SimplyARandomPerson 2 ай бұрын
Does this work with an ESP32 Nano?
@BytesNBits
@BytesNBits 2 ай бұрын
It should do but you'll need to rework some of the code to match that system.
@kenny0217
@kenny0217 Жыл бұрын
hello , is there any way i could use a esp8266 for sim racing pedals ? i'm a beginner and want to make my own setup , a code would awesome
@BytesNBits
@BytesNBits Жыл бұрын
Yes. You can simulate most usb devices. You just need to work out the USB or bluetooth descriptor. I'll be doing more on controllers in some upcoming videos but that will be a couple of months away.
@kenny0217
@kenny0217 Жыл бұрын
@@BytesNBits great , thanks
@messias3521
@messias3521 2 жыл бұрын
HY am i wrong or is the code on your blog not the one from the video?
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. It looks like the website is messing up some of the characters in the listings. I'll have a look and see if I can fix that.
@toddroles3234
@toddroles3234 2 жыл бұрын
Did it get fixed? I plan to build this great project. I made a wired one with a arduino pro micro, but want to try a Bluetooth one with esp32
@samhu1962
@samhu1962 Жыл бұрын
Do anyone knows if this can be connected to Nintendo switch?
@BytesNBits
@BytesNBits Жыл бұрын
Hi. I haven't tried that! If the switch accepts a Bluetooth keyboard it should work. The software presents the keypad as a standard Bluetooth device.
@jaycheda3232
@jaycheda3232 2 жыл бұрын
i have a esp32 cam, can i use that instead for this project?
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. That should be fine. You might need to use some different pins if they clash with your display.
@jaycheda3232
@jaycheda3232 2 жыл бұрын
@@BytesNBits display? esp32cam doesnt come with a display if you mean the cam, how do i check which pins might clash?
@jaycheda3232
@jaycheda3232 2 жыл бұрын
@@BytesNBits There are total 10 gpio pins on esp32cam and i want 7 button is that possible will i need more pins?
@bimog8923
@bimog8923 Ай бұрын
yeah, idk but "Operation did not complete successfully because the file contains a virus or potentially unwanted software."
@bimog8923
@bimog8923 Ай бұрын
it changed, now it is a loooong text with exit status 1 Error compiling for board ESP32 Dev Module.
@BytesNBits
@BytesNBits Ай бұрын
make sure you've got your Arduino ide set up correctly with the relevant modules for ESP32 loaded.
@requiem4adreamc
@requiem4adreamc Жыл бұрын
Does it connect as HID?
@BytesNBits
@BytesNBits Жыл бұрын
The library code identifies the ESP32 specifically as a keyboard rather than a generic device.
@requiem4adreamc
@requiem4adreamc Жыл бұрын
@@BytesNBits I couldn't make it work with windows. It does connect to android after a few taps to device. But it never connects to pc. I tried BLEKeyboard and BLEGamepad seperately. Windows keeps saying "try connecting your device again".
@BytesNBits
@BytesNBits Жыл бұрын
@@requiem4adreamc Hi. The ESP32 uses Bluetooth Low Energy rather than the standard BT signal. If your PC is a bit older it may be that your receiver isn't compatible.
@requiem4adreamc
@requiem4adreamc Жыл бұрын
@@BytesNBits Thank you very much. It is a little old. It has Bt 4.0. When i check it on device manager, details, capabilities tab; it says Bluetooth radio supports Low Energy Central Role and Bt radio supports Low Energy Peripheral Role. But anyways maybe it does not work properly. I will give it a try with BT dongle.
@p-tech8166
@p-tech8166 2 жыл бұрын
Plz make video on alexa on raspberry pi zero plzzzz I am not able to do that
@BytesNBits
@BytesNBits 2 жыл бұрын
Hi. I'll add that to the list but it might take a while to get to it. A quick search through up this project, www.tomshardware.com/uk/how-to/raspberry-pi-alexa-voice-service Hope this helps.
@p-tech8166
@p-tech8166 2 жыл бұрын
@@BytesNBits thank you for your support 👍
@toxic1428
@toxic1428 2 жыл бұрын
eaaa
@DoctorHAXXX
@DoctorHAXXX 5 ай бұрын
What happened to this project? Been looking most of the day for a simple to make Macropad and this is the closest thing to what I want. BUT when I do the changes I want it breaks and I have no idea why. Not to well versed in coding obviously. But what I'm trying to do is to add Macros to the keys instead and it breaks it completely. Even just changing what it should input kinda does...
@BytesNBits
@BytesNBits 5 ай бұрын
With this one you can assign a single key or sequence of keys to a button press. In the code you should see how a single key press is generated. Multiple key presses are that repeated with perhaps a short delay between them..
@DoctorHAXXX
@DoctorHAXXX 4 ай бұрын
@@BytesNBits That's what I was figuring. But something breaks anytime I try to change the inputs. Managed to make it input the letter W when I changed the GP_UP from ' to KEY_UP_ARROW but that was the only thing that happened. Oh and it might be related to the fact that the keyboard seems to be registering as US-layout and I am in Sweden ergo ÅÄÖ causes problems since ' becomes Ä for me. Gotta have a sit down another day and try to pick apart what I'm doing wrong. Your code is by far the most simplistic one I have come across so far. And by that I'm not trying to say anything is bad about it. Just that I love the "I need button to do this" approach and not "I need button that does this and 100 lights to make this configuration while it beeps" kinda mess that so many seem to favour. But I'm still to much of a novice to make sense of the necessities of some parts of it. If I want to increase the amount of buttons. I figure I have to change the input amount from 6 to 12 right? Saw some keyboard.h code that was similar but trying to make it .write(67) or (A) didn't work at all... I'm kinda stumped and no matter how much I Google I don't get anywhere.
@DoctorHAXXX
@DoctorHAXXX 4 ай бұрын
@@BytesNBits Been trying unit8_T keyCodes[6] = {'KEY_UP_ARROW', 'b', 'c', 'd', 'e', 'f'} as an example and it only produce W and when I do some (0xB3) I get = sign.... No clue how to make it do things like "UP, DOWN, LEFT, LEFT, RIGHT" for example. Which is my goal... Am I just inputting my keyCodes wrong or am I trying to use the tool incorrectly?
WiFi Control Your Micropython Project Using a Web Interface
51:13
Bytes N Bits
Рет қаралды 29 М.
USB клавиатура и мышка на обычной Arduino Nano! EasyHID ч.1
8:03
Заметки Ардуинщика
Рет қаралды 163 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,8 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 54 МЛН
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 10 МЛН
Whoa
01:00
Justin Flom
Рет қаралды 45 МЛН
Bluetooth Classic & BLE with ESP32
38:00
DroneBot Workshop
Рет қаралды 29 М.
Bluetooth HID using just an ESP32 (inc Bluetooth macro keypad)
9:38
How to make your own MIDI over Bluetooth instruments
11:31
KontinuumLAB
Рет қаралды 17 М.
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,6 МЛН
How to Build an Open Source Bluetooth Mechanical Keyboard
16:03
element14 presents
Рет қаралды 12 М.
DIY BLE Gamepad using ESP32 | PCBway
10:01
Electro Point
Рет қаралды 37 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 4,6 МЛН
I built my own graphics card
15:34
jdh
Рет қаралды 1,4 МЛН
Control your keyboard with Arduino!  Automate simple tasks!
22:48
Programming Electronics Academy
Рет қаралды 66 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,8 МЛН