présentation du projet schéma fonctionnel et structurel commande dun organe de puissance ibutton...
TRANSCRIPT
Malric Leyssene Plantin 2
Présentation du projet Schéma fonctionnel et structurel Commande d’un organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion
Sommaire
26/06/2013
Malric Leyssene Plantin 3
Objectifs:
◦ Lire un numéro d’identification d’un ibutton
◦ Afficher le numéro d’identification
◦ Commander un organe de puissance
26/06/2013
Présentation du projet
Malric Leyssene Plantin 4
Schéma fonctionnel:
26/06/2013
Schéma fonctionnel et structurel
FP3 :
Détectier numéro indentification
FP3 :
Détectier numéro indentification
FP2 : Alimenter lesystème
FP2 : Alimenter lesystème
FP1 :
Traiter des données
FP1 :
Traiter des données
FP4 :Communiquer entre l’homme et la machine
FP4 :Communiquer entre l’homme et la machine
FP5 :Commander organe de puissance
FP5 :Commander organe de puissance
FP6 :
Reprogrammer
FP6 :
Reprogrammer
Malric Leyssene Plantin 5
Schéma structurel:
26/06/2013
FP3 : Lecteur de clé ibutton
FP3 : Lecteur de clé ibutton
FP2 : Régulateur de tension
FP2 : Régulateur de tension
FP1 :
MicrocontrôleurPic18f4550
FP1 :
MicrocontrôleurPic18f4550
FP4 :
Afficheur LCD
FP4 :
Afficheur LCD
FP5 :
Triac optocouplé
FP5 :
Triac optocouplé
FP6 :Port USB et ICD2
FP6 :Port USB et ICD2
Malric Leyssene Plantin 626/06/2013
Commande d’un organe de puissance
Solution : Utilisation d’un Triac optocouplé
Schéma CAO
Malric Leyssene Plantin 726/06/2013
iButton
Utilisation d’un ibutton DS1990A
Schéma CAO
Malric Leyssene Plantin 826/06/2013
Protocole 1-Wire Schéma de principe:
Malric Leyssene Plantin 9
Fonctionnement :
◦ Détection d’un esclave
◦ Envoi de la commande « Read Rom »
◦ Lecture des 64 bits de données
◦ Vérification de la transmission des données (CRC)
26/06/2013
Protocole 1-Wire
Malric Leyssene Plantin 1026/06/2013
Protocole 1-Wire
488 µs 156 µs
32 µs
Fonctionnement théorique
Fonctionnement réel
Malric Leyssene Plantin 11
Envoi de la commande « Read Rom »:
o 33 en hexadécimal
o LSB en premier
o Débit : 14 Kbits/sec
26/06/2013
Protocole 1-Wire
Malric Leyssene Plantin 12
Réception des 64 bits
◦ Après envoi de la commande.
◦ Calcul du CRC
26/06/2013
Protocole 1-Wire
Malric Leyssene Plantin 13
Timer 0 du pic
◦ Problème de registre TMR0H et TMR0L◦ Problème de fréquence
26/06/2013
Problèmes rencontrés
Malric Leyssene Plantin 14
Problème de mémoire pour le CRC:
◦ Source probable :
- Problèmes d’adressage des 256 valeur
- RAM pleine
26/06/2013
Problèmes rencontrés
Malric Leyssene Plantin 15
Pour clé fausse:- Affichage- Triac non commandé(voie bleue état bas)
Pour clé bonne:- Affichage- Triac commandé(voie bleue état haut)
26/06/2013
Tests de fonctionnement
Malric Leyssene Plantin 16
Projet pluridisciplinaire
Fonctionnement validé
26/06/2013
Conclusion
Malric Leyssene Plantin 1726/06/2013
Bilan technique
Malric Leyssene Plantin 1826/06/2013
Bilan de l’équipe