ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
greate one
why we have connected the resistor to the ground. can you tell me the reason because i am having a exam tmrw
I'm not getting values in serial moniter
@Parag Achaliya plz send code link
Code?
int LED = 13;int MQ2pin = A0;void setup(){ Serial.begin(9600);}void loop(){ float sensorValue; sensorValue = analogRead(MQ2pin); if(sensorValue >= 250) { digitalWrite(LED, HIGH); Serial.print(sensorValue); Serial.print(" "); } else { digitalWrite(LED, LOW); Serial.print(" "); Serial.print(sensorValue); } delay(1000);}
greate one
why we have connected the resistor to the ground. can you tell me the reason because i am having a exam tmrw
I'm not getting values in serial moniter
@Parag Achaliya plz send code link
Code?
int LED = 13;
int MQ2pin = A0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
float sensorValue;
sensorValue = analogRead(MQ2pin);
if(sensorValue >= 250)
{
digitalWrite(LED, HIGH);
Serial.print(sensorValue);
Serial.print(" ");
}
else
{
digitalWrite(LED, LOW);
Serial.print(" ");
Serial.print(sensorValue);
}
delay(1000);
}