Jump to content

Component: Infrared Array AMG88xx (Light): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(4 intermediate revisions by the same user not shown)
Line 74: Line 74:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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;" | '''ClearInterrupt'''
| width="90%" class="mtx-class-macrohead" | '''ClearInterrupt'''
|-
|-
| colspan="2" | Clear any triggered interrupts 
| colspan="2" | Clear any triggered interrupts 
Line 88: Line 88:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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" | Sets up the I2C interface and initialises the sensor. 
| colspan="2" | Sets up the I2C interface and initialises the sensor. 
Line 102: Line 102:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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;" | '''ReadPixel'''
| width="90%" class="mtx-class-macrohead" | '''ReadPixel'''
|-
|-
| colspan="2" | Reads the temperature of a single pixel value from the last SamplePixels call. 
| colspan="2" | Reads the temperature of a single pixel value from the last SamplePixels call. 
Line 121: Line 121:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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;" | '''ReadThermistor'''
| width="90%" class="mtx-class-macrohead" | '''ReadThermistor'''
|-
|-
| colspan="2" | Reads the onboard thermistor Returns the temperature in degrees Celsius as a floating point value 
| colspan="2" | Reads the onboard thermistor Returns the temperature in degrees Celsius as a floating point value 
Line 135: Line 135:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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;" | '''SamplePixels'''
| width="90%" class="mtx-class-macrohead" | '''SamplePixels'''
|-
|-
| colspan="2" | Reads Infrared sensor values 
| colspan="2" | Reads Infrared sensor values 
Line 149: Line 149:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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;" | '''SetInterrupt'''
| width="90%" class="mtx-class-macrohead" | '''SetInterrupt'''
|-
|-
| colspan="2" | Allows the interrupt pin to be enabled or disabled. 
| colspan="2" | Allows the interrupt pin to be enabled or disabled. 
Line 168: Line 168:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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;" | '''SetInterruptLevels'''
| width="90%" class="mtx-class-macrohead" | '''SetInterruptLevels'''
|-
|-
| colspan="2" | Set the interrupt levels. Interrupt when going above High or interrupt when going below Low. 
| colspan="2" | Set the interrupt levels. Interrupt when going above High or interrupt when going below Low. 
Line 197: Line 197:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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;" | '''SetInterruptMode'''
| width="90%" class="mtx-class-macrohead" | '''SetInterruptMode'''
|-
|-
| colspan="2" | Set the interrupt to either absolute value or difference mode 
| colspan="2" | Set the interrupt to either absolute value or difference mode 
Line 216: Line 216:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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;" | '''SetMovingAverageMode'''
| width="90%" class="mtx-class-macrohead" | '''SetMovingAverageMode'''
|-
|-
| colspan="2" | Set the moving average mode on or off. 
| colspan="2" | Set the moving average mode on or off. 
Line 236: Line 236:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[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;" | Connections
| width="90%" class="mtx-class-propfolder" | Connections
|-
|-
|-
|-
Line 279: Line 279:
| colspan="2" | 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.  
| colspan="2" | 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.  
|-
|-
| 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 Light


Infrared Array AMG88xx component

An 8x8 (64) Pixel infrared sensor array allowing basic none contact temperature detection.

Component Source Code

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

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

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

ClearInterrupt

ClearInterrupt
Clear any triggered interrupts 
- VOID Return


Initialise

Initialise
Sets up the I2C interface and initialises the sensor. 
- VOID Return


ReadPixel

ReadPixel
Reads the temperature of a single pixel value from the last SamplePixels call. 
- BYTE Index
Pixel to read. Range: 0 - 63 
- FLOAT Return


ReadThermistor

ReadThermistor
Reads the onboard thermistor Returns the temperature in degrees Celsius as a floating point value 
- FLOAT Return


SamplePixels

SamplePixels
Reads Infrared sensor values 
- VOID Return


SetInterrupt

SetInterrupt
Allows the interrupt pin to be enabled or disabled. 
- BOOL Mode
0 = Disabled / 1 = Enabled 
- VOID Return


SetInterruptLevels

SetInterruptLevels
Set the interrupt levels. Interrupt when going above High or interrupt when going below Low. 
- FLOAT High
Range: -1023 to 1023 
- FLOAT Low
Range: -1023 to 1023 
- FLOAT Hysteresis
Range: -1023 to 1023 ( Recommend 0.95 * High ) 
- VOID Return


SetInterruptMode

SetInterruptMode
Set the interrupt to either absolute value or difference mode 
- BOOL Mode
0 = Difference / 1 = Absolute 
- VOID Return


SetMovingAverageMode

SetMovingAverageMode
Set the moving average mode on or off. 
- BOOL Mode
0 = Off, 1 = On 
- VOID Return


Property reference

Properties
Connections
Address
 
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.  
Simulation
Scope Traces
Selects if the scope traces are automatically generated or not 
Console Data
Selects if the console data is automatically generated or not 
API