SlideShare uma empresa Scribd logo
1 de 19
Hajer DAHECH
Hajer DAHECH
const int bit_A = 2;
const int bit_B = 3;
const int bit_C = 4;
const int bit_D = 5;
const int bit_A1 = 8;
const int bit_B1 = 9;
const int bit_C1 = 10;
const int bit_D1= 11;
Code Arduino
Hajer DAHECH
void setup()
{
//on met les broches en sorties
pinMode(bit_A, OUTPUT);
pinMode(bit_B, OUTPUT);
pinMode(bit_C, OUTPUT);
pinMode(bit_D, OUTPUT);
pinMode(bit_A1, OUTPUT);
pinMode(bit_B1, OUTPUT);
pinMode(bit_C1, OUTPUT);
pinMode(bit_D1, OUTPUT);
Hajer DAHECH
//on commence par écrire le chiffre 0, donc toutes les
sorties à l'état bas
digitalWrite(bit_A, LOW);
digitalWrite(bit_B, LOW);
digitalWrite(bit_C, LOW);
digitalWrite(bit_D, LOW);
digitalWrite(bit_A1, LOW);
digitalWrite(bit_B1, LOW);
digitalWrite(bit_C1, LOW);
digitalWrite(bit_D1, LOW);
Hajer DAHECH
}
//fonction écrivant sur un afficheur U1
void afficher(char chiffre)
{
switch(chiffre)
{
case 0 :
digitalWrite(bit_A, LOW);
digitalWrite(bit_B, LOW);
Hajer DAHECH
digitalWrite(bit_C, LOW);
digitalWrite(bit_D, LOW);
break;
case 1 :
digitalWrite(bit_A, HIGH);
digitalWrite(bit_B, LOW);
digitalWrite(bit_C, LOW);
digitalWrite(bit_D, LOW);
break;
case 2 :
digitalWrite(bit_A, LOW);
Hajer DAHECH
digitalWrite(bit_B, HIGH);
digitalWrite(bit_C, LOW);
digitalWrite(bit_D, LOW);
break;
case 3 :
digitalWrite(bit_A, HIGH);
digitalWrite(bit_B, HIGH);
digitalWrite(bit_C, LOW);
digitalWrite(bit_D, LOW);
break;
case 4 :
Hajer DAHECH
digitalWrite(bit_A, LOW);
digitalWrite(bit_B, LOW);
digitalWrite(bit_C, HIGH);
digitalWrite(bit_D, LOW);
break;
case 5 :
digitalWrite(bit_A, HIGH);
digitalWrite(bit_B, LOW);
digitalWrite(bit_C, HIGH);
digitalWrite(bit_D, LOW);
break;
Hajer DAHECH
case 6 :
digitalWrite(bit_A, LOW);
digitalWrite(bit_B, HIGH);
digitalWrite(bit_C, HIGH);
digitalWrite(bit_D, LOW);
break;
case 7 :
digitalWrite(bit_A, HIGH);
digitalWrite(bit_B, HIGH);
digitalWrite(bit_C, HIGH);
digitalWrite(bit_D, LOW);
Hajer DAHECH
break;
case 8 :
digitalWrite(bit_A, LOW);
digitalWrite(bit_B, LOW);
digitalWrite(bit_C, LOW);
digitalWrite(bit_D, HIGH);
break;
case 9 :
digitalWrite(bit_A, HIGH);
digitalWrite(bit_B, LOW);
digitalWrite(bit_C, LOW);
Hajer DAHECH
digitalWrite(bit_D, HIGH);
break;
}
}
//fonction écrivant sur afficheur U2
void afficher1(char chiffre)
{
switch(chiffre)
{
case 0 :
digitalWrite(bit_A1, LOW);
Hajer DAHECH
digitalWrite(bit_B1, LOW);
digitalWrite(bit_C1, LOW);
digitalWrite(bit_D1, LOW);
break;
case 1 :
digitalWrite(bit_A1, HIGH);
digitalWrite(bit_B1, LOW);
digitalWrite(bit_C1, LOW);
digitalWrite(bit_D1, LOW);
break;
case 2 :
Hajer DAHECH
digitalWrite(bit_A1, LOW);
digitalWrite(bit_B1, HIGH);
digitalWrite(bit_C1, LOW);
digitalWrite(bit_D1, LOW);
break;
case 3 :
digitalWrite(bit_A1, HIGH);
digitalWrite(bit_B1, HIGH);
digitalWrite(bit_C1, LOW);
digitalWrite(bit_D1, LOW);
break;
Hajer DAHECH
case 4 :
digitalWrite(bit_A1, LOW);
digitalWrite(bit_B1, LOW);
digitalWrite(bit_C1, HIGH);
digitalWrite(bit_D1, LOW);
break;
case 5 :
digitalWrite(bit_A1, HIGH);
digitalWrite(bit_B1, LOW);
digitalWrite(bit_C1, HIGH);
digitalWrite(bit_D1, LOW);
Hajer DAHECH
break;
case 6 :
digitalWrite(bit_A1, LOW);
digitalWrite(bit_B1, HIGH);
digitalWrite(bit_C1, HIGH);
digitalWrite(bit_D1, LOW);
break;
case 7 :
digitalWrite(bit_A1, HIGH);
digitalWrite(bit_B1, HIGH);
digitalWrite(bit_C1, HIGH);
Hajer DAHECH
digitalWrite(bit_D1, LOW);
break;
case 8 :
digitalWrite(bit_A1, LOW);
digitalWrite(bit_B1, LOW);
digitalWrite(bit_C1, LOW);
digitalWrite(bit_D1, HIGH);
break;
case 9 :
digitalWrite(bit_A1, HIGH);
digitalWrite(bit_B1, LOW);
Hajer DAHECH
digitalWrite(bit_C1, LOW);
digitalWrite(bit_D1, HIGH);
break;
}
}
void loop()
{
char i=0; //variable "compteur U1"
char j=0; //variable "compteur U2"
for(i=0; i<10; i++)
{
Hajer DAHECH
for(j=0; j<10; j++){
afficher(j); //appel fonction d'affichage U1
afficher1(i); // appel fonction d'affichage U2
delay(1000); //on attend 1 seconde
}
delay(1000); //on attend 1 seconde
}
}
Hajer DAHECH
ISIS

