Raspberry PI Keyboard

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
bigbob
Member
Member
Posts: 122
Joined: Tue Oct 01, 2013 2:50 am
Location: Budapest, Hungary
Contact:

Raspberry PI Keyboard

Post by bigbob »

Hi,

I am planning to by my first Raspberry Pi. I read tutorials and there is one thing I don't understand.
I thought that the first thing we needed to implement was the USB-keyboard driver.
I was surprised to see that the tutorials use the UART to get the keyboard-input.
Do we need to buy extra hardware for the USB-to-UART conversion or the Raspberry Pi does that for us?
I know only a little about hardware ...

Regards,
rob
User avatar
iansjack
Member
Member
Posts: 4705
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Raspberry PI Keyboard

Post by iansjack »

Those tutorials are referring to serial input via a terminal application running on another computer. Depending upon the computer you need a serial to Pi serial cable or - more likely - a USB to Pi serial cable (e.g. https://uk.farnell.com/adafruit-industr ... gKMTPD_BwE ) These cables connect to the gpio pins on the Pi.

To get input from a USB keyboard you need to write (or find) a USB driver (e.g. https://github.com/rsta2/uspi ).
bigbob
Member
Member
Posts: 122
Joined: Tue Oct 01, 2013 2:50 am
Location: Budapest, Hungary
Contact:

Re: Raspberry PI Keyboard

Post by bigbob »

Thanks!
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: Raspberry PI Keyboard

Post by Candy »

Note that the driver @iansjack linked is relevant for Rpi 1-3 (including 3b+), but not Rpi4 which uses an XHCI controller for the USB ports.
Post Reply