Jump to content

Component: Humidity AHT10 (Environmental): Difference between revisions

From Flowcode Help
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(2 intermediate revisions by the same user not shown)
Line 35: Line 35:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
| width="90%" class="mtx-class-macrohead" | '''Initialise'''
|-
|-
| colspan="2" | Startup I2C bus and initialise the sensor. Returns 1 if the device is replying to commands. 
| colspan="2" | Startup I2C bus and initialise the sensor. Returns 1 if the device is replying to commands. 
Line 49: Line 49:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadHumidity'''
| width="90%" class="mtx-class-macrohead" | '''ReadHumidity'''
|-
|-
| colspan="2" | Gets the humidity reading from the last sample. 
| colspan="2" | Gets the humidity reading from the last sample. 
Line 63: Line 63:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperature'''
| width="90%" class="mtx-class-macrohead" | '''ReadTemperature'''
|-
|-
| colspan="2" | Gets the temperature reading from the last sample. 
| colspan="2" | Gets the temperature reading from the last sample. 
Line 77: Line 77:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Sample'''
| width="90%" class="mtx-class-macrohead" | '''Sample'''
|-
|-
| colspan="2" | Reads the sensor and collects the latest termperature and humidity readings. Returns 1 for a successful sample. 
| colspan="2" | Reads the sensor and collects the latest termperature and humidity readings. Returns 1 for a successful sample. 
Line 92: Line 92:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | I2C Options
| width="90%" class="mtx-class-propfolder" | I2C Options
|-
|-
|-
|-
Line 139: Line 139:
| colspan="2" | Baud rate to be used 
| colspan="2" | Baud rate to be used 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| width="90%" class="mtx-class-propfolder" | Simulation
|-
|-
|-
|-

Latest revision as of 14:37, 13 July 2026

Author Matrix TSL
Version 1.0
Category Environmental


Humidity AHT10 component

A high precision I2C based temperature and humidity sensor.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_Humidity_AHT10.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_Humidity_AHT10.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

Initialise

Initialise
Startup I2C bus and initialise the sensor. Returns 1 if the device is replying to commands. 
- BOOL Return


ReadHumidity

ReadHumidity
Gets the humidity reading from the last sample. 
- FLOAT Return


ReadTemperature

ReadTemperature
Gets the temperature reading from the last sample. 
- FLOAT Return


Sample

Sample
Reads the sensor and collects the latest termperature and humidity readings. Returns 1 for a successful sample. 
- BOOL Return


Property reference

Properties
I2C Options
Channel
Channel selection 
SDA
Pin used for SDA (data signal) 
SDA Remap Pin
 
SCL
Pin used for SCL (clock signal) 
SCL Remap Pin
 
Stop Delay
On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications.  
Baud Select
Baud rate option selector 
Baud Rate
Baud rate to be used 
Simulation
Scope Traces
Selects if the component pin connections are automatically generated on the data recorder window or not. Yes: Automatically add the component pins to a group on the data recorder which will reflect the sim data during simultion. No: Do not show the pin signals on the data recorder window. 
Console Data
Selects if the console data is automatically generated or not 
API
Specifies the API component on the panel to interact with to provide comms simulation.