Posts: 12
Joined: Sun Jan 29, 2017 7:02 pm

Fail to activate flash

Sun Jan 29, 2017 7:09 pm


I'm trying to take picture with flash with my Raspberry Pi 3 rev 1.2 & Camera V2 with Raspbian.

I'v followed the procedure described here:

I use the file from: https://github.com/raspberrypi/firmware ... t-blob.dts, after modifications, diff is:

Code: Select all

pi $ diff dt-blob.dts{.original,}
>             pin@p17 { function = "output";  termination = "pull_down"; }; // Camera flash
<             pin_define@FLASH_0_ENABLE {
<                type = "absent";
>             pin-define@FLASH_0_ENABLE {
>                type = "internal";
>                number = <17>;
Then compile & copy: sudo dtc -I dts -O dtb -o /boot/dt-blob.bin dt-blob.dts, then reboot sudo reboot.

Then test with:

Code: Select all

with picamera.PiCamera() as camera:
    camera.flash_mode = 'torch'
    camera.flash_mode = 'off'
But my led refuse to light up. (When plugged directly on PIN1 instead of PIN11 it light up).

I would really appreciate some help. I'm really out of idea... :(

Thank you !!! :)

Posts: 17
Joined: Wed Sep 30, 2015 9:36 am

Re: Fail to activate flash

Fri Feb 03, 2017 9:01 pm

The torch mode isn't working for me either. All the other flash modes work fine when you then take a still with camera.capture.

Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9229
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Fail to activate flash

Mon Feb 18, 2019 12:32 pm

Go back to the actual announcement thread at https://www.raspberrypi.org/forums/view ... 43&t=83484 and you'll notice a description of adding two lines to dt-blob.dts for each flash:

Code: Select all

                  pin_define@FLASH_0_ENABLE {
                     type = "absent";
                  pin_define@FLASH_0_INDICATOR {
                     type = "absent";
Torch mode uses the indicator line. Flash uses the enable line. Setting them both to the same GPIO will cause weird behaviour.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Camera board”