maximum volt input from a digital pin

int pin8 =8;
int pin7=7;
void setup() {
  pinMode(pin8,INPUT);
  pinMode(pin7,OUTPUT);
  // put your setup code here, to run once:

}

void loop() {
  if(pin8=HIGH){
    pin7=HIGH;
    delay(20);
  }
  else {
    pin7=LOW;
  }
  // put your main code here, to run repeatedly:

}

wheat is the maximum input volt i can send to digital pin 8 ?

Wheat is the maximum input volt I can send to digital pin 8?

I wouldn't connect wheat to it, unless you are making bread.

Input voltage should be no more than Vcc.

PerryBebbington:
I wouldn't connect wheat to it, unless you are making bread.

Input voltage should be no more than Vcc.

i read your comment like 20 times trying to understand what the puck is this guy talking about xD
then i realized i misspelled the first word in my question haha
thank you for your answer so 5v is the maximum.

Hi,
What make/model is your controller?

Thanks.. Tom... :slight_smile:

TomGeorge:
Hi,
What make/model is your controller?

Thanks.. Tom... :slight_smile:

Arduino Mega 2560 Rev3 original not clone

Thank you for your answer so 5v is the maximum.

If it's an Arduino that runs on 5V, yes, but in your original post you didn't say.

Hi,
If you have an input voltage higher than 5V, you would need to use a potential divider or some sort of isolation circuit such as an opto-coupler.

Thanks.. Tom.. :slight_smile:

thank you great people of the forums

If you limit the current you may use higher voltage than the supply voltage.
Note that "5V nominal" may be less or more than 5V.