Gbox 4.20
Grow box automation and monitoring - <a href='https://sites.google.com/site/growboxguy/'>https://sites.google.com/site/growboxguy/</a>
 
Loading...
Searching...
No Matches
VoltagePage.ino File Reference
#include <ELClientWebServer.h>
#include <avr/io.h>

Go to the source code of this file.

Macros

#define SAMPLE_COUNT   100
 
#define PERIOD_COUNT   (135 * SAMPLE_COUNT)
 
#define MAX_HISTORY   3
 

Functions

void voltageLoop ()
 
String floatToString (float f)
 
void voltageRefreshCb (const char *url)
 
void voltageInit ()
 

Variables

uint16_t adc_min = 0xFFFF
 
uint16_t adc_max = 0
 
uint32_t adc_avg = 0
 
uint16_t sample_count
 
uint32_t voltage_avg = 0
 
uint16_t measured_voltage = 0
 
uint8_t history_cnt = 0
 
uint32_t history_ts [MAX_HISTORY]
 
uint16_t history_min [MAX_HISTORY]
 
uint16_t history_max [MAX_HISTORY]
 
uint16_t history_avg [MAX_HISTORY]
 
uint16_t calibrate = 0x128
 

Macro Definition Documentation

◆ MAX_HISTORY

#define MAX_HISTORY   3

Definition at line 15 of file VoltagePage.ino.

◆ PERIOD_COUNT

#define PERIOD_COUNT   (135 * SAMPLE_COUNT)

Definition at line 5 of file VoltagePage.ino.

◆ SAMPLE_COUNT

#define SAMPLE_COUNT   100

Definition at line 4 of file VoltagePage.ino.

Function Documentation

◆ floatToString()

String floatToString ( float  f)

Definition at line 75 of file VoltagePage.ino.

Here is the caller graph for this function:

◆ voltageInit()

void voltageInit ( )

Definition at line 120 of file VoltagePage.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ voltageLoop()

void voltageLoop ( )

Definition at line 26 of file VoltagePage.ino.

Here is the caller graph for this function:

◆ voltageRefreshCb()

void voltageRefreshCb ( const char *  url)

Definition at line 87 of file VoltagePage.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ adc_avg

uint32_t adc_avg = 0

Definition at line 9 of file VoltagePage.ino.

◆ adc_max

uint16_t adc_max = 0

Definition at line 8 of file VoltagePage.ino.

◆ adc_min

uint16_t adc_min = 0xFFFF

Definition at line 7 of file VoltagePage.ino.

◆ calibrate

uint16_t calibrate = 0x128

Definition at line 23 of file VoltagePage.ino.

◆ history_avg

uint16_t history_avg[MAX_HISTORY]

Definition at line 21 of file VoltagePage.ino.

◆ history_cnt

uint8_t history_cnt = 0

Definition at line 17 of file VoltagePage.ino.

◆ history_max

uint16_t history_max[MAX_HISTORY]

Definition at line 20 of file VoltagePage.ino.

◆ history_min

uint16_t history_min[MAX_HISTORY]

Definition at line 19 of file VoltagePage.ino.

◆ history_ts

uint32_t history_ts[MAX_HISTORY]

Definition at line 18 of file VoltagePage.ino.

◆ measured_voltage

uint16_t measured_voltage = 0

Definition at line 13 of file VoltagePage.ino.

◆ sample_count

uint16_t sample_count

Definition at line 11 of file VoltagePage.ino.

◆ voltage_avg

uint32_t voltage_avg = 0

Definition at line 12 of file VoltagePage.ino.