Can I use an USB Keyboard with RS232 on ESP32 ?

GeorgeFlorian1
Posts: 160
Joined: Thu Jan 31, 2019 2:32 pm

Can I use an USB Keyboard with RS232 on ESP32 ?

Postby GeorgeFlorian1 » Thu Feb 20, 2020 11:19 am

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
Last edited by GeorgeFlorian1 on Fri Feb 21, 2020 10:09 am, edited 1 time in total.

pipi61
Posts: 56
Joined: Fri Dec 23, 2016 10:58 pm

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

Postby pipi61 » 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 ...

GeorgeFlorian1
Posts: 160
Joined: Thu Jan 31, 2019 2:32 pm

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

Postby GeorgeFlorian1 » Thu Feb 20, 2020 8:53 pm

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 ?

pipi61
Posts: 56
Joined: Fri Dec 23, 2016 10:58 pm

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

Postby pipi61 » 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

GeorgeFlorian1
Posts: 160
Joined: Thu Jan 31, 2019 2:32 pm

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

Postby GeorgeFlorian1 » Fri Feb 21, 2020 10:07 am

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 ?

pipi61
Posts: 56
Joined: Fri Dec 23, 2016 10:58 pm

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

Postby pipi61 » Fri Feb 21, 2020 10:16 am

Communication only usb host between usb device.
Two usb devices do not communicate with each other

Who is online

Users browsing this forum: No registered users and 52 guests