pi cam v2 not working

have updated to crowsnest V4 and can't get my pi cam V2 to work
No description
53 Replies
D_Jespersen (DJ_Designs)
i have added the pi v2 to my cam library
D_Jespersen (DJ_Designs)
and typed in the device
No description
D_Jespersen (DJ_Designs)
yes i even had @miklschmidt on the sideline if i had some remediate questions im a linux noob is there anyway i can see on the pi, if i have done something wrong
blacksmithforlife
blacksmithforlife•11mo ago
It should be ok as long as you followed Mikel's instructions after SSHing into the pi
miklschmidt
miklschmidt•11mo ago
i forgot to ask if you changed your /boot/config.txt, can you paste it? Ah wrong URL.. 🙂 It's /webcam/webrtc
D_Jespersen (DJ_Designs)
isn't that how i got this
No description
miklschmidt
miklschmidt•11mo ago
Yeah probably. Not sure if that's available before the dtoverlay has been set please try /webcam/webrtc instead of /webcam/?action=stream
D_Jespersen (DJ_Designs)
Now just black screen ( no connecting logo)
miklschmidt
miklschmidt•11mo ago
I got nothing :S
D_Jespersen (DJ_Designs)
tried to restart the mainsail and it trying to connect for 1 sek and then just black screen
miklschmidt
miklschmidt•11mo ago
dang
D_Jespersen (DJ_Designs)
like its on but the exposure is just viewing black does i explain it correct ?
miklschmidt
miklschmidt•11mo ago
That could be a thing, can you post your crowsnest.log?
D_Jespersen (DJ_Designs)
is it meant to unly have 640x480
miklschmidt
miklschmidt•11mo ago
@d_jespersen try using ustreamer instead of camera-stream in your crowsnest.conf and revert to the old /webcam/?action=stream url. I can't see any options for camera control in the crowsnest log
miklschmidt
miklschmidt•11mo ago
change that to MJPEG-streamer
D_Jespersen (DJ_Designs)
Tried them all
D_Jespersen (DJ_Designs)
Now with white screen
No description
miklschmidt
miklschmidt•11mo ago
I give up
D_Jespersen (DJ_Designs)
😭 this is on the phone
D_Jespersen (DJ_Designs)
. . . this is on the computer
No description
miklschmidt
miklschmidt•11mo ago
I'd go back to crowsnest v3 i think
D_Jespersen (DJ_Designs)
and for how long can i do that?
miklschmidt
miklschmidt•11mo ago
for ever Well at least until something unexpected makes it not work anymore, i don't know what that would be. You'd have to update system packages for that to happen. Oh btw did you reboot the thing after installing crowsnest v4?
extended-salmon
extended-salmon•11mo ago
I had recently similar problems but with a v3 camera module. A few ideas to test: 1. Have you examined the output of libcamera-hello, to see it there are other problems? 2. Have you tried to take a pic from outside crowsnest to see if up to that point everything is ok? libcamera-still -o test.jpg 3. In my case I had to do again make install for camera-streamer alone. I can't see in your crowsnest.log that dependency being checked, i.e. I miss this line Dependency: 'camera-streamer' found in bin/camera-streamer/camera-streamer. in your log compared to mine.
D_Jespersen (DJ_Designs)
Yes I’m Linux noob. Can you explain the steps I have to do.
miklschmidt
miklschmidt•11mo ago
To test 2)
ssh pi@ratos.local
cd ~/printer_data/config
libcamera-still -o test.jpg
ssh pi@ratos.local
cd ~/printer_data/config
libcamera-still -o test.jpg
That should generate a test.jpg that you can view in the mainsail machine tab. To test 3)
ssh pi@ratos.local
cd ~/crowsnest/bin/camera-streamer
make install
ssh pi@ratos.local
cd ~/crowsnest/bin/camera-streamer
make install
D_Jespersen (DJ_Designs)
gives a black screen on that test jpg
D_Jespersen (DJ_Designs)
this is test 3 it came with an error first notice after i did the reboot
No description
D_Jespersen (DJ_Designs)
its working but very bad compared to before
D_Jespersen (DJ_Designs)
new image
No description
miklschmidt
miklschmidt•11mo ago
up the resolution try sudo make install instead
D_Jespersen (DJ_Designs)
old image
No description
miklschmidt
miklschmidt•11mo ago
I think this is just a matter of configuration in crowsnest.conf
D_Jespersen (DJ_Designs)
do i need to do this now
D_Jespersen (DJ_Designs)
tried all of those and they all give black screen except the lowest resolution
No description
D_Jespersen (DJ_Designs)
played around with resolution and found the magic number for a pi cam V2 and its 3200x1850
No description
D_Jespersen (DJ_Designs)
thanks @miklschmidt and @jornamon 3. did the job
extended-salmon
extended-salmon•11mo ago
I'm glad it worked! 😀 Nice camera placement by the way!
D_Jespersen (DJ_Designs)
thanks. with this i can do inspection:-)
No description
miklschmidt
miklschmidt•11mo ago
Woah that’s quite a bit!
D_Jespersen (DJ_Designs)
looks nice
No description
extended-salmon
extended-salmon•11mo ago
I've seen lately camera-streamer consuming quite a lot of system CPU. I also have a high resolution, I don't now if it's because of that, but watch out, specially if you see any klipper shutdown due to timming errors.