Académique Documents
Professionnel Documents
Culture Documents
I) QCU
Barème de notation : Bonne réponse : 0,75 point ; Mauvaise réponse : 0 point ; Pas de réponse : 0 point
II) ENNONCE
1- Questions préliminaires
Pour allumer la LED D1 il faut envoyer un niveau HAUT sur la broche 11.
pinMode (11,OUTPUT) ;
1 /3
04 BP 1361 CADJEHOUN - République du Bénin
Tél. : + (229) 213-086-87 - Fax : + (229) 213-089-85 - Cel : + (229) 954-298-13
e-mail : ipst@uatm-gasa.com
Web : www.uatm-gasa.com GH
c- Valeur de 𝑹𝟏 (1 point)
𝟓𝑽 − 𝑼𝑳
5𝑉 − 𝑅1𝐼𝐿 − 𝑈𝐿 = 0 ⇒ 𝑹𝟏 =
𝑰𝑳
5V−3,2
AN : R1 =
15×10−3
𝐑 𝟏 = 𝟏𝟐𝟎𝛀
5. 𝑅2
𝑉𝐿𝐷𝑅 > 4𝑉 ⇒ >4
10𝑘 + 𝑅2
⇒ 40𝑘 > 𝑅2
⇒ 𝑹𝟐 < 𝟒𝟎𝒌
2 /3
04 BP 1361 CADJEHOUN - République du Bénin
Tél. : + (229) 213-086-87 - Fax : + (229) 213-089-85 - Cel : + (229) 954-298-13
e-mail : ipst@uatm-gasa.com
Web : www.uatm-gasa.com GH
const int LED_PIN=11;
const int LDR_PIN=A0;
const int seuil=500;
void setup() {
pinMode(LED_PIN,OUTPUT);
Serial.begin(9600);
}
void loop() {
int ldrValue=analogRead(LDR_PIN);
if(ldrValue<seuil){
digitalWrite(LED_PIN,HIGH);
}else{
digitalWrite(LED_PIN,LOW);
}
delay(100);
}
Présentation : (1 point)
3 /3
04 BP 1361 CADJEHOUN - République du Bénin
Tél. : + (229) 213-086-87 - Fax : + (229) 213-089-85 - Cel : + (229) 954-298-13
e-mail : ipst@uatm-gasa.com
Web : www.uatm-gasa.com GH