Jump to content

Component: Infrared Array AMG88xx (Light): 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 - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
Line 75: Line 75:
|-
|-
| 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;" | '''ClearInterrupt'''
| width="90%" class="mtx-class-macrohead" | '''ClearInterrupt'''
|-
|-
| colspan="2" | Clear any triggered interrupts 
| colspan="2" | Clear any triggered interrupts 
Line 89: Line 89:
|-
|-
| 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" | Sets up the I2C interface and initialises the sensor. 
| colspan="2" | Sets up the I2C interface and initialises the sensor. 
Line 103: Line 103:
|-
|-
| 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;" | '''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 122: Line 122:
|-
|-
| 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;" | '''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 136: Line 136:
|-
|-
| 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;" | '''SamplePixels'''
| width="90%" class="mtx-class-macrohead" | '''SamplePixels'''
|-
|-
| colspan="2" | Reads Infrared sensor values 
| colspan="2" | Reads Infrared sensor values 
Line 150: Line 150:
|-
|-
| 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;" | '''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 169: Line 169:
|-
|-
| 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;" | '''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 198: Line 198:
|-
|-
| 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;" | '''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 217: Line 217:
|-
|-
| 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;" | '''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 237: Line 237:
|-
|-
| 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'''  
|-
|-
|-
|-

Revision as of 14:23, 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