18

Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Embed Size (px)

Citation preview

Page 1: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion
Page 2: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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

Page 3: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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

Page 4: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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 

Page 5: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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

Page 6: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Malric Leyssene Plantin 626/06/2013

Commande d’un organe de puissance

Solution : Utilisation d’un Triac optocouplé

Schéma CAO

Page 7: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Malric Leyssene Plantin 726/06/2013

iButton

Utilisation d’un ibutton DS1990A

Schéma CAO

Page 8: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Malric Leyssene Plantin 826/06/2013

Protocole 1-Wire Schéma de principe:

Page 9: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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

Page 10: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Malric Leyssene Plantin 1026/06/2013

Protocole 1-Wire

488 µs 156 µs

32 µs

Fonctionnement théorique

Fonctionnement réel

Page 11: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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

Page 12: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Malric Leyssene Plantin 12

Réception des 64 bits

◦ Après envoi de la commande.

◦ Calcul du CRC

26/06/2013

Protocole 1-Wire

Page 13: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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

Page 14: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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

Page 15: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

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

Page 16: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Malric Leyssene Plantin 16

Projet pluridisciplinaire

Fonctionnement validé

26/06/2013

Conclusion

Page 17: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Malric Leyssene Plantin 1726/06/2013

Bilan technique

Page 18: Présentation du projet Schéma fonctionnel et structurel Commande dun organe de puissance iButton Protocole 1-Wire Problèmes rencontrés Tests Conclusion

Malric Leyssene Plantin 1826/06/2013

Bilan de l’équipe