bigtreetech / CB2

The official repo for the BTT Pi2 and CB2
https://bttwiki.com/Pi2.html
59 stars 7 forks source link

CSI/DSI attachments too dark #10

Open igl-x2 opened 6 months ago

igl-x2 commented 6 months ago

So following the manual pdf, I setup my Picam and Waveshare 4.3 DSI display correctly. They both work, but they are dark as the night.

The Picam picture is barely visible, even when I light the area externally, the image brigthness does not improve. Same with the TFT. Its working. Its just seems the background lighting is not working/powered properly. But when I tap the tft, I can see Mainsail throwing the errors out like too low temp for extrusion.

I already checked and replaced the cables, of course. both devices work as expected when connected to an original Pi 3B

So both devices CSI/DSI seem to have some kind of power issue, like missing a power line or not providing enough current on the existing lines.

Anyone got an idea?

TheFeralEngineer commented 6 months ago

I noticed this with a cam as well, but mine isn't horrible, just really dark. Thought maybe there was a setting control for it using uv4l, but I haven't figured it out yet.

moom-knight commented 6 months ago

스크린샷 2024-05-26 165231

Enter the above two commands, and you'll get a lot better

igl-x2 commented 6 months ago

ok webcam has improved, dsi tft still dark as the night

looxonline commented 6 months ago

I noticed this with a cam as well, but mine isn't horrible, just really dark. Thought maybe there was a setting control for it using uv4l, but I haven't figured it out yet.

I'll get this flagged for the engineers to look at this week. @BTTJUSTIN please take note that this is a documentation problem that needs the required commands to be added to the manual to adjust camera and display exposure/brightness for CSI and DSI.

zhangyumingsh commented 5 months ago

So following the manual pdf, I setup my Picam and Waveshare 4.3 DSI display correctly. They both work, but they are dark as the night.

The Picam picture is barely visible, even when I light the area externally, the image brigthness does not improve. Same with the TFT. Its working. Its just seems the background lighting is not working/powered properly. But when I tap the tft, I can see Mainsail throwing the errors out like too low temp for extrusion.

I already checked and replaced the cables, of course. both devices work as expected when connected to an original Pi 3B

So both devices CSI/DSI seem to have some kind of power issue, like missing a power line or not providing enough current on the existing lines.

Anyone got an idea?

At present, the camera image preprocessing (ISP) for CSI has not been implemented. Subsequent versions will implement ISP.

igl-x2 commented 5 months ago

And what about DSI brightness? Currently Waveshare DSI display is also dark with 0 brightness.

zhangyumingsh commented 5 months ago

And what about DSI brightness? Currently Waveshare DSI display is also dark with 0 brightness.

And what about DSI brightness? Currently Waveshare DSI display is also dark with 0 brightness.

The Raspberry Pi DSI screen backlight will be updated in future versions

Elwin232 commented 5 months ago

스크린샷 2024-05-26 165231

Enter the above two commands, and you'll get a lot better

HI, I enter the command you mentioned , but the output not good v4l2-ctl -c exposure=1964 v4l2-ctl -c gain_automatic=1 image

Could you please post before and after pictures?@moom-knight

igl-x2 commented 4 months ago

CSI still with bad images.

zhangyumingsh commented 4 months ago

CSI still with bad images.

At present, there is no work plan for the ISP, and future version updates will include ISP image processing.

decker9000 commented 4 weeks ago

I'm running 1.0.5 Klipper version, and my camera is dark too. I don't seem to have a control for automatic_gain to enable with v4l2-ctl I was able to manually adjust gain, exposure, and analogue_gain controls using v4l2-ctl; but would prefer automatic gain and exposure to I don't need to constantly tweak it for lighting conditions.

Pneumanifest commented 1 day ago

Any update on the progress with the fix for CSI camera being too dark? changing exposure and gain has no effect.