zlacker

[return to "Show HN: TinyPilot – Build a KVM over IP using a Raspberry Pi"]
1. mtlync+v2[view] [source] 2020-07-23 14:11:40
>>mtlync+(OP)
Author here. Happy to answer any questions or take any feedback about this post.
◧◩
2. ghaber+Eb[view] [source] 2020-07-23 15:06:44
>>mtlync+v2
Would a Pi Zero W work for this, or do you need a full-size Pi 4? I would think that with the HDMI dongle doing the hardware MJPEG encoding, a Pi Zero might suffice. It'd be really neat to A) bring the cost down another $30 and B) be able to package everything into a tiny 3D printed case.
◧◩◪
3. mtlync+hd[view] [source] 2020-07-23 15:15:58
>>ghaber+Eb
Thanks for reading!

>Would a Pi Zero W work for this, or do you need a full-size Pi 4?

I tested Key Mime Pi (the keyboard-only version) on the Pi Zero W and it worked great. I haven't tested TinyPilot on the Pi Zero W, but I think it will work. The video encoding is happening in the HDMI dongle, so it doesn't hammer resources much. I don't have a USB to microUSB adaptor on hand, but I'll order one now and see if it works.

>be able to package everything into a tiny 3D printed case.

Yeah, that would be neat! One of the biggest issues I have with TinyPilot's setup right now is that it looks kind of like a bunch of random hobbyist parts stuck together. A 3D printed case would be good and wouldn't have the heat issues that Pi 4 has.[0]

[0] https://www.jeffgeerling.com/blog/2019/best-way-keep-your-co...

◧◩◪◨
4. trm42+0H[view] [source] 2020-07-23 17:48:04
>>mtlync+hd
Do you happen to have any idea, whether older RPIs like 1 or 2 could work for this fast enough? Have some of those laying around.
◧◩◪◨⬒
5. mtlync+PW[view] [source] 2020-07-23 19:06:30
>>trm42+0H
The video capture part should work, but I don't believe they support USB OTG, so they wouldn't be able to impersonate the keyboard.

The official documentation[0] says all Pi devices have USB OTG, but I'm not sure if there's something else about the Pi 4 and Pi Zero W that allows USB gadget mode because I've never found anyone talking about using it before recent generations of Pi. This StackExchange answer says the A and the A+ had it, but that the 2 doesn't.[1]

[0] https://www.raspberrypi.org/documentation/hardware/raspberry... [1] https://raspberrypi.stackexchange.com/questions/71613/how-to...

◧◩◪◨⬒⬓
6. Scaevo+E01[view] [source] 2020-07-23 19:26:06
>>mtlync+PW
I'd expect the Pi Zero W to be fast enough to pass through the MJPEG stream and impersonate the keyboard, which should cut the cost by $20+ plus however much you save on not needing a fancy case.
◧◩◪◨⬒⬓⬔
7. mtlync+La1[view] [source] 2020-07-23 20:28:54
>>Scaevo+E01
Yeah that's true. I stopped thinking about the Pi Zero W early in the project because I assumed it would choke on video encoding. When I discovered that the HDMI dongle was doing the heavy lifting, I forgot to revisit that assumption. I'm going to order an USB to micro-USB adaptor to test it out because it would slim things down significantly.
◧◩◪◨⬒⬓⬔⧯
8. Scaevo+lN1[view] [source] 2020-07-24 00:16:43
>>mtlync+La1
Woops, forgot the major issue-- the Pi Zero only has one USB port (the other is just for power), so you couldn't get video frames in at the same time as you pretended to be a keyboard.
◧◩◪◨⬒⬓⬔⧯▣
9. mtlync+tZ1[view] [source] 2020-07-24 02:23:03
>>Scaevo+lN1
The Pi Zero's power port is actually a USB OTG port. I used it in my precursor project to forward keystrokes:

https://mtlynch.io/key-mime-pi/

◧◩◪◨⬒⬓⬔⧯▣▦
10. magica+sH4[view] [source] 2020-07-24 23:15:13
>>mtlync+tZ1
On the web page you explicitly say to connect it to the port labelled "USB", which is not the power port.
◧◩◪◨⬒⬓⬔⧯▣▦▧
11. mtlync+1T4[view] [source] 2020-07-25 01:34:20
>>magica+sH4
Whoops, you're right. I misremembered. It's power on the Pi 4 and data on the Pi Zero.

Thanks for the correction!

[go to top]