Jump to content

Component: Humidity (EBM016) (EBM Modules)

From Flowcode Help
Revision as of 13:30, 17 November 2021 by Wiki bot (talk | contribs)
Author Matrix TSL
Version 2.0
Category EBM Modules


Humidity component

Humidity and temperature sensor using an SHT21 IC connected via I2C - as used by the Matrix e-block module EBM016. On screen GUI allows temperature and humidity values to be simulated, and will show all I2C communication in a console window.

Detailed description

No detailed description exists yet for this component

Examples

This example reads the temperature and humidity levels from the sensor and displays the readings on the LCD.

EBM016 Example

Downloadable macro reference

GetTemperatureReal
Return temperature reading as a float value in degrees C 
- FLOAT Return


GetTemperatureData
Returns the raw register pair value 
- UINT Return


GetTemperatureInt
Return temperature reading as an integer value in degrees C 
- INT Return


GetHumidityInt
returns the relative Humidity reading as an integer value 
- INT Return


GetHumidityReal
returns the Humidity reading as a float value 
- FLOAT Return


GetHumidityData
Returns the raw register pair value 
- UINT Return


Initialise
Initialises the component ready for I2C communications 
- VOID Return



Property reference

Properties
Channel
Channel selection 
SDA
Pin used for SDA (data signal) 
SCL
Pin used for SCL (clock signal) 
Baud Select
Baud rate option selector 
Baud Rate
Baud rate to be used 
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.  
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
 
Connections
Simulations
Simulation Comms