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: Prof. Dr.-Ing. Heinrich Warmers
Subject: Re: [Paparazzi-devel] [TWOG] CAM Port Pins
Date: Tue, 02 Dec 2014 21:21:51 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)

Hi,
The CAM Output on the TWOG  is a 5V power output. This output is a power output for a 5V video camera.
 If you use this signal direct usually the  camera input (1.8V .. 3V) will be defect.
You can use a 5V relay with this output.

You can also use a  normal servo with a micro switch or a  camera module 
with ppm input in combination with a servo output pin.

for paparazzi 5.03

for the block servo:
<servo name="DC_SHUTTER_SERVO" no"8"  min="2000" neutral="1500"  max"1000" />

for the block  comand _laws:

<set servo"DC_SUTTER_SERVO" value"@DC_SHUTTER_SERVO"/>

Best regards,
Heinrich


Felix Ruess schrieb:
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



_______________________________________________ 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]