Dude, thanks so much for this. I have a loud machine I’m using for ML stuff and I’ve been reluctant to move it to the basement as I didn’t want to have to run downstairs with a monitor for the odd issue. I also looked at KVMs and was annoyed at the prices. I have a R Pi sitting here I was looking to do a project with. This is perfect!
Yeah, I haven't looked into that much because everything is on my local network. ngrok looks like it would work. One of my users is looking into remote.it, which seems like a similar service.
I work for remote.it. If you or your users need any help setting up remote access to the TinyPilot let us know. This looks like a great application. We can make ssh/VNC/http on the Pi available remotely over internet as a free service no problem.
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.
>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...
You might also be able to use the "standard" radio kit metal boxes - tap some standoffs, carefully drill some holes for wires etc. Dunno which works out better for the world - ordering a pre-fab metal box that you have to do some work on (or perhaps use https://www.frontpanelexpress.com/ to get a customised enclosure), or printing something from plastic. Might depend on production volume, metal used etc.
I think you might run into a lack of connectivity on the Pi Zero W. Since the only data USB port has to run in device mode, I would assume you can't connect the HDMI capture device.
The immediate issue would be the Pi Zero W only has one usable (micro)USB port, the other port is Power In only. If you run it for OTG, you can't use it for the dongle.
There would be ways around this though, perhaps using a cheap microcontroller for the USB HID stuff.
Yeah I forgot that only one of the USB ports actually does data. I guess you could use a Teensy that interfaces through the GPIO pins and pretends to be the keyboard and mouse.
>Cool project, but what about power management? What happens if the PC being controlled crashes and does not let you reboot it using keyboard shortcut? Yeah, that's one of the limitations. TinyPilot can't control power for the target computer. I don't know of any way to manage power without connecting the Pi to the target machine's motherboard, but that increases complexity significantly. I'm using this for a homelab, so it's easy for me to walk over and cycle power if that ever comes up, but for this to support more remote scenarios, I'd need to address this.
APC produces (or rebranded) power control modules you can control over Ethernet. They are probably expensive.
There are most likely cheaper products which would work. You should probably implement some kind of power control interface that could be used. Calling a shell script would be enough and some example implementations provided by your users. :) It doesn't need to be complicated.
Perhaps a fake USB device that issues power or sleep button requests could work. I had limited success with this on Linux using an HID keyboard emulator. However this won't work on a machine that's too far gone to respond to USB, and that's also an issue with the physical power button as well. Perhaps an AC latching relay would work to cut power.
Wake-on-Lan can handle powering on. It should be possible to directly connect a RPi GPIO pin directly to the 0.1" headers on the motherboard.. the power and reset buttons are just closing a circuit to pull high/pull low an input pin. Use a 1k resistor between the Rpi and motherboard headers for protection.
A horrible way would be to set the target to power on after power loss. Plug the target into a WiFi-controlled smart plug, like the Belkin Wemo. In the event of catastrophic hard lock, power cycle it at the wall.
A better way would be a relay and microcontroller, which you could also potentially use for the USB HID stuff too. In theory, you could have a HDMI switch, a single Pi and HDMI grabber, and just a microcontroller board for each target machine that could have power button control, keyboard emulation etc built in.
Can highly recommend the TP-Link HS100 for this - it's "just" a wifi power switch. Change your motherboard settings to "power on after power loss" and you've got your remote reboot.
Comments (279) 64 threads
Show all comments
Showing thread 10 of 64
Continue this thread — 1 reply
>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...
Continue this thread — 8 replies
There would be ways around this though, perhaps using a cheap microcontroller for the USB HID stuff.
Continue this thread — 1 reply
I'm might be damaged by testing and working with embedded development.
>Cool project, but what about power management? What happens if the PC being controlled crashes and does not let you reboot it using keyboard shortcut?
Yeah, that's one of the limitations. TinyPilot can't control power for the target computer.
I don't know of any way to manage power without connecting the Pi to the target machine's motherboard, but that increases complexity significantly. I'm using this for a homelab, so it's easy for me to walk over and cycle power if that ever comes up, but for this to support more remote scenarios, I'd need to address this.
There are most likely cheaper products which would work. You should probably implement some kind of power control interface that could be used. Calling a shell script would be enough and some example implementations provided by your users. :) It doesn't need to be complicated.
A better way would be a relay and microcontroller, which you could also potentially use for the USB HID stuff too.
In theory, you could have a HDMI switch, a single Pi and HDMI grabber, and just a microcontroller board for each target machine that could have power button control, keyboard emulation etc built in.
Continue this thread — 2 more replies
Continue this thread — 9 more replies