- Is it possible to send keys to a computer connecting the RPi A+ via USB on the computer?
- Will the RPi have enough power?
- If yes, how?
Asked
Active
Viewed 2,237 times
1

Drarig29
- 113
- 5
-
google is your friend - head over to adafruit and especially the modules section -- this is for a pi zero, but I guess you could make it work with any – macf00bar Feb 18 '16 at 13:58
-
Keys? You mean keybaord strokes? When you say USB, you mean using the USB protocol or a USB pen drive? Is yes, then you can use the PS2 emulation over USB to send keystrokes... but that is hardware dependend. You cannot just connect to USB like old day serial console. Even though USB stands for Universal Serial Bus.... doh – Piotr Kula Feb 18 '16 at 14:01
-
Please edit your question so that it's at least clear what you are asking. – Havnar Feb 18 '16 at 14:45
1 Answers
2
Partly no.
Based on what I inferred(guessed) from your question, no. Plugging in the Pi to a computer via USB using the micro-USB port will not provide you the chance to send data over it since, from what I've guessed, you're trying to use the Pi's micro-USB port. That port is strictly for power only except on the Pi Zero, one is for data and one is for power. Nevertheless, all Pis can only work as a host (you cannot plug it into a USB port and use it as a device or "slave").
You'll need adapters like a USB to serial adapter and some programming skills to pull it off. So, yes.

Aloha
- 7,136
- 1
- 28
- 52
-
There's no mention in the question or any of the subsequent comments of a micro USB port. Kinda funny seeing it in a potential answer? – goobering Feb 18 '16 at 15:30
-
@goobering "based on what I inferred". This is a common question where people ask if it's possible to connect their Pi via USB and use it as a slave. – Aloha Feb 18 '16 at 15:32
-
-
1