Mais conteúdo relacionado

Mais procurados

22 microcontroller programs
22 microcontroller programs22 microcontroller programs
22 microcontroller programsbabak danyal
 
Cn1 connection details 36pins
Cn1 connection details 36pinsCn1 connection details 36pins
Cn1 connection details 36pinsravi_kaneria
 
Programming avr microcontroller digital i
Programming avr microcontroller digital iProgramming avr microcontroller digital i
Programming avr microcontroller digital iManas Mantri
 
100 digital lab_7447to7segment
100 digital lab_7447to7segment100 digital lab_7447to7segment
100 digital lab_7447to7segmentpratibha683
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.Omkar Rane
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital ElectronicsPaurav Shah
 
Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)ali9753
 
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018UVCE
 
Intro to c programming
Intro to c programmingIntro to c programming
Intro to c programmingPrabhu Govind
 
Microcontroller Programming Assignment
Microcontroller Programming AssignmentMicrocontroller Programming Assignment
Microcontroller Programming Assignmentbabak danyal
 
Arduino cic3
Arduino cic3Arduino cic3
Arduino cic3Jeni Shah
 
Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018
Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018
Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018UVCE
 
Algoritma pemrogmraman
Algoritma pemrogmramanAlgoritma pemrogmraman
Algoritma pemrogmramannoval riansyah
 

Mais procurados (20)

Vhdl
VhdlVhdl
Vhdl
 
22 microcontroller programs
22 microcontroller programs22 microcontroller programs
22 microcontroller programs
 
Cn1 connection details 36pins
Cn1 connection details 36pinsCn1 connection details 36pins
Cn1 connection details 36pins
 
Programming avr microcontroller digital i
Programming avr microcontroller digital iProgramming avr microcontroller digital i
Programming avr microcontroller digital i
 
Ddhdl 15
Ddhdl 15Ddhdl 15
Ddhdl 15
 
100 digital lab_7447to7segment
100 digital lab_7447to7segment100 digital lab_7447to7segment
100 digital lab_7447to7segment
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
Ports 0f 8051
Ports 0f 8051Ports 0f 8051
Ports 0f 8051
 
Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)
 
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
 
