tinypilot icon indicating copy to clipboard operation
tinypilot copied to clipboard

Pi Zero W

Open peterberbec opened this issue 6 years ago • 29 comments

The lower power requirements, smaller size, and lower heat of the Pi0 allow for an interesting possibility. The 0 could be totally powered through the OTG cable and with a otg adapter, the hdmi capture card could still be attached.

I'm picking up a P and a OTG adapter. I will report back.

peterberbec avatar Jul 28 '20 05:07 peterberbec

It's here and I'm doing the install. Updates later. Pi 0 is slow, but that shouldn't matter since the overhead is minimal, right?

20200729_205047_HDR

peterberbec avatar Jul 30 '20 00:07 peterberbec

Works

20200730_010738_HDR

peterberbec avatar Jul 30 '20 05:07 peterberbec

Nice! Thanks for testing that, @peterberbec!

mtlynch avatar Jul 30 '20 17:07 mtlynch

@peterberbec what was the video performance like?

rvdwegen avatar Aug 03 '20 16:08 rvdwegen

It was definately NOT under 200ms of lag, but usable.

I'm testing out a FriendlyElec NanoPi Meo mext

On Mon, Aug 3, 2020, 12:42 Roel van der Wegen [email protected] wrote:

@peterberbec https://github.com/peterberbec what was the video performance like?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mtlynch/tinypilot/issues/93#issuecomment-668124032, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNU4LQM6JV5TQCJSCISBTR63SIHANCNFSM4PKE2RVQ .

peterberbec avatar Aug 03 '20 16:08 peterberbec

@peterberbec would you be able to share the name/link of the USB cable you're using with the Pi?

mtlynch avatar Aug 03 '20 17:08 mtlynch

The microUSB to regular USB and charging port cable?

That's a microUSB OTG/charge cable.

https://www.amazon.com/dp/B07FY9Z9GD

On Mon, Aug 3, 2020, 13:03 Michael Lynch [email protected] wrote:

@peterberbec https://github.com/peterberbec would you be able to share the name/link of the USB cable you're using with the Pi?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mtlynch/tinypilot/issues/93#issuecomment-668133641, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNU4LEFMTBXHRBMX4TKLTR63UVHANCNFSM4PKE2RVQ .

peterberbec avatar Aug 03 '20 17:08 peterberbec

Hey, did you have to make any changes or was it plug and play on the Pi zero?

rvdwegen avatar Aug 06 '20 20:08 rvdwegen

Plug, curl | bash, play

peterberbec avatar Aug 06 '20 20:08 peterberbec

And the keyboard works too?

rvdwegen avatar Aug 08 '20 06:08 rvdwegen

And the keyboard works too?

Doubt it. Pi zero has only 1 USB that supports data (other one is power only, no data). So it can either behave as host (for the HDMI adapter) or as usb device (for keyboard input). Since he is using the only data port for HDMI to usb adapter, no keyboard input should be available.

Pi-Zero-Features-Graphic-Small

somik123 avatar Aug 08 '20 09:08 somik123

I could have connected a hub to the otg, or a Bluetooth keyboard, but I didn't. I can test such a setup if their is interest. I was doing it as a test of the Zero platform's viability, and the speed makes it not useful to me.

On Sat, Aug 8, 2020, 05:33 Somik [email protected] wrote:

And the keyboard works too?

Doubt it. Pi zero has only 1 USB that supports data (other one is power only, no data). So it can either behave as host (for the HDMI adapter) or as OTG (for keyboard input). Since he is using the only data port for HDMI to usb adapter, no keyboard input is available.

[image: Pi-Zero-Features-Graphic-Small] https://user-images.githubusercontent.com/7911288/89706999-26aa2880-d99d-11ea-8734-37d5a2597ba1.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mtlynch/tinypilot/issues/93#issuecomment-670850855, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNU4KLDZSQKKK4GZ3FTG3R7ULVLANCNFSM4PKE2RVQ .

peterberbec avatar Aug 09 '20 01:08 peterberbec

@peterberbec

I could have connected a hub to the otg, or a Bluetooth keyboard, but I didn't. I can test such a setup if their is interest. I was doing it as a test of the Zero platform's viability, and the speed makes it not useful to me.

I did connect it to a usb hub. Only the video capture works. You need to connect it directly to PC without any hub to get the keyboard input to work, but then video wont work. So you have to choose between the two. You dont have 2 usb controllers to make one act as host and the other device, so both video and keyboard wont work at the same time on zero for now.

