Difference between revisions of "Component: Temp / Humidity (Grove 101020019) (101020019) (Environmental)"
From Flowcode Help
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Grove_DHT22.fcfx FC_Comp_Source_Grove_DHT22.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Grove_DHT22.fcfx FC_Comp_Source_Grove_DHT22.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 73: | Line 73: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 207: | Line 211: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 13:10, 7 February 2023
Author | Matrix TSL |
Version | 1.2 |
Category | Environmental |
Contents
Temp / Humidity (Grove 101020019) component
The DHT22 temperature and humidity sensor is a popular sensor allowing the ambient temperature and relative humidity to be monitored digitally. Humidity Range = 0% - 100% +/- 2% Temperature Range = -40 - 80 Degrees C +/- 0.5 Degrees C
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Grove_DHT22.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Grove_DHT22.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetHumidityFloat
GetHumidityFloat | |
Gets the humidity returned by calling SampleSensor as a floating point number. If humidity is 15.8 % then this function would return 15.8. | |
- FLOAT | Return |
GetHumidityReal
GetHumidityReal | |
Gets the real number portion of the humidity returned by calling SampleSensor. If humidity is 15.8 % then this function would return 8. | |
- INT | Return |
GetHumidityString
GetHumidityString | |
Gets the humidity returned by calling SampleSensor as a string. If humidity is 15.8 % then this function would return "15.8". | |
- STRING | Return |
GetHumidityWhole
GetHumidityWhole | |
Gets the whole number portion of the humidity returned by calling SampleSensor. If humidity is 15.8 % then this function would return 15. | |
- INT | Return |
GetTempFloat
GetTempFloat | |
Gets the temperature returned by calling SampleSensor as a floating point number. If temperature is 15.8 degrees C then this function would return 15.8. | |
- FLOAT | Return |
GetTempReal
GetTempReal | |
Gets the real number portion of the temperature returned by calling SampleSensor. If temperature is 15.8 degrees C then this function would return 8. | |
- INT | Return |
GetTempString
GetTempString | |
Gets the temperature returned by calling SampleSensor as a string. If temperature is 15.8 degrees C then this function would return "15.8". | |
- STRING | Return |
GetTempWhole
GetTempWhole | |
Gets the whole number portion of the temperature returned by calling SampleSensor. If temperature is 15.8 degrees C then this function would return 15. | |
- INT | Return |
SampleSensor
SampleSensor | |
Communicates with the DHT11 sensor and receives the temperature and humidity readings. Returns 0 for success, 1 for no communication detected and 2 for checksum error. | |
- BYTE | Return |