Component: Humidity AHT10 (Environmental)

From Flowcode Help
Jump to navigationJump to search
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

Fc9-comp-macro.png Initialise
Startup I2C bus and initialise the sensor. Returns 1 if the device is replying to commands. 
Fc9-bool-icon.png - BOOL Return


ReadHumidity

Fc9-comp-macro.png ReadHumidity
Gets the humidity reading from the last sample. 
Fc9-f32-icon.png - FLOAT Return


ReadTemperature

Fc9-comp-macro.png ReadTemperature
Gets the temperature reading from the last sample. 
Fc9-f32-icon.png - FLOAT Return


Sample

Fc9-comp-macro.png Sample
Reads the sensor and collects the latest termperature and humidity readings. Returns 1 for a successful sample. 
Fc9-bool-icon.png - BOOL Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png I2C Options
Fc9-type-16-icon.png Channel
Channel selection 
Fc9-type-5-icon.png SDA
Pin used for SDA (data signal) 
Fc9-type-16-icon.png SDA Remap Pin
 
Fc9-type-5-icon.png SCL
Pin used for SCL (clock signal) 
Fc9-type-16-icon.png SCL Remap Pin
 
Fc9-type-7-icon.png 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.  
Fc9-type-16-icon.png Baud Select
Baud rate option selector 
Fc9-type-14-icon.png Baud Rate
Baud rate to be used 
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png 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. 
Fc9-type-7-icon.png Console Data
Selects if the console data is automatically generated or not 
Fc9-type-16-icon.png API
Specifies the API component on the panel to interact with to provide comms simulation.