Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
arduiro:php-meter [2019/01/20 14:28] – cyrille | arduiro:php-meter [2019/01/20 15:46] – [Divers] cyrille | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
- | | + | <code bash> |
void setup() { | void setup() { | ||
Serial.begin(9600); | Serial.begin(9600); | ||
Ligne 27: | Ligne 27: | ||
Serial.println("" | Serial.println("" | ||
delay(2000); | delay(2000); | ||
- | } | + | }</ |
===== Script 2 ===== | ===== Script 2 ===== | ||
- | const int phPin = A0; | + | <code bash>const int phPin = A0; |
int sensorValue = 0; | int sensorValue = 0; | ||
unsigned long int avgValue; | unsigned long int avgValue; | ||
Ligne 64: | Ligne 64: | ||
Serial.println(phValue); | Serial.println(phValue); | ||
delay(20); | delay(20); | ||
- | } | + | }</ |
===== Réglage généraux ===== | ===== Réglage généraux ===== | ||
Ligne 93: | Ligne 93: | ||
That's all, now you can use it with the code below. | That's all, now you can use it with the code below. | ||
+ | |||
+ | ===== Divers ===== | ||
+ | {{: | ||
+ | {{: |