sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
OWP_DG_SensorStation.ino File Reference
#include "OWPJON-sensor-commands.h"
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_TSL2561_U.h>
#include <Adafruit_BME280.h>
#include "AS7265X.h"
#include <PJON.h>

Macros

#define ENABLE_AS7265X
 
#define TEMP_OFFSET   -309.00
 
#define TEMP_COEFF   1.22
 
#define SENSOR   "owp:ss:v1"
 
#define OWPJONID   40
 
#define OWPJONPIN   8
 
#define SEN02281P   A3
 
#define GUVAS12SD   A7
 
#define MIC   A6
 
#define AS7265X_INT   2
 

Functions

PJON< SoftwareBitBang > bus (OWPJONID)
 
void setup ()
 
void receiver_function (uint8_t *payload, uint16_t length, const PJON_Packet_Info &packet_info)
 
void loop ()
 
float readVcc ()
 
float readTemp (void)
 

Variables

uint8_t mem_buffer [256]
 
unsigned int mmin
 
unsigned int mmax
 
unsigned int uval
 
unsigned int mavg
 
uint16_t broadband
 
uint16_t infrared
 
sensors_event_t event
 
bool intFlag = true
 
float calData [18]
 
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345)
 
Adafruit_BME280 bme
 
AS7265X AS7265X (AS7265X_INT)
 

Macro Definition Documentation

#define AS7265X_INT   2
#define ENABLE_AS7265X
#define GUVAS12SD   A7
#define MIC   A6
#define OWPJONID   40
#define OWPJONPIN   8
#define SEN02281P   A3
#define SENSOR   "owp:ss:v1"
#define TEMP_COEFF   1.22
#define TEMP_OFFSET   -309.00

Function Documentation

PJON<SoftwareBitBang> bus ( OWPJONID  )
void loop ( void  )

OneWirePJON device status update function.

Returns
(void)
float readTemp ( void  )

Internal Temperature Sensor for ATmega328 types.

Parameters
void
See Also
receiver_function()
https://playground.arduino.cc/Main/InternalTemperatureSensor
Returns
The chip temperature in [°C]
float readVcc ( )

Accessing the secret voltmeter on the Arduino 168 or 328.

See Also
receiver_function()
http://code.google.com/p/tinkerit/wiki/SecretVoltmeter
Returns
The supply voltage in [V]
void receiver_function ( uint8_t *  payload,
uint16_t  length,
const PJON_Packet_Info &  packet_info 
)
void setup ( void  )

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

Variable Documentation

Adafruit_BME280 bme
uint16_t broadband
float calData[18]
sensors_event_t event
uint16_t infrared
bool intFlag = true
unsigned int mavg
uint8_t mem_buffer[256]
unsigned int mmax
unsigned int mmin
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345)
unsigned int uval