somik123 avatar Aug 09 '20 01:08 somik123

Ah. My mistake. I thought you meant a keyboard to the Pi, not the otg keyboard

On Sat, Aug 8, 2020, 21:47 Somik [email protected] wrote:

@peterberbec https://github.com/peterberbec

I could have connected a hub to the otg, or a Bluetooth keyboard, but I didn't. I can test such a setup if their is interest. I was doing it as a test of the Zero platform's viability, and the speed makes it not useful to me.

I did connect it to a usb hub. Only the video capture works. You need to connect it directly to PC without any hub to get the keyboard input to work, but then video wont work. So you have to choose between the two. You dont have 2 usb controllers to make one act as host and the other device, so both video and keyboard wont work at the same time on zero for now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mtlynch/tinypilot/issues/93#issuecomment-670994014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNU4IR5RI3PNKXMTWPDALR7X52JANCNFSM4PKE2RVQ .

peterberbec avatar Aug 09 '20 01:08 peterberbec

Ah. My mistake. I thought you meant a keyboard to the Pi, not the otg keyboard

Ya, i meant the device mode where the Pi sends keyboard input to the PC.

somik123 avatar Aug 09 '20 01:08 somik123

One idea for the Pi Zero would be to use the CSI bridge to capture HDMI, like this one:

https://www.ebay.com/itm/For-Raspberry-Pi-HDMI-To-CSI-2-C779-Bridge-Adapter-Interface-Module-1080p-25fps/203009279885

That capture card works with TinyPilot, though the Ansible role requires a few tweaks to handle the HDMI to CSI-2 bridge instead of the HDMI dongle.

mtlynch avatar Aug 10 '20 22:08 mtlynch

Purchased. I will report back

On Mon, Aug 10, 2020, 18:26 Michael Lynch [email protected] wrote:

One idea for the Pi Zero would be to use the CSI bridge to capture HDMI, like this one:

https://www.ebay.com/itm/For-Raspberry-Pi-HDMI-To-CSI-2-C779-Bridge-Adapter-Interface-Module-1080p-25fps/203009279885

That capture card works with TinyPilot, though the Ansible role requires a few tweaks to handle the HDMI to CSI-2 bridge instead of the HDMI dongle.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mtlynch/tinypilot/issues/93#issuecomment-671620660, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNU4MQGAPATUPHI522ANDSABXZ3ANCNFSM4PKE2RVQ .

peterberbec avatar Aug 10 '20 22:08 peterberbec

One idea for the Pi Zero would be to use the CSI bridge to capture HDMI, like this one:

https://www.ebay.com/itm/For-Raspberry-Pi-HDMI-To-CSI-2-C779-Bridge-Adapter-Interface-Module-1080p-25fps/203009279885

That capture card works with TinyPilot, though the Ansible role requires a few tweaks to handle the HDMI to CSI-2 bridge instead of the HDMI dongle.

I purchased that exact adapter, and it works. Keyboard input does not seem to be functioning. What steps should I go through to troubleshoot g_hid?

peterberbec avatar Sep 03 '20 04:09 peterberbec

One idea for the Pi Zero would be to use the CSI bridge to capture HDMI, like this one: https://www.ebay.com/itm/For-Raspberry-Pi-HDMI-To-CSI-2-C779-Bridge-Adapter-Interface-Module-1080p-25fps/203009279885 That capture card works with TinyPilot, though the Ansible role requires a few tweaks to handle the HDMI to CSI-2 bridge instead of the HDMI dongle.

I purchased that exact adapter, and it works. Keyboard input does not seem to be functioning. What steps should I go through to troubleshoot g_hid?

Step 1: Use a usb cable that supports data, not just charging.

It's working!

peterberbec avatar Sep 03 '20 04:09 peterberbec

Excellent news!

This could make for a fairly compact package if one were to take a Lusya bridge from China (same screw holes as pi zero) and one of those cheapo USB stick conversion PCB's.

https://ae01.alicdn.com/kf/Hc7195b14d18d425f8a7b76b48621d9a66.jpg https://imgaz.staticbg.com/thumb/large/oaupload/banggood/images/87/A8/f81af760-9f26-4101-b1f9-0e25273cd1fa.jpg

rvdwegen avatar Sep 03 '20 05:09 rvdwegen