Replies: 4 comments 10 replies
-
Update on this: so after some digging and changing of plans it appears that there's something about the raspberry pi 4 that's different. When commenting out some lines for a Pi 3 model B cam overlay detects what I'm now using and had an error but commenting out the same the same lines for the Pi 4 it gives me a different error which I also initially had on the Pi 3 |
Beta Was this translation helpful? Give feedback.
-
Update: After posting on Cam_Overlay about getting MPEG or YUYV mode working for my capture card (gone with YUYV) and obtaining a Raspberry Pi Model B (though it does look like a Raspberry Pi 3 Model B+ - the box makes no mention of whether it is a B+ or not) I have now got it working, and now I just ned a couple of things done for my setup to finish it off. Video of concept: https://youtu.be/QF2X8LUEzLY I used a push button cos at this moment of time that's all I have. To get it working, you will need the following hardware (sorry, these are United Kingdom links): Pi 3 I brought: https://amzn.to/4cd0VpF Capture card: https://amzn.to/3XzvEsw AV to HDMI converter: https://amzn.to/4cd4tIq HDMI to HDMI lead also required, but you can pick these up from virtually anywhere Reversing camera - again, Halfords, Amazon, or even use Google to find a shop that's great for you. Something with a AV output - in my case I am using a PlayStation 2. Note: buttons must not be used - otherwise this will not work! I found this out the hard way. The process: Make sure Crankshaft has ran at least once, and enable debug mode for testing and connecting by SSH. In Settings > CS HW > put USB-Cam to Enabled, and reboot. Make sure everything is turned off, and connect the USB capture card (you might want an USB extension lead) to the Pi 3, and connect the HDMI cable to both the capture card and the AV2HDMI converter - power this up separately if you are short on USB ports from the Pi 3 Connect wire to GPIO pin 26 and a ground wire to either a rocker switch or a push button if you want to test this out first - this is for triggering the rearcam mode. Edit Boot up the Pi 3. SSH into the Pi and log in. The code is what to use into SSH First, lets see if it's all being detected: Now we check for what formats the capture card are supported for putting it onto the Pi: MPEG will cause a black screen unless you have the CPP branch of cam_overlay installed. YUYV is supported in the cam_overlay that is installed with Crankshaft. So, to get it to switch: Ok, doesn't look like that done anything. Let's confirm with SSH first: (note: on my Pi now that I have programmed up the rearcam button, it shows a blank screen then hides again - however pressing my button makes it work) If you see something, then it sounds like you are good to go. So Setting up the Pin for rearcam triggering: Remember setting up the wires from earlier? Good. Well, into settings on Crankshaft, select CS Env and for Rearcam Pin set it to 26. Reboot Pi (disconnect SSH first) Once rebooted, SSH and Test the button: you should find that you need to hold it to see the picture. When you ready, get a camera and test it. To do: find a way of getting |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for this detailed instruction @Geekyadz, it worked very well for me. I did encounter some problems though, similar to this issue, and commenting out the I put the |
Beta Was this translation helpful? Give feedback.
-
I want to express my gratitude for this guide, which helped me to get my USB capture card to work! I would like to ask some questions just to clarify the compatibility of cam_overlay and Crankshaft. I am using a Pi Zero 2 W, that should have the same hardware as a Pi 3 B(+), as far as I'm concerned. Do you run Crankshaft in EGL or X11 mode? After reading everything that I could find on the topic, I am coming to the conclusion that cam_overlay works only in X11 mode. When I try EGL mode, I get the following message from cam_overlay As a side note, I wasn't able to boot Crankshaft without dtoverlay=vc4-fkms-v3d so it is out of question to fix cam_overlay with removing it. |
Beta Was this translation helpful? Give feedback.
-
I would like to setup a reversing camera using Crankhaft.
From looking at the Wiki, it seems to want to use a Raspberry Pi camra module (or one that uses the DSI connection)
I have also seen this issue: #407
So here's my problem at the moment:
Just as a "proof of concept" I am trying to use the "use phone as a web camera" option that is on my Pixel 7a - this works with Discord and OBS on my PC. I know, it's a different kettle of fish, but I would have thought that Crankshaft would also be able to detect it.
Admittidly I have to change the mode that the USB is in to change it, but I would have thought that once I have chnaged the momde it would be detected by Crankshaft as I can see that the phone disconnects then reconnects once in webcamera mode.
So far my testing today I have been using SSH into Crankshaft and it hasn't gave me much sucess; I enabled the raspberry pi camera in the raspi-config as instructed to in the Wiki but that hasn't helped; all I'm getting is a saying that the module cannot be detected (most likely cos I don't have one) and when I tried the crankshaft rearcam show command it didn't show me anything.
Obvioulsy I'm a little lost on this, and before I rush out buying multiple parts and finding things that don't work, I would rather have a look to see if I can get it woulding using the USB camera feature on my phone.
Beta Was this translation helpful? Give feedback.
All reactions