64 #include <avr/sleep.h> 71 #include <SoftwareSerial.h> 75 #include <SFE_BMP180.h> 85 void _anemometer_count_increment();
86 void _internalDateTime(uint16_t* date, uint16_t* time);
96 void initialize(
char* _logger_name,
char* _datafilename, \
97 int _hourInterval,
int _minInterval,
int _secInterval, \
98 bool _ext_int=
false,
bool _LOG_ALL_SENSORS_ON_BUCKET_TIP=
false);
126 uint8_t nsamples=1,
bool debug=
false);
127 float thermistorB(
float R0,
float B,
float Rref,
float T0degC, \
128 uint8_t thermPin, uint8_t ADC_resolution_nbits=14, \
129 bool Rref_on_GND_side=
true,
bool oversample_debug=
false, \
130 bool record_results=
true);
135 int maxRange,
bool RS232=
false);
138 uint8_t EX=99,
bool writeAll=
true, uint8_t ADC_resolution_nbits=10);
139 void Decagon5TE(uint8_t excitPin, uint8_t dataPin);
140 void DecagonGS1(uint8_t pin,
float Vref, uint8_t ADC_resolution_nbits=14);
141 void vdivR(uint8_t pin,
float Rref, uint8_t ADC_resolution_nbits=10, \
142 bool Rref_on_GND_side=
true);
146 char* _distance_units,
float intercept=0, \
147 uint8_t ADC_resolution_nbits=14,
bool Rref_on_GND_side=
true);
149 float Rref_therm, uint8_t ADC_resolution_nbits=14);
151 float R0_therm,
float B_therm,
float Rref_therm,
float T0degC_therm, \
152 uint8_t thermPin_therm, uint8_t ADC_resolution_nbits=14);
154 float Vref,
float Vsupply,
float R0_therm,
float B_therm, \
155 float Rref_therm,
float T0degC_therm, uint8_t thermPin_therm, \
156 uint8_t ADC_resolution_nbits=14);
158 unsigned long reading_duration_milliseconds, \
159 float meters_per_second_per_rotation);
161 void Pyranometer(uint8_t analogPin,
float raw_mV_per_W_per_m2, \
162 float gain,
float V_ref, uint8_t ADC_resolution_nbits=14);
165 float param2, uint8_t ADC_bits=14,
bool flag=
false);
169 void HackHD(
int control_pin,
bool want_camera_on);
171 float Pmin,
float Pmax,
int TransferFunction_number,
int units, \
172 uint8_t ADC_resolution_nbits=14);
175 void pinUnavailable(uint8_t pin);
176 char *nameFile(
char * _sitecode);
182 void alarm(uint8_t hourInterval, uint8_t minInterval, \
183 uint8_t secInterval);
184 void displayAlarms();
188 void LEDwarn(uint8_t nflash);
190 void LEDtimeWrong(uint8_t ncycles);
193 void unixDatestamp();
198 void set_time_main();
199 void announce_start();
200 void startup_sequence();
201 void establishContact_Tx();
202 bool establishContact_Rx();
206 void SDoff_RTCsleep();
210 void GetDateStuff(byte& Year, byte& Month, byte& Day, byte& DoW,
211 byte& Hour, byte& Minute, byte& Second);
214 float _vdivR(uint8_t pin,
float Rref, uint8_t adc_bits=10, \
215 bool Rref_on_GND_side=
true,
bool oversample_debug=
false);
220 int maxbotix_Serial_parse(uint8_t Ex);
221 float standard_deviation_from_array(
float values[],
int nvalues, \
223 float standard_deviation_from_array(
int values[],
int nvalues,
float mean);
229 void TippingBucketRainGage();
232 void start_logging_to_datafile();
233 void start_logging_to_otherfile(
char* filename);
234 void end_logging_to_otherfile();
235 void start_logging_to_headerfile();
236 void end_logging_to_headerfile();
void Decagon5TE(uint8_t excitPin, uint8_t dataPin)
Definition: ALog.cpp:3149
float get_5V_measured_voltage()
Definition: ALog.cpp:644
void initialize(char *_logger_name, char *_datafilename, int _hourInterval, int _minInterval, int _secInterval, bool _ext_int=false, bool _LOG_ALL_SENSORS_ON_BUCKET_TIP=false)
Definition: ALog.cpp:253
ALog()
ALog library for the Arduino-based data loggers.
Definition: ALog.cpp:251
float analogReadOversample(uint8_t pin, uint8_t adc_bits=10, uint8_t nsamples=1, bool debug=false)
Definition: ALog.cpp:2633
void set_SensorPowerPin(int8_t _pin)
Definition: ALog.cpp:599
void Wind_Vane_Inspeed(uint8_t vanePin)
Definition: ALog.cpp:2527
void vdivR(uint8_t pin, float Rref, uint8_t ADC_resolution_nbits=10, bool Rref_on_GND_side=true)
Definition: ALog.cpp:3483
float readPinOversample(uint8_t pin, uint8_t adc_bits)
Definition: ALog.cpp:1486
void HackHD(int control_pin, bool want_camera_on)
Definition: ALog.cpp:2912
void setupLogger()
Definition: ALog.cpp:392
void endLogging()
Definition: ALog.cpp:1310
void Pyranometer(uint8_t analogPin, float raw_mV_per_W_per_m2, float gain, float V_ref, uint8_t ADC_resolution_nbits=14)
Definition: ALog.cpp:2571
void startLogging()
Definition: ALog.cpp:1228
float thermistorB(float R0, float B, float Rref, float T0degC, uint8_t thermPin, uint8_t ADC_resolution_nbits=14, bool Rref_on_GND_side=true, bool oversample_debug=false, bool record_results=true)
Definition: ALog.cpp:1544
void sensorPowerOff()
Definition: ALog.cpp:1402
void Anemometer_reed_switch(uint8_t interrupt_pin_number, unsigned long reading_duration_milliseconds, float meters_per_second_per_rotation)
Definition: ALog.cpp:2429
void endAnalog()
Definition: ALog.cpp:1425
bool get_use_sleep_mode()
Definition: ALog.cpp:549
float readPin(uint8_t pin)
Definition: ALog.cpp:1443
void set_LEDpin(int8_t _pin)
Definition: ALog.cpp:562
void _sensor_function_template(uint8_t pin, float param1, float param2, uint8_t ADC_bits=14, bool flag=false)
Definition: ALog.cpp:2821
float Honeywell_HSC_analog(int pin, float Vsupply, float Vref, float Pmin, float Pmax, int TransferFunction_number, int units, uint8_t ADC_resolution_nbits=14)
Definition: ALog.cpp:3374
void goToSleep_if_needed()
Definition: ALog.cpp:1214
void linearPotentiometer(uint8_t linpotPin, float Rref, float slope, char *_distance_units, float intercept=0, uint8_t ADC_resolution_nbits=14, bool Rref_on_GND_side=true)
Definition: ALog.cpp:3541
float maxbotixHRXL_WR_Serial(uint8_t Ex, uint8_t npings, bool writeAll, int maxRange, bool RS232=false)
Definition: ALog.cpp:2095
void maxbotixHRXL_WR_analog(uint8_t nping=10, uint8_t sonicPin=A0, uint8_t EX=99, bool writeAll=true, uint8_t ADC_resolution_nbits=10)
Definition: ALog.cpp:1965
void sleep()
Definition: ALog.cpp:1198
void Barometer_BMP180()
Definition: ALog.cpp:2729
void set_RTCpowerPin(int8_t _pin)
Definition: ALog.cpp:585
void HTM2500LF_humidity_temperature(uint8_t humidPin, uint8_t thermPin, float Rref_therm, uint8_t ADC_resolution_nbits=14)
Definition: ALog.cpp:1646
void ultrasonicMB_analog_1cm(uint8_t nping, uint8_t EX, uint8_t sonicPin, bool writeAll)
Definition: ALog.cpp:1841
float get_3V3_measured_voltage()
Definition: ALog.cpp:631
uint16_t get_serial_number()
Definition: ALog.cpp:619
void startAnalog()
Definition: ALog.cpp:1413
void set_SDpowerPin(int8_t _pin)
Definition: ALog.cpp:572
void DecagonGS1(uint8_t pin, float Vref, uint8_t ADC_resolution_nbits=14)
Definition: ALog.cpp:3311
void Inclinometer_SCA100T_D02_analog_Tcorr(uint8_t xPin, uint8_t yPin, float Vref, float Vsupply, float R0_therm, float B_therm, float Rref_therm, float T0degC_therm, uint8_t thermPin_therm, uint8_t ADC_resolution_nbits=14)
Definition: ALog.cpp:2312
void HM1500LF_humidity_with_external_temperature(uint8_t humidPin, float R0_therm, float B_therm, float Rref_therm, float T0degC_therm, uint8_t thermPin_therm, uint8_t ADC_resolution_nbits=14)
Definition: ALog.cpp:1743
void sensorPowerOn()
Definition: ALog.cpp:1392