Intro to c programming
Intro to c programmingIntro to c programming
Intro to c programming
 
Control Word
Control WordControl Word
Control Word
 
Microcontroller Programming Assignment
Microcontroller Programming AssignmentMicrocontroller Programming Assignment
Microcontroller Programming Assignment
 
Assignment#5
Assignment#5Assignment#5
Assignment#5
 
Arduino cic3
Arduino cic3Arduino cic3
Arduino cic3
 
Assignment#6
Assignment#6Assignment#6
Assignment#6
 
Vcs15
Vcs15Vcs15
Vcs15
 
Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018
Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018
Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018
 
Algoritma pemrogmraman
Algoritma pemrogmramanAlgoritma pemrogmraman
Algoritma pemrogmraman
 

Destaque

ARDUINO + LABVIEW : CONTRÔLE DE LA TEMPÉRATURE
ARDUINO + LABVIEW : CONTRÔLE DE LA TEMPÉRATUREARDUINO + LABVIEW : CONTRÔLE DE LA TEMPÉRATURE
ARDUINO + LABVIEW : CONTRÔLE DE LA TEMPÉRATUREHajer Dahech
 
Présentation PowerPoint " Conception et développement d'un portail web pour l...
Présentation PowerPoint " Conception et développement d'un portail web pour l...Présentation PowerPoint " Conception et développement d'un portail web pour l...
Présentation PowerPoint " Conception et développement d'un portail web pour l...Hajer Dahech
 
Généralités sur les périphériques du STM32
Généralités sur les périphériques du STM32Généralités sur les périphériques du STM32
Généralités sur les périphériques du STM32Hajer Dahech
 
Rapport PFE "Conception et développement d'un Portail web pour le Smart Met...
Rapport  PFE  "Conception et développement d'un Portail web pour le Smart Met...Rapport  PFE  "Conception et développement d'un Portail web pour le Smart Met...
Rapport PFE "Conception et développement d'un Portail web pour le Smart Met...Hajer Dahech
 
STM32F4+Android Application
STM32F4+Android ApplicationSTM32F4+Android Application
STM32F4+Android ApplicationHajer Dahech
 
Techniques de programmation avancée LabVIEW : gestion des données de la local...
Techniques de programmation avancée LabVIEW : gestion des données de la local...Techniques de programmation avancée LabVIEW : gestion des données de la local...
Techniques de programmation avancée LabVIEW : gestion des données de la local...Luc Desruelle
 
Innhotep - Etude Smart Grids et services d'efficacité énergétique en aval com...
Innhotep - Etude Smart Grids et services d'efficacité énergétique en aval com...Innhotep - Etude Smart Grids et services d'efficacité énergétique en aval com...
Innhotep - Etude Smart Grids et services d'efficacité énergétique en aval com...Innhotep
 
Les grand projets d'investissement du STEG
Les grand projets d'investissement du STEGLes grand projets d'investissement du STEG
Les grand projets d'investissement du STEGMade in Tunisia
 
Programmation des pic_en_c_part2
Programmation des pic_en_c_part2Programmation des pic_en_c_part2
Programmation des pic_en_c_part2oussamada
 
Micocontroleur16 fxxx (1)
Micocontroleur16 fxxx (1)Micocontroleur16 fxxx (1)
Micocontroleur16 fxxx (1)Karim Touati
 
Programmation des pic_en_c_part1
Programmation des pic_en_c_part1Programmation des pic_en_c_part1
Programmation des pic_en_c_part1oussamada
 
Cours0 presentation carte arduino
Cours0   presentation carte arduinoCours0   presentation carte arduino
Cours0 presentation carte arduinolabsud
 
Microcontroleur Pic16 F84
Microcontroleur Pic16 F84Microcontroleur Pic16 F84
Microcontroleur Pic16 F84guest1e7b02
 
Présentation Arduino par Christian, F5HOD
Présentation Arduino par Christian, F5HODPrésentation Arduino par Christian, F5HOD
Présentation Arduino par Christian, F5HODwebmasterref68
 
