paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] [TWOG] CAM Port Pins


From: Felix Ruess
Subject: Re: [Paparazzi-devel] [TWOG] CAM Port Pins
Date: Tue, 2 Dec 2014 20:11:41 +0100

Or for the Twog:
    <load name="digital_cam.xml">
      <define name="DC_SHUTTER_GPIO" value="CAM_SWITCH_GPIO"/>
    </load>
which equals
    <load name="digital_cam.xml">
      <define name="DC_SHUTTER_GPIO" value="GPIOB,GPIO22"/>
    </load>
 
If you simply want to control the gpio directly in your own code:
Set the gpio up as output:
gpio_setup_output(CAM_SWITCH_GPIO);
And then set or clear the pin as disired:
gpio_set(CAM_SWITCH_GPIO);
gpio_clear(CAM_SWITCH_GPIO);

On Tue, Dec 2, 2014 at 8:03 PM, Eduardo lavratti <address@hidden> wrote:
For sure you can use the CAM_SW as camera trigger.
Use an optocoupler to connect this pin to your camera.

Use something like this to control the cam_sw pin

    <load name="digital_cam.xml">
      <define name="DC_SHUTTER_GPIO" value="GPIOC,GPIO12"/>
    </load>



> Date: Tue, 2 Dec 2014 06:52:26 -0600
> From: address@hidden
> To: address@hidden
> Subject: Re: [Paparazzi-devel] [TWOG] CAM Port Pins

>
> Is there a way to signal it On/Off? I guess voltage regulation is the
> wrong phrase.
>
> ~Kris
>
> On 12/02/2014 02:46 AM, Rolf Noellenburg wrote:
> > Hello Kris,
> >
> > following the schematics given on the side of your link, CamSW is on a
> > pin similar to a led switch and is not suitable to control a servo.
> > Only the outputs SRV0 to SRV7 can drive a servo directly on a TwoG.
> >
> > By the way: the servo pins don't adjust a voltage in order to modify
> > the position of the servo but provide a PWM signal which is translated
> > to a corresponding angle by the servo.
> >
> > Best regards,
> > Rolf
> >
> >
> > Am 02.12.2014 01:03, schrieb Kristofer Von Ahnen:
> >> Is it possible to regulate the voltage of the CamSW pin on the TWOG
> >> board (http://wiki.paparazziuav.org/wiki/TWOG/v1.0) for sending a
> >> hardware signal to a separate device? I notice in the cam_control
> >> module that the servo pins are being used to adjust a camera's
> >> position by sending commands, but can the same be done with the CamSW
> >> pin?
> >>
> >> Best,
> >> ~Kris
> >>
> >> _______________________________________________
> >> Paparazzi-devel mailing list
> >> address@hidden
> >> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
> >>
> >
> >
> > _______________________________________________
> > Paparazzi-devel mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]