#Getting Pi camera working

58 messages · Page 1 of 1 (latest)

sweet gull
#

I am trying to get a Pi camera Ver2.1 , Pi 4B working on a Voron 2.4. I followed the Crowsnest Documentation for setting it up and it looks like the camera is being seen but I don't get a camera preview.

pliant berry
#

Fix your tags. This has nothing to do with Mainsail

#

Also send me the klipper documentation for the camera. I don't know of such a thing, as Klipper has nothing to do with cams

#

To fix 2, add the following to the bottom of your /boot/firmware/config.txt and then restart:

[pi4]
gpu_mem=128
pliant berry
#

That's not the Klipper documentation

sweet gull
pliant berry
#

It's not the Mainsail documentation either, but the Crowsnest Documentation. But tbh it's not that easy to see, as the thumbnail says mainsail and at the top left there is written Mainsail

#

It's just important to understand that these are all independent softwares that create a software stack

#

Klipper is at the bottom, then comes Moonraker and Mainsail is at the end

#

Crowsnest is not even in this stack, as it's completely independent. If we just look at the camera, the stack would be closer to Crowsnest->Mainsail, but that's not correct either, as Mainsail needs Moonraker, but Crowsnest doesn't need Moonraker

sweet gull
pliant berry
#

And don't use the reply function, if you don't reply to a specific message for context

sweet gull
#

Getting Pi camera working in Mainsail

#

Getting Pi camera

#

Getting Pi camera working

pliant berry
#

Can you maybe fix your stream instead of adjusting the title over and over again?

sweet gull
#

Sorry I don't know what you want me to do.

pliant berry
#

Then just write that maybe...

#

If you click on the link it tells you this:

In order to use WebRTC, please replace ?action=stream with webrtc. Keep in mind this will only work if you use mode: camera-streamer.
Don't change the URL Snapshot! This will be the same as before.

#

It also shows you this screenshot

#

Now compare it to your screenshot

sweet gull
pliant berry
#

No they are correct.

#

Now we can continue troubleshooting

#

Set log_level: debug and delete_log: true. Then try to look at the stream once and after that send a new log

sweet gull
pliant berry
#

There are two possibilities:

  1. Problem with your touch screen
  2. You have a long/not properly working cable
sweet gull
#

I have tried multiple cables, both short and long. My screen looks to be working fine so I could unplug it and see if the camera works then.

pliant berry
#

Please do so, as this is a common problem with screens

sweet gull
pliant berry
#

What's this now? Give me some context

#

I assume no screen?

sweet gull
#

Screen is unpluged, short cable and no camera view.

pliant berry
#

Oh, I remembered a picam v2 thing. Try these settings:

resolution: 1640x1232
custom_flags: --camera-snapshot.height=1232 --camera-video.height=1232 --camera-stream.height=1232```
sweet gull
#

Did I do it correctly? If I did nothing changed.

pliant berry
#

Can you send your camera settings again?

#

I might be wrong, but I thought camera-streamer does not parse the url you are accessing the stream on.
Request 'POST' '/WebRTC' '' is definitely wrong

sweet gull
pliant berry
#

I don't know why you changed the url, after the last screenshot you sent

#

As you can see on my picture the url is case sensitive

sweet gull
#

Ok my bad, it's working now. Thank you very much.

pliant berry
#

If there are no further questions, please close this post

sweet gull
#

Is there a fix to get the camera to work with the display connected?

pliant berry
#

So it still doesn't work with the touchscreen?

#

If so, send the config.txt

sweet gull
pliant berry
#

No, the config.txt

#

Otherwise I would writhe printer.cfg

#

The config.txt you changed, earlier in the thread

sweet gull
#

Sorry I don't see a config.txt

sweet gull