EMBER 0.1
EMBER is a fire suppression system with a thermal IR camera for hot blob detection on a pan/tilt mechanism with a solenoid for commanded water flow.
Loading...
Searching...
No Matches
task_read_camera.h File Reference

Thermal camera task header. More...

Go to the source code of this file.

Functions

void task_read_camera (void *p_params)
 task which reads the MLX90640 thermal camera and detects hotspots

Detailed Description

Thermal camera task header.

Author
Jackson Cordova, GPT5-mini
Date
November 2025

Function Documentation

◆ task_read_camera()

void task_read_camera ( void * p_params)

task which reads the MLX90640 thermal camera and detects hotspots

This task continuously reads frames from the MLX90640 thermal camera at a set refresh rate. It processes each frame to find the hottest pixel and then identifies a connected "hot blob" of pixels around it that exceed a defined temperature threshold. The task computes the centroid of the hot blob and applies temporal smoothing to reduce jitter in the detected position. If the maximum temperature of the blob exceeds a fire alert threshold, it sets a shared boolean "fire" to true. The task runs indefinitely with no delay, relying on the camera's refresh rate for timing.

Parameters
p_paramsnot used and should be set to void in the xTaskCreate call