sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
OWH_DS18B20_asInterface_SensorStation.ino File Reference
#include "OneWireHub.h"
#include "DS18B20.h"
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_TSL2561_U.h>
#include <Adafruit_BME280.h>

Macros

#define SEALEVELPRESSURE_HPA   (1013.25)
 
#define MQ135   A0
 
#define MQ2   A1
 
#define SEN02281P   A3
 
#define GUVAS12SD   A7
 
#define MIC   A6
 

Functions

bool blinking (void)
 
void setup ()
 
void loop ()
 
void updateSensor (uint8_t process)
 
void pack (DS18B20 &ds18b, float val)
 
long readVcc ()
 
double GetTemp (void)
 

Variables

constexpr bool enable_debug = 0
 
constexpr uint8_t pin_led
 
constexpr uint8_t pin_onewire { 8 }
 
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345)
 
Adafruit_BME280 bme
 
auto hub = OneWireHub(pin_onewire)
 
auto ds18b00 = DS18B20(0x28, 0x00, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b01 = DS18B20(0x28, 0x01, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b02 = DS18B20(0x28, 0x02, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b03 = DS18B20(0x28, 0x03, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b04 = DS18B20(0x28, 0x04, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b05 = DS18B20(0x28, 0x05, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b06 = DS18B20(0x28, 0x06, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b07 = DS18B20(0x28, 0x07, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b08 = DS18B20(0x28, 0x08, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b09 = DS18B20(0x28, 0x09, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b10 = DS18B20(0x28, 0x0A, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b11 = DS18B20(0x28, 0x0B, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b12 = DS18B20(0x28, 0x0C, 0x55, 0x44, 0x33, 0x22, 0x11)
 
auto ds18b13 = DS18B20(0x28, 0x0D, 0x55, 0x44, 0x33, 0x22, 0x11)
 
unsigned int mmin
 
unsigned int mmax
 
unsigned int val
 
unsigned int mavg
 
uint16_t broadband
 
uint16_t infrared
 
sensors_event_t event
 

Macro Definition Documentation

#define GUVAS12SD   A7
#define MIC   A6
#define MQ135   A0
#define MQ2   A1
#define SEALEVELPRESSURE_HPA   (1013.25)
#define SEN02281P   A3

Function Documentation

bool blinking ( void  )
double GetTemp ( void  )
void loop ( void  )

OneWirePJON device status update function.

Returns
(void)
void pack ( DS18B20 &  ds18b,
float  val 
)
long readVcc ( )
void setup ( void  )

Arduino IDE: put your setup code here, to run once.

void updateSensor ( uint8_t  process)
  • Display atmospheric pressue in Hecto-Pascals [mbar] */

Variable Documentation

Adafruit_BME280 bme
uint16_t broadband
auto ds18b00 = DS18B20(0x28, 0x00, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b01 = DS18B20(0x28, 0x01, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b02 = DS18B20(0x28, 0x02, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b03 = DS18B20(0x28, 0x03, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b04 = DS18B20(0x28, 0x04, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b05 = DS18B20(0x28, 0x05, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b06 = DS18B20(0x28, 0x06, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b07 = DS18B20(0x28, 0x07, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b08 = DS18B20(0x28, 0x08, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b09 = DS18B20(0x28, 0x09, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b10 = DS18B20(0x28, 0x0A, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b11 = DS18B20(0x28, 0x0B, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b12 = DS18B20(0x28, 0x0C, 0x55, 0x44, 0x33, 0x22, 0x11)
auto ds18b13 = DS18B20(0x28, 0x0D, 0x55, 0x44, 0x33, 0x22, 0x11)
constexpr bool enable_debug = 0
sensors_event_t event
auto hub = OneWireHub(pin_onewire)
uint16_t infrared
unsigned int mavg
unsigned int mmax
unsigned int mmin
constexpr uint8_t pin_led
constexpr uint8_t pin_onewire { 8 }
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345)
unsigned int val