Page 1 of 1

Can I use an USB Keyboard with RS232 on ESP32 ?

Posted: Thu Feb 20, 2020 11:19 am
by GeorgeFlorian1
Hello !

I need to implement that keyboard to that ESP32. The keyboard has USB and I found a USB to RS232 converter.

Should I try and do that or it will be easier to use a Raspberry ?

My ESP board: https://www.olimex.com/Products/IoT/ESP ... e-hardware
The keyboard: https://www.aliexpress.com/item/32319513912.html
The converter: https://www.olimex.com/Products/Modules ... e-hardware

Re: Can I use an USB Keyboard with RS232 on ESP32 ?

Posted: Thu Feb 20, 2020 5:38 pm
by pipi61
This keyboard AND this usb converter as USB device(slave)
Cannot connect to each other
https://electronics.stackexchange.com/q ... and-device
Locate the arduino usb host module ...

Re: Can I use an USB Keyboard with RS232 on ESP32 ?

Posted: Thu Feb 20, 2020 8:53 pm
by GeorgeFlorian1
pipi61 wrote:
Thu Feb 20, 2020 5:38 pm
This keyboard AND this usb converter as USB device(slave)
Cannot connect to each other
https://electronics.stackexchange.com/q ... and-device
Locate the arduino usb host module ...
So I can't do anything with that keyboard and any ESP32 ?

Re: Can I use an USB Keyboard with RS232 on ESP32 ?

Posted: Thu Feb 20, 2020 9:57 pm
by pipi61
find and try PS2 keyboard arduino lib, or find arduino usb host module and library ...
https://www.aliexpress.com/wholesale?ca ... st+arduino
https://www.google.com/search?client=af ... st%20esp32

Re: Can I use an USB Keyboard with RS232 on ESP32 ?

Posted: Fri Feb 21, 2020 10:07 am
by GeorgeFlorian1
pipi61 wrote:
Thu Feb 20, 2020 9:57 pm
find and try PS2 keyboard arduino lib, or find arduino usb host module and library ...
https://www.aliexpress.com/wholesale?ca ... st+arduino
https://www.google.com/search?client=af ... st%20esp32
But why wouldn't the USB to RS232 converter work ? Shouldn't the keyboard send through the serial some signals on key press that I can read using the ESP32 ?

Re: Can I use an USB Keyboard with RS232 on ESP32 ?

Posted: Fri Feb 21, 2020 10:16 am
by pipi61
Communication only usb host between usb device.
Two usb devices do not communicate with each other