ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
solenoid.c File Reference

This library is designed to communicate with a solenoid to open and close it based on GPIO pins https://www.orbitonline.com/products/solenoids?variant=45109892612264&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic&utm_source=paid+search&utm_medium=google+ads&utm_campaign=core+shopping&gad_source=1&gad_campaignid=19652308266&gbraid=0AAAAACw56Spsna6BxGUmTXQEtBiAdD4xG&gclid=CjwKCAjw-svEBhB6EiwAEzSdrsAHw1dSYI86-bRo6kxv42twG7OPn3huLm-9Bx99XAEWvaCfzjyhmxoCmnAQAvD_BwE. More...

#include "solenoid.h"

Go to the source code of this file.

Functions

void SolenoidInit (void)
 Wrapper function for the Solenoid initilization.
 
void SolenoidOpen (void)
 Returns both the raw voltage value and a calibrated measurement from a water Flow sensor.
 
void SolenoidClose (void)
 Read water Flow sensor and serialize measurement.
 

Detailed Description

Function Documentation

◆ SolenoidClose()

void SolenoidClose ( void  )

Read water Flow sensor and serialize measurement.

The voltage output of the water Flow is measured. A calibration is applied to convert voltage into a leaf wetness measurement.

Current voltage and Flow are the same value, until a calibration is obtained.

See also
SensorsPrototypeMeasure

Definition at line 43 of file solenoid.c.

Referenced by ControllerIrrigationCheck().

◆ SolenoidInit()

void SolenoidInit ( void  )

Wrapper function for the Solenoid initilization.

Parameters
void
Returns
HAL_StatusTypeDef

Definition at line 15 of file solenoid.c.

◆ SolenoidOpen()

void SolenoidOpen ( void  )

Returns both the raw voltage value and a calibrated measurement from a water Flow sensor.

Parameters
void
Returns
measurements

Definition at line 35 of file solenoid.c.

Referenced by ControllerIrrigationCheck().