Um die Genauigkeit des Infrarotsensors (tagsüber
und Nacht, gleicher Bereich und gleicher lebender Organismus /Person) zu bewerten oder zu bestimmen). < /li>
< /ol >
Bitte beziehen Sie sich auf diesen Code, der nicht funktioniert. Grundsätzlich muss ich eine Verbindung zum Laptop -WiFi herstellen, wobei Code konfiguriert ist, um die Temperatur zu übertragen, wenn ein Mensch erkannt wird. < /p>
Code: Select all
#include
#include
#include
#include
Adafruit_AMG88xx amg;
WebServer server(80);
const char* ssid = "YourWiFiSSID";
const char* password = "YourWiFiPassword";
float pixels[AMG88xx_PIXEL_ARRAY_SIZE];
float minTemperature = 35.0; // Minimum temperature threshold for highlighting pixels
float maxTemperature = 41.0; // Maximum temperature threshold for highlighting pixels
void setup() {
Serial.begin(9600);
Serial.println("AMG8833 Thermal Camera Test");
bool status = amg.begin();
if (!status) {
Serial.println("Could not find a valid AMG8833 sensor, check wiring!");
while (1);
}
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi...");
}
Serial.println("WiFi connected");
Serial.println("IP address: " + WiFi.localIP().toString());
server.on("/", handleRoot);
server.begin();
Serial.println("HTTP server started");
}
void loop() {
server.handleClient();
amg.readPixels(pixels);
// Send thermal camera data to the client
String data = "Thermal Camera Data:
";
for (int i = 1; i = minTemperature && temperature = minTemperature && temperature