help needed with Camera switching code!

hi, i have a new camera system that goes onto a livestream for a dated AM radio station. i dont know much at all about programming and would like some help with my code to get this working.

basicly what needs to happen is when certian microphones are on, certian cameras need to be activiated.

all help is welcome and i can give you further info if you need it, Thanks you!

This is my current code:

/*
  livestream cam draft
  this will switch betweencams facing either the annoucer, guest, news or still screen.
  
*/

int Cam1 = 3;
int Cam2 = 4;
int NewsCam = 5;
int Mic1 = 8;
int Mic3 = 9;
int Mic4 = 10;
int NewsMic = 11;
int StillScreen = 6;

void setup(){
  //set cams and stillscreans to outputs
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  
  //set mics to inputs
  pinMode(8,INPUT);
  pinMode(9,INPUT);
  pinMode(10,INPUT);
  pinMode(11,INPUT);
  
  // Enable internal pull-up resistor
  pinMode(8, INPUT_PULLUP); 
  pinMode(9, INPUT_PULLUP);
  pinMode(10, INPUT_PULLUP);
  pinMode(11, INPUT_PULLUP);

}
  
void loop() 
{
  //begin checks for mics
  if(digitalRead(11) == HIGH)
  {
    digitalWrite(NewsCam, HIGH); //turns on cam in newsroom
    digitalWrite(Cam1, LOW);
    digitalWrite(Cam2, LOW);
    digitalWrite(StillScreen, LOW);
  }
  else if (digitalRead(10) == HIGH)
  {
    digitalWrite(Cam1, LOW);
    digitalWrite(NewsCam, LOW);
    digitalWrite(StillScreen, LOW);
    digitalWrite(Cam2, HIGH); //turns on guest cam
  }
  else if (digitalRead(9) == HIGH)
  {
    digitalWrite(Cam2, HIGH); //turns on guest cam
    digitalWrite(Cam1, LOW);
    digitalWrite(NewsCam, LOW);
    digitalWrite(StillScreen, LOW);
  }
  else if (digitalRead(8) == HIGH)
  {
    digitalWrite(Cam1, HIGH); //turns on talent cam
    digitalWrite(Cam2, LOW);
    digitalWrite(NewsCam, LOW);
    digitalWrite(StillScreen, LOW);
  }
  else (digitalRead(8) == LOW && digitalRead(9) == LOW && digitalRead(10) == LOW && digitalRead(11) == LOW);
  {
    digitalWrite(StillScreen, HIGH); //turns on stillscreen
    digitalWrite(Cam1, LOW);
    digitalWrite(Cam2, LOW);
    digitalWrite(NewsCam, LOW);
  }
    
}

Moderator edit: tags corrected

  this will switch betweencams facing either the annoucer, guest, news or still screen.

This implies 4 cameras.

int Cam1 = 3;
int Cam2 = 4;
int NewsCam = 5;

This implies 3. Why does one get a halfway meaningful name, and the other two do not?

int Mic1 = 8;
int Mic3 = 9;
int Mic4 = 10;
int NewsMic = 11;

Why does the still screen have a microphone? I presume that there is some (undefined) relationship between these microphones and the cameras. Though what that relationship is, when there are 4 of one and three of the other is not at all clear.

  //set mics to inputs
  pinMode(8,INPUT);
  pinMode(9,INPUT);
  pinMode(10,INPUT);
  pinMode(11,INPUT);
  
  // Enable internal pull-up resistor
  pinMode(8, INPUT_PULLUP); 
  pinMode(9, INPUT_PULLUP);
  pinMode(10, INPUT_PULLUP);
  pinMode(11, INPUT_PULLUP);

Make up your mind. You want the pins to be INPUT or INPUT_PULLUP?

Why are the pins now anonymous? You gave them names earlier (though not good ones).

  else if (digitalRead(10) == HIGH)
  {
    digitalWrite(Cam1, LOW);
    digitalWrite(NewsCam, LOW);
    digitalWrite(StillScreen, LOW);
    digitalWrite(Cam2, HIGH); //turns on guest cam
  }
  else if (digitalRead(9) == HIGH)
  {
    digitalWrite(Cam2, HIGH); //turns on guest cam
    digitalWrite(Cam1, LOW);
    digitalWrite(NewsCam, LOW);
    digitalWrite(StillScreen, LOW);
  }

