ATB : APRS TELEMETRY BOX []

Outils pour utilisateurs

Outils du site


ATB : APRS TELEMETRY BOX

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
projets:atb:index [2021/03/04 01:24] f1slsprojets:atb:index [2021/03/04 02:06] (Version actuelle) f1sls
Ligne 1: Ligne 1:
 ====== ATB : APRS TELEMETRY BOX ====== ====== ATB : APRS TELEMETRY BOX ======
 +
 +{{:index_01.png?64|}}
 +<catlist -forceHeadTitle -exclupage -sortAscending -hideNotFoundMsg -columns:1 -maxDepth:1 -noHead -noAddPageButton>
 +----
  
 ===== AX.25 MODEM ===== ===== AX.25 MODEM =====
Ligne 5: Ligne 9:
  
 ===== SENSORS ===== ===== SENSORS =====
 +
 ==== 4~20 mA CURRENT LOOP ==== ==== 4~20 mA CURRENT LOOP ====
-==== TEMPERATURE ==== 
-==== TILT ==== 
-==== HUMIDITY ==== 
-{{:projets:atb:ky-015_temperature_humidity_sensor_module-240x240.jpg?direct&100|}} 
  
-=== CHARACTERISTICS === 
-  * Operating Voltage 3.3V to 5.5V 
-  * Humidity measurement range 20% to 90% RH 
-  * Humidity measurement accuracy ±5% RH 
-  * Humidity measurement resolution 1% RH 
-  * Temperature measurement range 0ºC to 50ºC [32ºF to 122ºF] 
-  * Temperature measurement accuracy ±2ºC 
-  * Temperature measurement resolution 1ºC 
-  * Signal transmission range 20m 
  
-=== ARDUINO WIRING === +==== TILT ====
-{{:projets:atb:arduino_ky-015_keyes_temperature_humidity_sensor_module_connection_diagram.png?direct&400|}} +
- +
-=== CODE SAMPLE === +
-<code c> +
-int DHpin = 8; // input/output pin +
-byte dat[5];    +
- +
-byte read_data() +
-+
-  byte i = 0; +
-  byte result = 0; +
-  for (i = 0; i < 8; i++) { +
-      while (digitalRead(DHpin) == LOW); // wait 50us +
-      delayMicroseconds(30); //The duration of the high level is judged to determine whether the data is '0' or '1' +
-      if (digitalRead(DHpin) == HIGH) +
-        result |= (1 << (8 - i)); //High in the former, low in the post +
-    while (digitalRead(DHpin) == HIGH); //Data '1', waiting for the next bit of reception +
-    } +
-  return result; +
-+
- +
-void start_test() +
-+
-  digitalWrite(DHpin, LOW); //Pull down the bus to send the start signal +
-  delay(30); //The delay is greater than 18 ms so that DHT 11 can detect the start signal +
-  digitalWrite(DHpin, HIGH); +
-  delayMicroseconds(40); //Wait for DHT11 to respond +
-  pinMode(DHpin, INPUT); +
-  while(digitalRead(DHpin) == HIGH); +
-  delayMicroseconds(80); //The DHT11 responds by pulling the bus low for 80us; +
-   +
-  if(digitalRead(DHpin) == LOW) +
-    delayMicroseconds(80); //DHT11 pulled up after the bus 80us to start sending data; +
-  for(int i = 0; i < 5; i++) //Receiving temperature and humidity data, check bits are not considered; +
-    dat[i] = read_data(); +
-  pinMode(DHpin, OUTPUT); +
-  digitalWrite(DHpin, HIGH); //After the completion of a release of data bus, waiting for the host to start the next signal +
-+
- +
-void setup() +
-+
-  Serial.begin(9600); +
-  pinMode(DHpin, OUTPUT); +
-+
- +
-void loop() +
-+
-  start_test(); +
-  Serial.print("Humdity = "); +
-  Serial.print(dat[0], DEC); //Displays the integer bits of humidity; +
-  Serial.print('.'); +
-  Serial.print(dat[1], DEC); //Displays the decimal places of the humidity; +
-  Serial.println('%'); +
-  Serial.print("Temperature = "); +
-  Serial.print(dat[2], DEC); //Displays the integer bits of temperature; +
-  Serial.print('.'); +
-  Serial.print(dat[3], DEC); //Displays the decimal places of the temperature; +
-  Serial.println('C'); +
- +
-  byte checksum = dat[0] + dat[1] + dat[2] + dat[3]; +
-  if (dat[4] != checksum)  +
-    Serial.println("-- Checksum Error!"); +
-  else +
-    Serial.println("-- OK"); +
-  +
-  delay(1000); +
-+
-</code>+
 ===== POWER ===== ===== POWER =====
   * 30~7VDC in → 5VDC out DC-DC step-down converter   * 30~7VDC in → 5VDC out DC-DC step-down converter
projets/atb/index.1614817486.txt.gz · Dernière modification : de f1sls