Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes | ||
materiels:capteurs:distance:distus [2024/05/03 12:20] – [2.2 Module VMA306 à capteur HC-SR05] phil | materiels:capteurs:distance:distus [2024/05/19 11:54] – [2.3 HC-SR04P (GPIO - I2C - UART)] phil | ||
---|---|---|---|
Ligne 109: | Ligne 109: | ||
} | } | ||
</ | </ | ||
+ | |||
{{ : | {{ : | ||
Ligne 198: | Ligne 199: | ||
=== 2.3 HC-SR04P (GPIO - I2C - UART) === | === 2.3 HC-SR04P (GPIO - I2C - UART) === | ||
- | {{ : | + | {{ : |
== 2.3.1 Présentation == | == 2.3.1 Présentation == | ||
Ligne 217: | Ligne 218: | ||
* Dimensions: 45,5 x 20,3 x 15,5 mm | * Dimensions: 45,5 x 20,3 x 15,5 mm | ||
- | * // | + | * // |
{{ : | {{ : | ||
* // | * // | ||
- | * Fichier Acrobat Reader à télécharger < | + | * A télécharger < |
+ | |||
+ | {{ : | ||
+ | * // | ||
+ | * Relevé des signaux du bus I2C. A télécharger < | ||
\\ | \\ | ||
Ligne 258: | Ligne 263: | ||
duration = pulseIn(echo, | duration = pulseIn(echo, | ||
distance = duration * 340 / 2 / 10000; | distance = duration * 340 / 2 / 10000; | ||
- | | + | Serial.println(" |
- | Serial.println(" | + | |
- | } else { | + | |
- | | + | |
- | } | + | |
delay(3000); | delay(3000); | ||
} | } |