The guest gets two switches?

  else (digitalRead(8) == LOW && digitalRead(9) == LOW && digitalRead(10) == LOW && digitalRead(11) == LOW);

If all of the switches are off, do nothing (that's what the ; at the end means). Otherwise, no nothing. I'll bite. Why?

all help is welcome

First, you need to describe what the problem is (besides the obvious stuff above).

the whole point of this system is the have the right camera turned on depending on which microphones are on. I managed to get this working yesterday afternoon before i saw your reply but ill explain it all anyway and maybe you guys can help me clean it up a bit.

  1. there is 3 cameras and 1 still screen (which is just our logo for when we are not broadcasting from our studios eg: football game.)

  2. the still screen is activated when no microphones are turned on.

  3. i changed the input pull-up issue.

4.the reason the guest cam needs 2 switches is sometimes we have a guest on mic 3, other times mic 4 and sometimes both. (if there is a way to combine that into 1 switch that would be great)

  1. i figured out that the final line with all the &&'s could be taken out and should just say "else" instead.

here is the current code that is working when i test it but would like to make sure its okay before trying to install it.

/*
  livestream cam draft
  this will switch betweencams facing either the annoucer, guest, news or still screen.
  
*/

int Cam1 = 3;
int Cam2 = 4;
int NewsCam = 5;
int StillScreen = 6;
int Mic1 = 8;
int Mic3 = 9;
int Mic4 = 10;
int NewsMic = 11;



void setup(){
  //set cams and stillscreans to outputs
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
 
  
  // Enable internal pull-up resistor
  pinMode(8, INPUT_PULLUP); 
  pinMode(9, INPUT_PULLUP);
  pinMode(10, INPUT_PULLUP);
  pinMode(11, INPUT_PULLUP);

}
  
void loop() 
{
  //begin checks for mics
  if(digitalRead(11) == LOW)
  {
    digitalWrite(NewsCam, HIGH); //turns on cam in newsroom
    digitalWrite(Cam1, LOW);
    digitalWrite(Cam2, LOW);
    digitalWrite(StillScreen, LOW);
  }
  else if (digitalRead(10) == LOW)
  {
    digitalWrite(Cam2, HIGH); //turns on guest cam
    digitalWrite(Cam1, LOW);
    digitalWrite(NewsCam, LOW);
    digitalWrite(StillScreen, LOW);
  }
  else if (digitalRead(9) == LOW)
  {
    digitalWrite(Cam2, HIGH); //turns on guest cam
    digitalWrite(Cam1, LOW);
    digitalWrite(NewsCam, LOW);
    digitalWrite(StillScreen, LOW);
  }
  else if (digitalRead(8) == LOW)
  {
    digitalWrite(Cam1, HIGH); //turns on talent cam
    digitalWrite(Cam2, LOW);
    digitalWrite(NewsCam, LOW);
    digitalWrite(StillScreen, LOW);
  }
  else 
  {
    digitalWrite(StillScreen, HIGH); //turns on stillscreen
    digitalWrite(Cam1, LOW);
    digitalWrite(Cam2, LOW);
    digitalWrite(NewsCam, LOW);
  }
  
    
}
int Cam1 = 3;
int Cam2 = 4;
int NewsCam = 5;
int StillScreen = 6;
int Mic1 = 8;
int Mic3 = 9;
int Mic4 = 10;
int NewsMic = 11;

If NewsCam and StillScreen get nice names, how come Cam1 and Cam2 get crappy names?

If NewsMic gets a nice name, how come Mic1, Mic3, and Mic4 get crappy names?

  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
 
  
  // Enable internal pull-up resistor
  pinMode(8, INPUT_PULLUP); 
  pinMode(9, INPUT_PULLUP);
  pinMode(10, INPUT_PULLUP);
  pinMode(11, INPUT_PULLUP);

What was the point of giving the pins names, since you never use them?