ME 405 Term Project: Thermal Imaging Nerf Turret 1.0
A library that contains software used to control and fire an automated Nerf turret. The turret uses a MLX90640 Thermal Imaging camera to determine opponent's position and fire.
mlx_cam.py File Reference

The get_csv function of this class has been modified to store pixel values in a list. More...

Classes

class  src.mlx_cam.MLX_Cam
 Class which wraps an MLX90640 thermal infrared camera driver to make it easier to grab and use an image. More...
 

Functions

 src.mlx_cam.test_MLX_cam ()
 This test function sets up the sensor, then grabs and shows an image in a terminal every few seconds.
 

Detailed Description

The get_csv function of this class has been modified to store pixel values in a list.

This is necessary for functionality of the camera class in Panning.py

This file contains a wrapper that facilitates the use of a Melexis MLX90640 thermal infrared camera for general use. The wrapper contains a class MLX_Cam whose use is greatly simplified in comparison to that of the base class, class MLX90640, by mwerezak, who has a cool fox avatar, at https://github.com/mwerezak/micropython-mlx90640

To use this code, upload the directory mlx90640 from mwerezak with all its contents to the root directory of your MicroPython device, then copy this file to the root directory of the MicroPython device.

There's some test code at the bottom of this file which serves as a beginning example.

Author
mwerezak Original files, Summer 2022
JR Ridgely Added simplified wrapper class MLX_Cam, January 2023

Function Documentation

◆ test_MLX_cam()

src.mlx_cam.test_MLX_cam ( )

This test function sets up the sensor, then grabs and shows an image in a terminal every few seconds.

By default it shows ASCII art, but it can be set to show better looking grayscale images in some terminal programs such as PuTTY. Unfortunately Thonny's terminal won't show the nice grayscale.