SITUATION ET PERSPECTIVES DE DEVELOPPEMENT DES ENERGIES RENOUVELABLES ET D...
SITUATION ET PERSPECTIVES DE DEVELOPPEMENT DES ENERGIES  RENOUVELABLES   ET D...SITUATION ET PERSPECTIVES DE DEVELOPPEMENT DES ENERGIES  RENOUVELABLES   ET D...
SITUATION ET PERSPECTIVES DE DEVELOPPEMENT DES ENERGIES RENOUVELABLES ET D...Alexander Marshall
 
Rapport de stage de perfectionnement
Rapport de stage de perfectionnementRapport de stage de perfectionnement
Rapport de stage de perfectionnementbadouuur
 
Rapport stage IP-MSAN Tunisie télécom
Rapport stage IP-MSAN Tunisie télécomRapport stage IP-MSAN Tunisie télécom
Rapport stage IP-MSAN Tunisie télécomSiwar GUEMRI
 

Destaque (20)

ARDUINO + LABVIEW : CONTRÔLE DE LA TEMPÉRATURE
ARDUINO + LABVIEW : CONTRÔLE DE LA TEMPÉRATUREARDUINO + LABVIEW : CONTRÔLE DE LA TEMPÉRATURE
ARDUINO + LABVIEW : CONTRÔLE DE LA TEMPÉRATURE
 
Présentation PowerPoint " Conception et développement d'un portail web pour l...
Présentation PowerPoint " Conception et développement d'un portail web pour l...Présentation PowerPoint " Conception et développement d'un portail web pour l...
Présentation PowerPoint " Conception et développement d'un portail web pour l...
 
Généralités sur les périphériques du STM32
Généralités sur les périphériques du STM32Généralités sur les périphériques du STM32
Généralités sur les périphériques du STM32
 
Rapport PFE "Conception et développement d'un Portail web pour le Smart Met...
Rapport  PFE  "Conception et développement d'un Portail web pour le Smart Met...Rapport  PFE  "Conception et développement d'un Portail web pour le Smart Met...
Rapport PFE "Conception et développement d'un Portail web pour le Smart Met...
 
STM32F4+Android Application
STM32F4+Android ApplicationSTM32F4+Android Application
STM32F4+Android Application
 
Techniques de programmation avancée LabVIEW : gestion des données de la local...
Techniques de programmation avancée LabVIEW : gestion des données de la local...Techniques de programmation avancée LabVIEW : gestion des données de la local...
Techniques de programmation avancée LabVIEW : gestion des données de la local...
 
Cours de c
Cours de cCours de c
Cours de c
 
Innhotep - Etude Smart Grids et services d'efficacité énergétique en aval com...
Innhotep - Etude Smart Grids et services d'efficacité énergétique en aval com...Innhotep - Etude Smart Grids et services d'efficacité énergétique en aval com...
Innhotep - Etude Smart Grids et services d'efficacité énergétique en aval com...
 
Les grand projets d'investissement du STEG
Les grand projets d'investissement du STEGLes grand projets d'investissement du STEG
Les grand projets d'investissement du STEG
 
Pic16f84
Pic16f84Pic16f84
Pic16f84
 
Programmation des pic_en_c_part2
Programmation des pic_en_c_part2Programmation des pic_en_c_part2
Programmation des pic_en_c_part2
 
Micocontroleur16 fxxx (1)
Micocontroleur16 fxxx (1)Micocontroleur16 fxxx (1)
Micocontroleur16 fxxx (1)
 
Programmation des pic_en_c_part1
Programmation des pic_en_c_part1Programmation des pic_en_c_part1
Programmation des pic_en_c_part1
 
Cours0 presentation carte arduino
Cours0   presentation carte arduinoCours0   presentation carte arduino
Cours0 presentation carte arduino
 
Microcontroleur Pic16 F84
Microcontroleur Pic16 F84Microcontroleur Pic16 F84
Microcontroleur Pic16 F84
 
Cours pics16 f877
Cours pics16 f877Cours pics16 f877
Cours pics16 f877
 
Présentation Arduino par Christian, F5HOD
Présentation Arduino par Christian, F5HODPrésentation Arduino par Christian, F5HOD
Présentation Arduino par Christian, F5HOD
 
