sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
OWGeneric_SensorStation.ino File Reference
#include <OneWireSlave.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>
#include <Adafruit_TSL2561_U.h>
#include <Adafruit_LSM9DS0.h>
#include <SPI.h>
#include <Adafruit_BMP183.h>

Macros

#define SoftwareVer   1.0
 
#define SensorCount   27
 
#define LEDPin   13
 
#define OWPin   2
 
#define MeasPin   A7
 
#define MUX_S0   6
 
#define MUX_S1   5
 
#define MUX_S2   4
 
#define MUX_S3   3
 
#define TCS_S0S1   A1
 
#define TCS_S2   8
 
#define TCS_S3   9
 
#define TCS_OUT   7
 
#define DUST_LED   A3
 
#define BMP183_CLK   A2
 
#define BMP183_SDO   12
 
#define BMP183_SDI   11
 
#define BMP183_CS   10
 
#define flashPause   100
 
#define flashLength   50
 
#define timeout   10000
 
#define dustDPreM   280
 
#define dustDPostM   40
 
#define dustDOff   9680
 

Functions

OneWireSlave ds (OWPin)
 
void setup ()
 
void loop (void)
 
void process ()
 
void pack (float val)
 
void selectMUXch (char ch)
 
float measFreq (void)
 
unsigned long measDust (void)
 
void FlashLED_blocking (void)
 
void debugPrint (int time)
 
long readVcc ()
 

Variables

unsigned char rom [8] = {DS2415, 0xE2, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00}
 
char rtccountr_in [5] = { 0x00, 0x00, 0x00, 0x00, 0x00}
 
char rtccountr_out [5] = {B11110000, 0x01, 0x23, 0xCD, 0xEF}
 
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345)
 
Adafruit_LSM9DS0 lsm = Adafruit_LSM9DS0(1000)
 
Adafruit_BMP183 bmp = Adafruit_BMP183(BMP183_CLK, BMP183_SDO, BMP183_SDI, BMP183_CS)
 
unsigned int mmin
 
unsigned int mmax
 
unsigned int val
 
unsigned int mavg
 
float R
 
float B
 
float G
 
float X
 
float Y
 
float Z
 
float x
 
float y
 
float n
 
float CCT
 
uint16_t broadband
 
uint16_t infrared
 
sensors_event_t event
 
sensors_event_t accel
 
sensors_event_t mag
 
sensors_event_t gyro
 
sensors_event_t temp
 

Macro Definition Documentation

#define BMP183_CLK   A2
#define BMP183_CS   10
#define BMP183_SDI   11
#define BMP183_SDO   12
#define DUST_LED   A3
#define dustDOff   9680
#define dustDPostM   40
#define dustDPreM   280
#define flashLength   50
#define flashPause   100
#define LEDPin   13
#define MeasPin   A7
#define MUX_S0   6
#define MUX_S1   5
#define MUX_S2   4
#define MUX_S3   3
#define OWPin   2
#define SensorCount   27
#define SoftwareVer   1.0
#define TCS_OUT   7
#define TCS_S0S1   A1
#define TCS_S2   8
#define TCS_S3   9
#define timeout   10000

Function Documentation

void debugPrint ( int  time)
OneWireSlave ds ( OWPin  )
void FlashLED_blocking ( void  )
void loop ( void  )

OneWirePJON device status update function.

Returns
(void)
unsigned long measDust ( void  )
float measFreq ( void  )
void pack ( float  val)
void process ( )
long readVcc ( )
void selectMUXch ( char  ch)
void setup ( void  )

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

Variable Documentation

sensors_event_t accel
float B
Adafruit_BMP183 bmp = Adafruit_BMP183(BMP183_CLK, BMP183_SDO, BMP183_SDI, BMP183_CS)
uint16_t broadband
float CCT
sensors_event_t event
float G
sensors_event_t gyro
uint16_t infrared
Adafruit_LSM9DS0 lsm = Adafruit_LSM9DS0(1000)
sensors_event_t mag
unsigned int mavg
unsigned int mmax
unsigned int mmin
float n
float R
unsigned char rom[8] = {DS2415, 0xE2, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00}
char rtccountr_in[5] = { 0x00, 0x00, 0x00, 0x00, 0x00}
char rtccountr_out[5] = {B11110000, 0x01, 0x23, 0xCD, 0xEF}
sensors_event_t temp
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345)
unsigned int val
float x
float X
float Y
float y
float Z