need help , establishing connection between esp32-s3 and usb keyboard. i have tried arduino inbuilt example to interface usb keyboard with esp32-s3 also espUSBHost lib, USBHost library, but not working, any pressed key is not being printed on serial. if anyone have experience with this or having knowledge would help a lot.
Your topic has been moved to a more suitable location on the forum. Please read the sticky topics in Uncategorized - Arduino Forum to understand why.
Please give a good description of the project.
I assume that you can understand that we have no idea what your tried.
Please give a good description what "not working" means.
i have tried arduino inbuilt example to interface usb keyboard with esp32-s3 also espUSBHost lib, USBHost library, but not working, any pressed key is not being printed on serial. hope now you will able to understand my issue.
i want to to use usb keyboard with esp32-s3 as hid device, tried basic example of keyboardserial under usb section, tried espusbhost library. but not able to inerface keyboard with esp. if anyone have any suggestion or knowledge, it would be helpful for me.
aduino code :
/*
Keyboard test
Reads a byte from the serial port, sends a keystroke back.
The sent keystroke is one higher than what's received, e.g. if you send a,
you get b, send A you get B, and so forth.
The circuit:
- none
created 21 Oct 2011
modified 27 Mar 2012
by Tom Igoe
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/KeyboardSerial
*/
#if ARDUINO_USB_MODE
#warning This sketch should be used when USB is in OTG mode
void setup(){}
void loop(){}
#else
#include "USB.h"
#include "USBHIDKeyboard.h"
USBHIDKeyboard Keyboard;
void setup() {
// open the serial port:
Serial.begin(115200);
// initialize control over the keyboard:
Keyboard.begin();
USB.begin();
}
void loop() {
// check for incoming serial data:
if (Serial.available() > 0) {
// read incoming serial data:
char inChar = Serial.read();
// Type the next ASCII value from what you received:
Keyboard.write(inChar + 1);
}
}
#endif /* ARDUINO_USB_MODE */
I have merged your cross-posts @mayur09.
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.
I also noticed you created the topic in the Uncategorized category for the second time even though we very clearly communicate that category should not be used as sterretje already told you.
You are establishing a pattern of inappropriate behavior. It is time for you to start being more respectful of our forum. If you continue as you have, an account suspension is in your near future.
Thanks in advance for your cooperation.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.