SITUATION ET PERSPECTIVES DE DEVELOPPEMENT DES ENERGIES RENOUVELABLES ET D...
SITUATION ET PERSPECTIVES DE DEVELOPPEMENT DES ENERGIES  RENOUVELABLES   ET D...SITUATION ET PERSPECTIVES DE DEVELOPPEMENT DES ENERGIES  RENOUVELABLES   ET D...
SITUATION ET PERSPECTIVES DE DEVELOPPEMENT DES ENERGIES RENOUVELABLES ET D...
 
Rapport de stage de perfectionnement
Rapport de stage de perfectionnementRapport de stage de perfectionnement
Rapport de stage de perfectionnement
 
Rapport stage IP-MSAN Tunisie télécom
Rapport stage IP-MSAN Tunisie télécomRapport stage IP-MSAN Tunisie télécom
Rapport stage IP-MSAN Tunisie télécom
 

Semelhante a Compteur ARDUINO

Codigo fuente
Codigo fuenteCodigo fuente
Codigo fuenteBlackD10
 
Arduino based keyboard and display interfacing
Arduino based keyboard and display interfacingArduino based keyboard and display interfacing
Arduino based keyboard and display interfacingAkash1900
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.pptZainIslam20
 
01_DIGITAL IO.pptx
01_DIGITAL IO.pptx01_DIGITAL IO.pptx
01_DIGITAL IO.pptxssuser593a2d
 
Microcontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxMicrocontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxSANTIAGO PABLO ALBERTO
 
What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfSIGMATAX1
 
Arduino programming.pptx
Arduino programming.pptxArduino programming.pptx
Arduino programming.pptxChithraDiljith
 
Verilog 語法教學
Verilog 語法教學 Verilog 語法教學
Verilog 語法教學 艾鍗科技
 
Getting Started With Raspberry Pi - UCSD 2013
Getting Started With Raspberry Pi - UCSD 2013Getting Started With Raspberry Pi - UCSD 2013
Getting Started With Raspberry Pi - UCSD 2013Tom Paulus
 

Semelhante a Compteur ARDUINO (20)

Feedback ud6.
Feedback ud6. Feedback ud6.
Feedback ud6.
 
arduino.ppt
arduino.pptarduino.ppt
arduino.ppt
 
Programming arduino makeymakey
Programming arduino makeymakeyProgramming arduino makeymakey
Programming arduino makeymakey
 
Codigo fuente
Codigo fuenteCodigo fuente
Codigo fuente
 
Arduino based keyboard and display interfacing
Arduino based keyboard and display interfacingArduino based keyboard and display interfacing
Arduino based keyboard and display interfacing
 
PIC and LCD
PIC and LCDPIC and LCD
PIC and LCD
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
mod-4.pptx
mod-4.pptxmod-4.pptx
mod-4.pptx
 
01_DIGITAL IO.pptx
01_DIGITAL IO.pptx01_DIGITAL IO.pptx
01_DIGITAL IO.pptx
 
Microcontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxMicrocontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docx
 
Arduino.pptx
Arduino.pptxArduino.pptx
Arduino.pptx
 
What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdf
 
Arduino programming.pptx
Arduino programming.pptxArduino programming.pptx
Arduino programming.pptx
 
Verilog 語法教學
Verilog 語法教學 Verilog 語法教學
Verilog 語法教學
 
Getting Started With Raspberry Pi - UCSD 2013
Getting Started With Raspberry Pi - UCSD 2013Getting Started With Raspberry Pi - UCSD 2013
Getting Started With Raspberry Pi - UCSD 2013
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
Smart home arduino
Smart home   arduinoSmart home   arduino
Smart home arduino
 

Mais de Hajer Dahech

UML _ Sequence Diagram Example Authentication _ Diagramme de Séquence Authen...
UML _ Sequence Diagram Example Authentication _ Diagramme de Séquence  Authen...UML _ Sequence Diagram Example Authentication _ Diagramme de Séquence  Authen...
UML _ Sequence Diagram Example Authentication _ Diagramme de Séquence Authen...Hajer Dahech
 
Use Case Diagram Example " Authentication"
Use Case Diagram Example " Authentication"Use Case Diagram Example " Authentication"
Use Case Diagram Example " Authentication"Hajer Dahech
 
