Cours:Multimetre : Différence entre versions

De troyesGEII
Aller à : navigation, rechercher
 
Ligne 15 : Ligne 15 :
 
**[https://docs.google.com/spreadsheets/d/1U529O5DzbZEr_Bc2yAxmZ1gn65Y0_K2YUc_RzgcK114/edit?usp=sharing Calibres Volmètre ]
 
**[https://docs.google.com/spreadsheets/d/1U529O5DzbZEr_Bc2yAxmZ1gn65Y0_K2YUc_RzgcK114/edit?usp=sharing Calibres Volmètre ]
 
**[https://docs.google.com/spreadsheets/d/1--cW_m3tTq4-uabpUYxtuZK7hvvfFN8TpTvE_-18gt8/edit?usp=sharing Calibres Ohmmètre]
 
**[https://docs.google.com/spreadsheets/d/1--cW_m3tTq4-uabpUYxtuZK7hvvfFN8TpTvE_-18gt8/edit?usp=sharing Calibres Ohmmètre]
 +
*Fichiers Kicad
 +
**[[Media:KicadMultimetreEtudiant.zip]]
 
*Fichiers eagle :
 
*Fichiers eagle :
 
**[[Media:VoltmetreRoutageEtudiants.sch]]
 
**[[Media:VoltmetreRoutageEtudiants.sch]]

Version actuelle datée du 6 novembre 2023 à 12:57

Planning

  • Lundi : 8h30-12h30 14h-17h
    • dossier jusqu'à 15h
    • routage de 15h à 17h
  • Mardi : montage de la carte
  • Mercredi : programmation

Fichiers

Programmation

Vérification du fonctionnement de la carte

  • Télécharger le fichier suivant et le décompresser !

Media:TestMultimetre.ino.hex.zip

  • Programmer dans un terminal avec la ligne de commande suivante :
avrdude -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:testMultimetre.ino.hex:i

Programmation sur tinkercad

https://www.tinkercad.com/things/dSQS8on1FL6


Fonction affiche

// ! bien déclarer les broches en sorties !
void affiche7sgt(uint8_t n)
{
  PORTB=(PORTB&0xf0)|(n&0x0f);
}

// exemple d'utilisation
affiche7sgt(2);           // permettra d'afficher la valeur 2
affiche7sgt(i);           // permettra d'afficher le chiffre i (entre 0 et 9 ! )
affiche7sgt(n%10);        // permettra d'afficher la valeur des unités de n