Difference between revisions of "Component: Water Sensor (Grove 101020018) (101020018) (Environmental)"
From Flowcode Help
Jump to navigationJump to searchLine 73: | Line 73: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 79: | Line 81: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===GetIntValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 92: | Line 95: | ||
+ | ===GetFloatValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:50, 3 February 2023
Author | Matrix Ltd |
Version | 1.0 |
Category | Environmental |
Contents
Water Sensor (Grove 101020018) component
The water sensor uses a 1M ohm pull-up resistor. The resistor will pull the sensor trace value high until a drop of water shorts the sensor trace to the ground trace. You can use it with an analog input pin to detect the amount of water in contact between the grounded and sensor traces.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Grove_Water_Sensor.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Grove_Water_Sensor.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetIntValue
![]() |
GetIntValue |
Returns the analog reading as an integer value. | |
![]() |
Return |
GetFloatValue
![]() |
GetFloatValue |
Reads the analog value as a floating point value between 0 and 100 | |
![]() |
Return |