Google Sheet "Application n'est pas validée"
Google Sheet  "Application n'est pas validée"Google Sheet  "Application n'est pas validée"
Google Sheet "Application n'est pas validée"Hajer Dahech
 
Tp informatique industrielle
Tp informatique industrielleTp informatique industrielle
Tp informatique industrielleHajer Dahech
 
Arm robot Solidworks
Arm robot SolidworksArm robot Solidworks
Arm robot SolidworksHajer Dahech
 
Traitement d'image sous Matlab
Traitement d'image sous Matlab  Traitement d'image sous Matlab
Traitement d'image sous Matlab Hajer Dahech
 

Mais de Hajer Dahech (12)

Html Résumé
Html RésuméHtml Résumé
Html Résumé
 
Arduino dc motor
Arduino dc motor Arduino dc motor
Arduino dc motor
 
LCD ARDUINO UNO
LCD ARDUINO UNO LCD ARDUINO UNO
LCD ARDUINO UNO
 
Python Image RGB
Python Image RGBPython Image RGB
Python Image RGB
 
Python
PythonPython
Python
 
Definitions UML
Definitions UMLDefinitions UML
Definitions UML
 
UML _ Sequence Diagram Example Authentication _ Diagramme de Séquence Authen...
UML _ Sequence Diagram Example Authentication _ Diagramme de Séquence  Authen...UML _ Sequence Diagram Example Authentication _ Diagramme de Séquence  Authen...
UML _ Sequence Diagram Example Authentication _ Diagramme de Séquence Authen...
 
Use Case Diagram Example " Authentication"
Use Case Diagram Example " Authentication"Use Case Diagram Example " Authentication"
Use Case Diagram Example " Authentication"
 
Google Sheet "Application n'est pas validée"
Google Sheet  "Application n'est pas validée"Google Sheet  "Application n'est pas validée"
Google Sheet "Application n'est pas validée"
 
Tp informatique industrielle
Tp informatique industrielleTp informatique industrielle
Tp informatique industrielle
 
Arm robot Solidworks
Arm robot SolidworksArm robot Solidworks
Arm robot Solidworks
 
Traitement d'image sous Matlab
Traitement d'image sous Matlab  Traitement d'image sous Matlab
Traitement d'image sous Matlab
 

Último

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 

Último (20)

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 

