User:Tom/Arduino Project: Difference between revisions

From RoggeWiki
Jump to navigation Jump to search
Line 150: Line 150:
  '''----------------- Name -----------------    Sensor    - ID -  ------- GPIO pins ------ '''             
  '''----------------- Name -----------------    Sensor    - ID -  ------- GPIO pins ------ '''             
  '''                                                                Data        +    Ground  '''   
  '''                                                                Data        +    Ground  '''   
  roggedomo.boilerroom.humidity                DHT22 1           32 GPIO 12  17  39
  roggedomo.boilerroom.humidity                DHT22     DHT22-1   32 GPIO 12  17  39
  roggedomo.boilerroom.temperature            DHT22
  roggedomo.boilerroom.temperature            DHT22
  roggedomo.boilerroom.cvin.temperature        DS18B20  A2C311   37 GPIO 26  17  39
  roggedomo.boilerroom.cvin.temperature        DS18B20  A2C311   37 GPIO 26  17  39
  roggedomo.boilerroom.cvout.temperature      DS18B20  A2F0D9   37 GPIO 26  17  39
  roggedomo.boilerroom.cvout.temperature      DS18B20  A2F0D9   37 GPIO 26  17  39


  roggedomo.crawlspace.humidity                DHT22 2             6 GPIO 16  17  39
  roggedomo.crawlspace.humidity                DHT22     DHT22-2   6 GPIO 16  17  39
  roggedomo.crawlspace.temperature            DHT22
  roggedomo.crawlspace.temperature            DHT22
  roggedomo.crawlspace.ground.temperature      DS18B20  111111   37 GPIO 26  17  39
  roggedomo.crawlspace.ground.temperature      DS18B20  111111   37 GPIO 26  17  39


  roggedomo.hall.door
  roggedomo.hall.door                         Reed      Reed-1
  roggedomo.hall.doorbell
  roggedomo.hall.doorbell                     Reed      Reed-2
  roggedomo.hall.mailbox
  roggedomo.hall.mailbox                       Reed
  roggedomo.hall.humidity                      DHT22 3           38 GPIO 20  17  39
  roggedomo.hall.humidity                      DHT22     DHT22-3   38 GPIO 20  17  39
  roggedomo.hall.temperature                  DHT22 3
  roggedomo.hall.temperature                  DHT22


  roggedomo.livingroom.temperature            DHT22 4           40 GPIO 21  17  39
  roggedomo.livingroom.humidity                DHT22    DHT22-4   40 GPIO 21  17  39
  roggedomo.livingroom.humidity                DHT22 4
  roggedomo.livingroom.temperature            DHT22
  roggedomo.livingroom.temperaturetuner        DS18B20  111111   37 GPIO 26  17  39
  roggedomo.livingroom.temperaturetuner        DS18B20  111111   37 GPIO 26  17  39
  roggedomo.livingroom.temperatureamplifier    DS18B20  111111   37 GPIO 26  17  39
  roggedomo.livingroom.temperatureamplifier    DS18B20  111111   37 GPIO 26  17  39

Revision as of 20:55, 19 May 2017

Overpeinzingen

Te meten

Digitaal
  • Voordeur, deur meterkast, deur cvkast, deur garage-woonkamer, deur garage-achter, deur garage-voor-links-rechts.
  • Brievenbus
  • Bel
  • Uitlezen elektriciteitsmeter, gasmeter, watermeter.
  • PIR hal beneden, hal boven, woonkamer, garage.
Analoog
  • Temperatuur hal, hal radiator,woonkamer, geluidsinstallatie, meterkast, cvkast, garage, garage radiator. buiten voor, buiten achter, onder de vloer
  • Weerstation buiten (wind, temperatuur, zonlicht, CO2, luchtdruk).

Plaatsen voor Arduino

  • meterkast
  • garage
  • hobbykamer
  • houthok in tuin
  • boom bij cirkel in tuin

Over naar raspberry pi's.

Onderhoud/configuratie met ansible en monitoring met Icinga/Nagios.

Raspberrys verzamelen gegevens en sturen deze iedere minuut naar Atlas. Bewaar de samples als het versturen mislukt en stuur de vorige samples opnieuw. Stuur naar Atlas wanneer samples niet lukte en hoeveel samples er niet en later wel verstuurd zijn.

Naamgeving records Carbon

