Arduino shield

Questions about ATEM Switchers, Camera Converter and everything live!
  • Author
  • Message
Offline

Beto Faro

  • Posts: 31
  • Joined: Sat Mar 09, 2013 7:23 pm

Arduino shield

PostThu Sep 15, 2016 1:54 am

Hi,
does someone have an arduino sketch to use with the Blackmagic SDI shield to control BMSC Iris with a potentiometer?
As I`m an Arduino beginner user any help will be very useful
Thanks
Offline

Sven Meinhardt

  • Posts: 13
  • Joined: Mon Aug 29, 2016 12:43 pm

Re: Arduino shield

PostMon Sep 19, 2016 9:35 am

Hey Beto,

I guess you want to use a kind of fader for focus pulling? Or do you have another use or setup in mind?

Currently I'm using the joystick setup for this kind of settings. But I know that the guys from SKAARHOJ have build a board with a fader so they probably have some lines of code for it, although I could imagine that the sketch shouldn't be too different from the joystick sketch itself. Although, being a Arduino beginner myself, I can't guarantee it.

Looking forward to seeing some sketches incoming as I could also imaging myself implementing a fader in my setup of Micro Studio Cameras.

Wish you good luck!

Sven
Offline

Maurice Windley

  • Posts: 20
  • Joined: Thu May 12, 2016 5:34 am
  • Location: Adelaide, Australia

Re: Arduino shield

PostWed Sep 21, 2016 12:27 pm

Beto Faro wrote:Hi,
does someone have an arduino sketch to use with the Blackmagic SDI shield to control BMSC Iris with a potentiometer?
As I`m an Arduino beginner user any help will be very useful
Thanks
do you still need it?


Sent from my iPad using Tapatalk
Offline

Beto Faro

  • Posts: 31
  • Joined: Sat Mar 09, 2013 7:23 pm

Re: Arduino shield

PostFri Sep 23, 2016 2:59 am

Thanks,
Yes I still need it.
I received a replay a couple of days ago, but unfortunately the schetch is for zoon control.
Thanks
Offline

Maurice Windley

  • Posts: 20
  • Joined: Thu May 12, 2016 5:34 am
  • Location: Adelaide, Australia

Re: Arduino shield

PostSun Sep 25, 2016 11:59 pm

"OK, here is your gift.

Arduino people believe in helping learners, if you show your are putting effort in the they will help.

If you just want someone else to do it then they will be silent, just like all others on BLackMagic forum.

If you have software brain then all this info is in BlackMagic Arduino shield guide, attached and in Arduino websites.
With 12 hours work you will have got to this point already.

I give you this info to assist, you face several challenges just installing arduino and th e Black magic library.
Have fun, if you just want someone to do it then you will have to pay someone for thier time.

Read th e readme file..........................!

Regards Maurice"


I send it to you by email
Offline

Beto Faro

  • Posts: 31
  • Joined: Sat Mar 09, 2013 7:23 pm

Re: Arduino shield

PostMon Oct 10, 2016 3:36 pm

Below you have an arduino sketch to control up to two cameras with only an SDI shield. As you can see I`m not an Arduino expert and probably the sketch could be improved. Please feel free to comment it and make changes, and I hope it could be useful for someone.
Somebody know if the Shield could work with the arduino Mega?
I`m working in an sketch to control more them two cameras with only one SDI Shield, and my go is to use digital arduino ports with encoders. Somebody cam help me?
thanks

---------------------------------------------------------------------

#include <BMDSDIControl.h>


const double IRISA = A0;
const double PedA = A1;
const double IRISB = A2;
const double PedB = A3;

const int shieldAddress = 0x6E;

BMD_SDICameraControl_I2C sdiCameraControl(shieldAddress);
BMD_SDITallyControl_I2C sdiTallyControl(shieldAddress);

const int CAMERAA = 1;
const int CAMERAB = 2;


void setup() {
// put your setup code here, to run once:
sdiCameraControl.begin();
sdiCameraControl.setOverride(true);
Wire.setClock(400000);
Serial.begin(9600);

}

void loop() {

// preparação das variáveis de A
float IRISA = analogRead(A0);
IRISA = map ( IRISA , 0, 1023, 0,1000);
IRISA = IRISA /1000;

float PedA = analogRead(A1);
PedA = map ( PedA , 0, 1023, -8000,8000);
PedA = PedA /1000;

IRISA = constrain(IRISA, 0 , 1.0);
PedA = constrain(PedA, -8.0 , 8.0);


float offsetValuesA[] = {
PedA, // Red (-8.0 to 8.0)
PedA, // Green (-8.0 to 8.0)
PedA, // Blue (-8.0 to 8.0)
PedA, // Luma (-8.0 to 8.0)

};

Serial.println(IRISA );
Serial.println(PedA);

// preparação das variáveis de B

float IRISB = analogRead(A2);
IRISB = map ( IRISB , 0, 1023, 0,1000);
IRISB = IRISB /1000;

float PedB = analogRead(A3);
PedB = map ( PedB , 0, 1023, -8000,8000);
PedB = PedB /1000;

IRISB = constrain(IRISB, 0 , 1.0);
PedB = constrain(PedB, -8.0 , 8.0);

float offsetValuesB[] = {
PedB, // Red (-8.0 to 8.0)
PedB, // Green (-8.0 to 8.0)
PedB, // Blue (-8.0 to 8.0)
PedB, // Luma (-8.0 to 8.0)

};

Serial.println(IRISB );
Serial.println(PedB);

// Send new aperture adjustment to the cameraA
sdiCameraControl.writeCommandFixed16(

CAMERAA, // Destination: CAMERAB
0, // Category: Lens
3, // Param: Aperture (Ordinal)
0, // Operation: Set Absolute,
IRISA // Values
);

// Send new pedestal adjustment to the cameraA
sdiCameraControl.writeCommandFixed16(

CAMERAA, // Destination: CAMERAA
8, // Category: Lens
3, // Param: Aperture (Ordinal)
0, // Operation: Set Absolute
offsetValuesA // Values
);

// Send new aperture adjustment to the cameraB
sdiCameraControl.writeCommandFixed16(

CAMERAB, // Destination: CAMERAB
0, // Category: Lens
3, // Param: Aperture (Ordinal)
0, // Operation: Set Absolute,
IRISB // Values
);

// Send new pedestal adjustment to the cameraB
sdiCameraControl.writeCommandFixed16(

CAMERAB, // Destination: CAMERAB
8, // Category: Lens
3, // Param: Aperture (Ordinal)
0, // Operation: Set Absolute
offsetValuesB // Values
);

}
Offline

Bjørn Thorup

  • Posts: 23
  • Joined: Wed Jan 07, 2015 10:52 am
  • Location: Denmark

Re: Arduino shield

PostMon Oct 24, 2016 12:24 pm

Hi

You can also find some information for the Arduino code at: http://skaarhoj.com/designs/diy-items/d ... di-shield/

We have also made a shield kit including a fader.
Bjørn Thorup / Engineering and Marketing
SKAARHOJ.com

Return to Live Production

Who is online

Users browsing this forum: Majestic-12 [Bot] and 84 guests