Compteur ARDUINO

  • 2. Hajer DAHECH const int bit_A = 2; const int bit_B = 3; const int bit_C = 4; const int bit_D = 5; const int bit_A1 = 8; const int bit_B1 = 9; const int bit_C1 = 10; const int bit_D1= 11; Code Arduino
  • 3. Hajer DAHECH void setup() { //on met les broches en sorties pinMode(bit_A, OUTPUT); pinMode(bit_B, OUTPUT); pinMode(bit_C, OUTPUT); pinMode(bit_D, OUTPUT); pinMode(bit_A1, OUTPUT); pinMode(bit_B1, OUTPUT); pinMode(bit_C1, OUTPUT); pinMode(bit_D1, OUTPUT);
  • 4. Hajer DAHECH //on commence par écrire le chiffre 0, donc toutes les sorties à l'état bas digitalWrite(bit_A, LOW); digitalWrite(bit_B, LOW); digitalWrite(bit_C, LOW); digitalWrite(bit_D, LOW); digitalWrite(bit_A1, LOW); digitalWrite(bit_B1, LOW); digitalWrite(bit_C1, LOW); digitalWrite(bit_D1, LOW);
  • 5. Hajer DAHECH } //fonction écrivant sur un afficheur U1 void afficher(char chiffre) { switch(chiffre) { case 0 : digitalWrite(bit_A, LOW); digitalWrite(bit_B, LOW);
  • 6. Hajer DAHECH digitalWrite(bit_C, LOW); digitalWrite(bit_D, LOW); break; case 1 : digitalWrite(bit_A, HIGH); digitalWrite(bit_B, LOW); digitalWrite(bit_C, LOW); digitalWrite(bit_D, LOW); break; case 2 : digitalWrite(bit_A, LOW);
  • 7. Hajer DAHECH digitalWrite(bit_B, HIGH); digitalWrite(bit_C, LOW); digitalWrite(bit_D, LOW); break; case 3 : digitalWrite(bit_A, HIGH); digitalWrite(bit_B, HIGH); digitalWrite(bit_C, LOW); digitalWrite(bit_D, LOW); break; case 4 :
  • 8. Hajer DAHECH digitalWrite(bit_A, LOW); digitalWrite(bit_B, LOW); digitalWrite(bit_C, HIGH); digitalWrite(bit_D, LOW); break; case 5 : digitalWrite(bit_A, HIGH); digitalWrite(bit_B, LOW); digitalWrite(bit_C, HIGH); digitalWrite(bit_D, LOW); break;
  • 9. Hajer DAHECH case 6 : digitalWrite(bit_A, LOW); digitalWrite(bit_B, HIGH); digitalWrite(bit_C, HIGH); digitalWrite(bit_D, LOW); break; case 7 : digitalWrite(bit_A, HIGH); digitalWrite(bit_B, HIGH); digitalWrite(bit_C, HIGH); digitalWrite(bit_D, LOW);
  • 10. Hajer DAHECH break; case 8 : digitalWrite(bit_A, LOW); digitalWrite(bit_B, LOW); digitalWrite(bit_C, LOW); digitalWrite(bit_D, HIGH); break; case 9 : digitalWrite(bit_A, HIGH); digitalWrite(bit_B, LOW); digitalWrite(bit_C, LOW);
  • 11. Hajer DAHECH digitalWrite(bit_D, HIGH); break; } } //fonction écrivant sur afficheur U2 void afficher1(char chiffre) { switch(chiffre) { case 0 : digitalWrite(bit_A1, LOW);
  • 12. Hajer DAHECH digitalWrite(bit_B1, LOW); digitalWrite(bit_C1, LOW); digitalWrite(bit_D1, LOW); break; case 1 : digitalWrite(bit_A1, HIGH); digitalWrite(bit_B1, LOW); digitalWrite(bit_C1, LOW); digitalWrite(bit_D1, LOW); break; case 2 :
  • 13. Hajer DAHECH digitalWrite(bit_A1, LOW); digitalWrite(bit_B1, HIGH); digitalWrite(bit_C1, LOW); digitalWrite(bit_D1, LOW); break; case 3 : digitalWrite(bit_A1, HIGH); digitalWrite(bit_B1, HIGH); digitalWrite(bit_C1, LOW); digitalWrite(bit_D1, LOW); break;
  • 14. Hajer DAHECH case 4 : digitalWrite(bit_A1, LOW); digitalWrite(bit_B1, LOW); digitalWrite(bit_C1, HIGH); digitalWrite(bit_D1, LOW); break; case 5 : digitalWrite(bit_A1, HIGH); digitalWrite(bit_B1, LOW); digitalWrite(bit_C1, HIGH); digitalWrite(bit_D1, LOW);
  • 15. Hajer DAHECH break; case 6 : digitalWrite(bit_A1, LOW); digitalWrite(bit_B1, HIGH); digitalWrite(bit_C1, HIGH); digitalWrite(bit_D1, LOW); break; case 7 : digitalWrite(bit_A1, HIGH); digitalWrite(bit_B1, HIGH); digitalWrite(bit_C1, HIGH);
  • 16. Hajer DAHECH digitalWrite(bit_D1, LOW); break; case 8 : digitalWrite(bit_A1, LOW); digitalWrite(bit_B1, LOW); digitalWrite(bit_C1, LOW); digitalWrite(bit_D1, HIGH); break; case 9 : digitalWrite(bit_A1, HIGH); digitalWrite(bit_B1, LOW);
  • 17. Hajer DAHECH digitalWrite(bit_C1, LOW); digitalWrite(bit_D1, HIGH); break; } } void loop() { char i=0; //variable "compteur U1" char j=0; //variable "compteur U2" for(i=0; i<10; i++) {
  • 18. Hajer DAHECH for(j=0; j<10; j++){ afficher(j); //appel fonction d'affichage U1 afficher1(i); // appel fonction d'affichage U2 delay(1000); //on attend 1 seconde } delay(1000); //on attend 1 seconde } }