BMMSC: Zoom issue with 3G-SDI Arduino Shield
Posted: Wed Sep 13, 2017 11:21 am
Hi Everyone,
I'm working on a "Blackmagic Micro Studio 4K" cam and controlling it with arduino board using blackmagic 3G-SDI arduino shield.
I'm unable to use its "Zoom" and "Aperture"command as mentioned in its datasheet.
//****************************************************//
//***********sends current zoom value to the cam***********//
//****************************************************//
void SetZoom (currentZoom)
{ currentZoom = constrain(currentZoom, 0.0, 1.0);
sdiCameraControl.writeCommandFixed16(
1, // Destination: Camera 1
0, // Category: Lens
8, // Param: Zoom (normalised)
0, // Operation: Set Absolute,
currentZoom // Values
);
}
//****************************************************//
//*********sends current Aperture value to the cam***********//
//****************************************************//
void SetAperture (currentAperture)
{ currentAperture= constrain(currentAperture, 0.0, 1.0);
sdiCameraControl.writeCommandFixed16(
1, // Destination: Camera 1
0, // Category: Lens
3, // Param: Aperture (normalised)
0, // Operation: Set Absolute,
currentApertureAdjust // Values
);
}
//****************************************************//
Lens i'm using is "Olympus M.Zuiko 14-42mm f3.5-5.6 II R Lens". Is this lens support digital zoom through 3G-SDI shield or I code it wrongly.
want some guidance..Thanks
Mayank K Tyagi
I'm working on a "Blackmagic Micro Studio 4K" cam and controlling it with arduino board using blackmagic 3G-SDI arduino shield.
I'm unable to use its "Zoom" and "Aperture"command as mentioned in its datasheet.
//****************************************************//
//***********sends current zoom value to the cam***********//
//****************************************************//
void SetZoom (currentZoom)
{ currentZoom = constrain(currentZoom, 0.0, 1.0);
sdiCameraControl.writeCommandFixed16(
1, // Destination: Camera 1
0, // Category: Lens
8, // Param: Zoom (normalised)
0, // Operation: Set Absolute,
currentZoom // Values
);
}
//****************************************************//
//*********sends current Aperture value to the cam***********//
//****************************************************//
void SetAperture (currentAperture)
{ currentAperture= constrain(currentAperture, 0.0, 1.0);
sdiCameraControl.writeCommandFixed16(
1, // Destination: Camera 1
0, // Category: Lens
3, // Param: Aperture (normalised)
0, // Operation: Set Absolute,
currentApertureAdjust // Values
);
}
//****************************************************//
Lens i'm using is "Olympus M.Zuiko 14-42mm f3.5-5.6 II R Lens". Is this lens support digital zoom through 3G-SDI shield or I code it wrongly.
want some guidance..Thanks
Mayank K Tyagi