roggedomo.boilerroom.humidity
roggedomo.boilerroom.temperature
roggedomo.boilerroom.cvin.temperature
roggedomo.boilerroom.cvout.temperature
roggedomo.crawlspace.humidity
roggedomo.crawlspace.temperature
roggedomo.crawlspace.ground.temperature
roggedomo.garage.door.back
roggedomo.garage.door.front.left
roggedomo.garage.door.front.right
roggedomo.garage.door.
roggedomo.garage.humidity
roggedomo.garage.temperature
roggedomo.garage.radiator.temperature
roggedomo.garden.humidity
roggedomo.garden.temperature.ground-50
roggedomo.garden.temperature.ground
roggedomo.garden.temperature.ground+100
roggedomo.hall.door
roggedomo.hall.doorbell
roggedomo.hall.mailbox
roggedomo.hall.humidity
roggedomo.hall.temperature
roggedomo.livingroom.temperature
roggedomo.livingroom.humidity
roggedomo.study.
roggedomo.bedroom.
roggedomo.hobby.
roggedomo.solar.totalwattstoday 
roggedomo.solar.wattsnow 
roggedomo.solar.temperature
roggedomo.solar.pv1voltagedc
roggedomo.solar.pv2voltagedc
roggedomo.solar.pv1currentdc 
roggedomo.solar.pv2currentdc
roggedomo.solar.voltageac
roggedomo.solar.currentac 
roggedomo.solar.frequency 
roggedomo.solar.totalwattstoday 
roggedomo.solar.totalkWhsincereset

Sensoren

DS18B20 Temperature

Bij verlengen aansluitkabel met cat-5 kabel dient de data en ground aansluiting in hetzelfde twisted pair te zitten. Laat de overige aansluitingen ongemoeid, verbind deze niet met massa.

DS18B20 serienummers:

  • A24340
  • A2535A
  • A2566A
  • A29539
  • A29A8B
  • A2C311
  • A2F0D9
  • A3BB16
  • A3E76A

En waar zijn de reeds aangesloten sensoren

  • DE70FF
  • E252FF

RTC DS1307

Real Time Clock module met CR1220 knoopcel.

Samples queuen

Pseudo code

If Sample Ok
Then
    Send Sample to server
    If Send Ok
    Then
        If sample files found
           Do while sample files available
              send sample to server
              if Send Ok
              then
                 Remove sample file
              else
                 Log error retry sample failed
              Fi
            Done 
    Else
        Store sample in file.
    Fi
Else
    Tell Sample failed
Fi

Raspberries

Raspberry Pi 3 GPIO pins

Meterkast

Host raspberry1.

DHT22 pin 1  5V (3.3?)
      pin 2  Data
      pin 3  Not connected
      pin 4  Ground
Pullup 10k resistor between pin 1 and 2
DS18B20 rood  3.3v (5V?)
        groen Ground
        geel  Data

Sensoren

----------------- Name -----------------     Sensor    - ID -   ------- GPIO pins ------             
                                                                Data         +    Ground     
roggedomo.boilerroom.humidity                DHT22     DHT22-1   32 GPIO 12   17   39
roggedomo.boilerroom.temperature             DHT22
roggedomo.boilerroom.cvin.temperature        DS18B20   A2C311    37 GPIO 26   17   39
roggedomo.boilerroom.cvout.temperature       DS18B20   A2F0D9    37 GPIO 26   17   39
roggedomo.crawlspace.humidity                DHT22     DHT22-2    6 GPIO 16   17   39
roggedomo.crawlspace.temperature             DHT22
roggedomo.crawlspace.ground.temperature      DS18B20   111111    37 GPIO 26   17   39
roggedomo.hall.door                          Reed      Reed-1 
roggedomo.hall.doorbell                      Reed      Reed-2
roggedomo.hall.mailbox                       Reed 
roggedomo.hall.humidity                      DHT22     DHT22-3   38 GPIO 20   17   39
roggedomo.hall.temperature                   DHT22
roggedomo.livingroom.humidity                DHT22     DHT22-4   40 GPIO 21   17   39
roggedomo.livingroom.temperature             DHT22
roggedomo.livingroom.temperaturetuner        DS18B20   111111    37 GPIO 26   17   39
roggedomo.livingroom.temperatureamplifier    DS18B20   111111    37 GPIO 26   17   39