Arduino Thermal Camera: Proven 6-Bus ESP32 & SPI Guide
Engineering Executive Summary (arduino thermal camera): Designing an arduino thermal camera starts with two decisions: whether you need per-pixel temperatures and where the frames will go. A 160×120 stream can fit a suitably configured MCU, while a 640×512 core can send video directly to a compatible host and leave control to the MCU. Use six checks to select and validate the architecture: SRAM, bus throughput, logic levels, power, radiometry, and video routing.
What an arduino thermal camera detects and measures
| Job | Required output | Acceptance check |
|---|---|---|
| Find a relative heat pattern | Grayscale or palette image | A warm bearing remains distinguishable from its housing at the installed distance. |
| Apply a per-pixel temperature threshold | Calibrated radiometric samples with documented units | The host recovers a reference target’s temperature within the application tolerance. |
| Follow motion in live video | Image stream compatible with the receiver | Measure delivered frame rate and end-to-end delay while the target moves. |
For an arduino thermal camera, start with the decision each exposure must support. Record six design checks under names you can carry through commissioning: Measurement output, Target coverage, Frame rate, Interface, Buffer memory, and Power budget. Give each a value or a test condition. “Detect the warm bearing at 2 m” establishes a working distance. “Alarm above 70 °C” also requires a temperature error allowance.
How surface radiation becomes a temperature estimate
A long-wave infrared detector responds to radiation arriving through its lens, typically over a band around 8–14 µm. On an uncooled microbolometer, absorbed radiation changes the temperature and electrical resistance of a sensing element. The readout measures that change. A radiometric arduino thermal camera uses calibration data to relate the signal to incident radiance. Estimating the surface temperature also requires accounting for what the surface emits and what it reflects.
For an opaque surface over a short, clear air path, a useful approximation is L = εLbb(Ts) + (1 − ε)Lrefl. Here ε is the surface emissivity, Lbb is blackbody radiance in the detector band, and Lrefl is reflected environmental radiance. A polished cover can show a warm patch when an operator steps beside it. Changing the viewing angle can move the patch even while the cover temperature stays steady.
A palette maps image levels to display colors. With automatic gain enabled, bringing a much hotter object into view can change the color of a bearing that stayed at 55 °C. For a thermal camera arduino project that logs thresholds, retain the calibrated samples before applying a display stretch. The TC160-NFSPI integration supplies unsigned words in 0.1 K units. A word of 3282 gives 3282 / 10 − 273.15 = 55.05 °C. The conversion’s decimal places describe the arithmetic, not the measurement accuracy.
Target coverage at the installed distance
For an arduino thermal camera with a rectilinear lens facing a plane squarely, scene width is approximately 2d tan(θ/2), where d is distance and θ is horizontal field of view. At 2 m, a 45° lens covers about 1.66 m, or 10.4 mm per sample across 160 columns. An 88° lens covers about 3.86 m, or 24.1 mm per sample. A 15 mm terminal can share a sample with cooler insulation in either image. Thermal Camera Lens & FOV Selection Guide
Specify frame rate against the task. At 60 Hz a new exposure can arrive every 16.7 ms. The AeroMini 256256 × 192 offers 60 or 30 Hz non-radiometric imaging, while its temperature-measuring version is a 25 Hz quotation item. Check the ordered interface as well. The 16-pin DF52 expansion carries USB 2.0 or CVBS, and the 26-pin DF56C connector serves MIPI or DVP configurations. The receiving board needs the corresponding electrical interface and pinout. MIPI CSI-2 Embedded Interface Wiki
For an arduino thermal camera installation that only needs live video, the AeroCore 64050 fps USB imaging provides 50 fps imaging. Route its USB UVC video to a USB host and use the MCU UART for controls such as palette or zoom. On a Linux receiver, inspect the modes advertised by the selected video node before allocating capture memory. A listed pixel format identifies how the driver delivers images. Calibrated temperature units require a separate output specification. USB UVC Camera Interface Wiki
v4l2-ctl --list-devices
v4l2-ctl -d /dev/video0 --list-formats-ext
How to size an arduino thermal camera for MCU memory
Start the arduino thermal camera memory budget with the representation the application actually holds. For tightly packed rows, frame bytes = width × height × bytes per pixel. The table assumes a two-byte sample and excludes protocol headers, row padding, display memory, and allocator overhead. One kibibyte is 1,024 bytes. The 640×512 entry illustrates the cost of a host staging array without making any assumption about a core’s native video format.
| Sample grid | One frame | Two frames for ping-pong capture |
|---|---|---|
| 32×24 | 1,536 bytes (1.5 KiB) | 3,072 bytes (3 KiB) |
| 160×120 | 38,400 bytes (37.5 KiB) | 76,800 bytes (75 KiB) |
| 256×192 | 98,304 bytes (96 KiB) | 196,608 bytes (192 KiB) |
| 640×512 staging example | 655,360 bytes (640 KiB) | 1,310,720 bytes (1,280 KiB) |
What fits after the firmware starts
The Arduino Uno Rev3 has 2 KB of SRAM, or 2,048 bytes. Subtract one 32×24 array of 16-bit words and only 512 bytes remain before the stack, other globals, and library workspace. If the sensor library also keeps a floating-point result for every pixel, four bytes per result add 3,072 bytes. An arduino thermal camera sketch can therefore exceed the Uno’s SRAM with a single library call that requires a second representation.
On an ESP32-S3 or an STM32 with sufficient free SRAM, a 38,400-byte frame is a practical allocation. For the TC160-NF companion processor PCB, budget that payload for up to 25 frames/s. Its 12-pin header provides SPI data and I²C control. The USB Type-C alternative provides CDC virtual serial command/response. On a Linux bench host, a CDC device typically appears under /dev/ttyACM* and requires software that speaks the command protocol.
A full-frame arduino thermal camera driver using DMA needs a buffer in memory the selected peripheral can address. Check the linker map for static arrays, then check the largest free DMA-capable block after the display and communications drivers start. Total free heap can exceed 96 KiB while every eligible block is smaller than one 256×192 frame. If the capture API takes a row stride, use stride × height for the allocation.
Buffer ownership and sustained capture
At 160×120 and 25 frames/s, the incoming sample payload alone is 38,400 × 25 = 960,000 bytes/s, or 0.96 MB/s (0.916 MiB/s). The frame interval is 40 ms. In a ping-pong arrangement, capture fills one buffer while the application consumes the other. If a display write holds the completed buffer beyond the next handoff, the driver must drop a frame, pause capture where supported, or risk overwriting samples still in use.
At 256×192, the AirTiny213 mm core supports a Y16 temperature data mode and a detector rate of up to 25 Hz. A high-RAM MCU receiving VoSPI can accommodate that grid if its driver and memory layout allow it. For an arduino thermal camera that retains two decoded frames, reserve 192 KiB before adding packet buffers. A separate full-resolution RGB565 display image adds another 96 KiB. Include that allocation if the display library creates its own framebuffer.
Line processing can cut the sample store to 320 bytes for one 160-pixel row. To find the hottest sample in a defined rectangle, compare each incoming value with a running maximum and keep its coordinates. Publish the result after the driver confirms a complete frame. This approach requires a protocol with identifiable row or packet positions and a driver that exposes them during reception. A library that returns only completed frames has already incurred the full allocation.
Choose the storage method around the most demanding operation the arduino thermal camera must complete. A frame-wide display stretch needs the final minimum and maximum before it can color the first row consistently. That may require retaining the frame or accepting a display range calculated from the previous exposure. Compare the available output modes before committing MCU RAM, and size a Linux receiver separately when video terminates there. Interactive Thermal RAW Module Selector · Raspberry Pi Thermal Camera Module Guide
How to wire an arduino thermal camera for safe logic levels
Start an arduino thermal camera wiring drawing with two part numbers, one for the controller board and one for the camera assembly in hand. A bare detector and its carrier can have different supply inputs, pull-ups, and connector pinouts. When a supplier labels a board “thermal camera module arduino,” request the schematic for that revision. A regulator beside the connector establishes little about the voltage that an input pin can withstand.
Regulated module supply ────────────────────── module VIN
Controller GND ────────────────────────────── module GND
Controller VIO ── translator rail A rail B ── module I/O rail
Controller SDA, SCL ↔ open-drain translator ↔ module SDA, SCL
pull-ups on each side
Controller SCK, MOSI, CS → push-pull shifter → SPI peripheral inputs
Controller MISO ← push-pull shifter ← SPI peripheral output
Controller UART TX → push-pull shifter → module UART RX
Controller UART RX ← push-pull shifter ← module UART TX
The drawing shows alternative interfaces and assumes the controller supplies the SPI clock. Populate only the signals the selected assembly uses. For each wire in an arduino thermal camera harness, record the connector pin number, direction, supply domain, and reset state at both ends. Check the specified operating supply separately from the I/O thresholds. A 3.3 V device can expose a 1.8 V digital interface even when its main supply measures exactly 3.3 V.
The Uno Rev3 operates its ATmega328P at 5 V. Translate any 5 V output driving a 3.3 V or 1.8 V input unless that particular pin has documented 5 V tolerance under the intended power conditions. Check the reverse direction too. The sender’s guaranteed minimum high output must meet the receiver’s minimum high input, including at the lowest permitted supply. Use operating limits for the design and absolute maximum ratings to identify damage thresholds. See the Arduino Uno Rev3 hardware specifications.
For I²C on an arduino thermal camera, use a bidirectional open-drain translator with pull-ups to the local I/O supply on each side. Include pull-ups already fitted to the carrier or enabled by the controller library. For a passive pull-up, the 30–70% rise time is approximately t_r = 0.8473 × R_p × C_bus. At 4.7 kΩ and 100 pF that gives 398 ns, above the 300 ns Fast-mode limit. Reducing resistance improves rise time but increases the current a device must sink.
SPI and UART normally use push-pull drivers. Choose translator channels with the directions shown, then check propagation delay against the receiver’s timing. On an arduino thermal camera SPI read, the outgoing clock delay and returning data delay both consume the sampling margin. Probe clock and data at the receiving pins with the production cable fitted. Verify chip-select timing and, on a shared bus, confirm the translated MISO line releases when the camera is deselected.
With power removed, verify ground continuity and connector orientation. Then check the arduino thermal camera with the controller powered first and the camera powered first, within the permitted sequencing limits. An idle-high UART TX or an I²C pull-up can inject current through an unpowered input and lift its supply rail. Where the two boards can start independently, select a translator with specified partial-power-down isolation and hold its outputs disabled until both I/O rails are valid.
MLX90640 on Arduino over I²C
The MLX90640 samples 32 columns by 24 rows. In an arduino thermal camera built around this array, the driver reads calibration coefficients from EEPROM during initialization, then fetches measurement RAM and auxiliary values over I²C. The calculation uses those coefficients, the sensor’s operating conditions, emissivity, and a reflected-temperature estimate to produce object temperatures. Preserve the numerical temperatures through that step. Apply the display range and palette when generating the preview.
The sensor updates alternating subpages. In chess mode each update refreshes one set of checkerboard positions, so a displayed image can contain neighboring samples acquired at different times. For an i2c thermal camera observing a moving part, retain the subpage identifier and acquisition timestamp. If the part moves between updates, the boundary can appear serrated even when every bus transaction succeeds. A repeated identifier on consecutive reads warrants checking whether the reader missed an intervening update.
One 16-bit image occupies 32 × 24 × 2 = 1,536 bytes. A library that returns 768 four-byte floating-point temperatures needs 3,072 bytes for that output alone. To budget an arduino thermal camera build, inspect the actual library version for its raw measurement buffer, calibration structure, local arrays, and display buffer. On a 2 KiB Uno Rev3, the floating-point output alone exceeds SRAM. Moving the palette to flash cannot recover enough working space for that implementation.
Build the mlx90640 arduino example for the intended board and inspect its linker map for static allocations. Check the capture and conversion functions for stack arrays and heap allocation, which the static total omits. To profile the arduino thermal camera loop, take separate micros() timestamps when data becomes ready, when the I²C read finishes, when conversion finishes, and when display transfer completes. If display writes use DMA, timestamp the completion event as well as submission.
At 400 kHz, even a hypothetical transfer of just 1,536 data bytes takes at least 1,536 × 9 / 400,000 = 34.56 ms including acknowledgment clocks. The driver’s actual transaction count and payload determine acquisition time. If conversion exhausts SRAM, use a larger MCU or move conversion to a host with the required calibration data. If display writes dominate, send temperatures to a host for rendering. Enlarging the preview preserves the native 32×24 sampling grid. The Raspberry Pi Thermal Camera Module Guide covers host integration.
FLIR Lepton versus MLX90640 and TC160-NF
Choose an arduino thermal camera by how often the application needs fresh measurements and how many samples span the feature of interest. For a flir lepton arduino design, identify the exact Lepton variant and carrier before laying out the connector. Lepton 3.5 sends video over VoSPI, a packetized SPI interface. Follow the variant’s stream timing and packet synchronization requirements, then use the carrier documentation to establish supply pins, logic levels, and which signals reach the header.
| Module | Acquisition interface | Control interface | Update-rate basis | Output semantics | Integration checks |
|---|---|---|---|---|---|
| MLX90640, 32×24 | I²C measurement RAM reads | I²C registers | Selectable 0.5–64 Hz subpage refresh. Two complementary updates refresh all pixels. | Driver calculates object temperatures from measurements and calibration. | Check subpage sequence, SRAM use, and conversion time. |
| Lepton 3.5, 160×120 | VoSPI packets | CCI over I²C | 8.7 Hz unique images for the export-capped configuration | Radiometric variant. Verify TLinear configuration and scale before converting words. | Check packet and segment alignment, duplicate frames, and carrier pinout. |
| TC160-NFSPI integration, 160×120 | Companion PCB with 12-pin SPI header or USB Type-C CDC virtual serial | I²C on header or CDC command/response | Up to 25 FPS. Verify delivered cadence on the selected path. | Factory-calibrated unsigned 16-bit words, 0.1 K per count | Distinguish the 3.3 V bare module from the companion PCB when ordering. |
For an arduino thermal camera inspecting a stationary terminal block, calculate the pixel footprint before choosing the update rate. With a 45° horizontal field at 1 m, scene width is approximately 2 × 1 m × tan(22.5°) = 0.83 m. Across 160 columns that averages 5.2 mm per sample. Across 32 columns at the same field it averages 26 mm. A small hot contact can share its sample with cooler insulation. Check working distance against the Thermal Camera Lens & FOV Selection Guide.
For a belt moving at 0.5 m/s, a part travels about 57 mm between unique 8.7 Hz images and 20 mm between images delivered at 25 FPS. Those distances describe frame spacing. Exposure and detector response also influence motion blur. On an arduino thermal camera test rig, count unique captures while the display and logging tasks run. The following TC160-NF section works through the power and data-path calculation for that module.
When comparing OEM quotations, record the connector and output mode beside each rate. The AirTiny213 mm core specifies a detector rate of ≤25 Hz and a Y16 temperature mode. The AeroMini 256256 × 192 offers 60/30 Hz non-radiometric versions and a quoted 25 Hz radiometric version. Its 26-pin DF56C connector carries MIPI/DVP. The AeroCore 64050 fps USB imaging provides 50 fps imaging over USB UVC with separate UART control. Confirm interface compatibility using the USB UVC reference, MIPI CSI-2 reference, and Thermal RAW Module Selector.
TC160-NF radiometric streaming over SPI and I²C
The TC160-NFSPI integration has two order configurations. For an arduino thermal camera that needs a header for frame capture, the US$120 option pairs the 160×120 radiometric module with a companion processor PCB. Its 12-pin, 2.54 mm interface carries I²C control and SPI data. The US$90 bare module is a separate 3.3 V configuration rated at 23 mA typical. The resulting 76 mW describes the bare module alone. Budget the processor PCB and host separately.
On the companion PCB, use I²C to apply the documented capture settings, then read each available frame over SPI. For an arduino thermal camera driver, keep the configuration result and the SPI byte count as separate status values. An I²C acknowledgment establishes that a device answered its address. It gives no indication that the following SPI read started at a frame boundary or delivered all 19,200 pixel words.
At the maximum rate of 25 FPS, one frame period is 40 ms. The active pixel payload is 160 × 120 × 2 = 38,400 bytes per frame, or 960,000 bytes/s and 7.68 Mbit/s. At an illustrative SPI clock of 10 MHz, clocking the pixels alone takes 30.72 ms. That leaves 9.28 ms for all other activity if the protocol permits the full period for reading. Check the permitted clock and read window against the board protocol.
The USB Type-C connection on the same PCB provides CDC virtual serial command and response. On Linux, use ls -l /dev/serial/by-id/ to look for a persistent device name, then open the corresponding serial port with a client that implements the board commands. A host specification that calls for a spi thermal camera with a USB service port should identify CDC explicitly. Software built for the USB UVC camera interface expects a different device class.
The shutterless detector has factory per-pixel calibration. Decode each sample as an unsigned 16-bit word in the documented byte order, then apply °C = word / 10.0 − 273.15. A word of 3000 represents 300.0 K, or 26.85 °C. In an arduino thermal camera logger, retain the original word when creating a display image. A palette index discards information, and the 0.1 K encoding step describes quantization rather than absolute measurement accuracy.
Lens choice determines how much of the scene contributes to each reading. For an arduino thermal camera inspecting a panel 1 m away, the narrow 45°×34° lens spans about 0.83 m horizontally. The wide 88°×66° lens spans about 1.93 m, using width = 2 × distance × tan(horizontal FOV / 2). A small terminal occupies fewer pixels with the wide lens, increasing the influence of adjacent surfaces. Use the Thermal Camera Lens & FOV Selection Guide to check the intended working distance.
ESP32-S3, STM32H7, and Teensy 4.1 for thermal frame capture
Size the receive buffers after enabling the services the finished arduino thermal camera will run. Two full 16-bit frames require 76,800 bytes at 160×120 or 196,608 bytes at 256×192. Both figures exclude DMA descriptors, alignment padding, packet headers and consumer scratch space. Record the largest free block in a memory region the selected SPI peripheral and driver can reach. A total-free-memory counter can include fragmented blocks and regions unsuitable for DMA.
| Platform | Receive memory | Concurrent load to exercise |
|---|---|---|
| ESP32-S3 | Check the SPI driver’s DMA allocation and alignment requirements. Direct transfers to external PSRAM depend on the board, driver and transfer configuration. | Send frames over Wi-Fi while refreshing the display. Include any driver copy from an internal staging buffer in the timing. |
| STM32H7 | Match the SPI instance and DMA controller to an accessible SRAM bank on the exact part. Check linker placement and data-cache policy. | Run display transfers or Ethernet traffic while recording SPI completion times and receive errors. |
| Teensy 4.1 | Use DMA-accessible RAM2 for receive buffers with a suitable driver. Check cache handling for the allocation. Optional external PSRAM needs separate qualification. | Exercise the actual display and SD logging path, including file writes long enough to stall the consumer. |
For an esp32 thermal camera build, inspect allocations after the radio stack starts. For an stm32 thermal camera build, inspect buffer addresses in the linker map. On cacheable, noncoherent memory, follow the driver’s receive-side cache procedure before handing the buffer to DMA and before the CPU reads it back. Align and isolate buffers on cache-line boundaries so maintenance on the pixels cannot discard an unrelated variable sharing the last line.
A ping-pong timeline makes buffer ownership visible. The example assumes an arduino thermal camera receiving one frame every 40 ms. Each completion publishes a buffer index and sequence number to a queue. The interrupt handler can then return while a consumer works on the completed buffer. With two slots, the consumer must release A before the next transfer into A begins.
Frame interval SPI receive DMA Completion event Consumer
0–40 ms Fill A Queue A, frame 0 Idle
40–80 ms Fill B Queue B, frame 1 Read and release A
80–120 ms Reuse A if released Queue A, frame 2 Read and release B
If the consumer still owns A, count the overrun and follow the source protocol for skipping or resynchronizing. For an arduino thermal camera sharing SPI with a display, capture chip select and clock on a logic analyzer during the longest screen update. Measure elapsed time from the first frame transaction to the last, including gaps. Compare completed-frame counts with source counters where available, and log queue overruns under network or storage load. A host sequence number alone cannot reveal frames missed before reception.
AirTiny2 at 256×192 with VoSPI and Y16
The AirTiny213 mm core packages a 256×192, 12 µm VOx detector and Falcon 300 ASIC-ISP in a 13×13×9.05 mm core. For an arduino thermal camera using VoSPI, route video packets to the MCU’s SPI receive path and configure the core through its documented I²C or UART control interface. Obtain the packet format, synchronization procedure and supported clock range for the selected firmware before committing board pins or writing the receiver.
At the detector ceiling of 25 Hz, 256 × 192 × 2 × 25 gives 2,457,600 bytes/s, about 19.66 Mbit/s for active 16-bit pixels alone. At an illustrative 20 MHz SPI clock, the pixels occupy 39.32 ms of a 40 ms frame period. Only 0.68 ms remains for packet headers, timing gaps and host delays. An arduino thermal camera therefore needs a measured transfer budget at a clock the core actually supports.
Y16 identifies a 16-bit data mode. Confirm that temperature data are available on the ordered interface and obtain its word layout, byte order, scale, offset and invalid-sample conventions. Before an arduino thermal camera publishes degrees Celsius, compare a decoded region with the supplier’s reference output from the same scene and settings. Applying the TC160-NF conversion to an AirTiny2 word without that documentation can yield a plausible temperature with no valid calibration basis.
DVP and MIPI are documented video alternatives. USB is available through an optional Type-C adapter board with a downloadable schematic. Check the adapter’s USB descriptors and supported formats before selecting a Linux capture backend. If it exposes a V4L2 video node, enumerate that node’s formats and frame intervals with the command below. For an SoC carrier, the MIPI CSI-2 Embedded Interface Wiki and Raspberry Pi Thermal Camera Module Guide cover host-side interface selection.
v4l2-ctl --list-devices
v4l2-ctl -d /dev/video0 --list-formats-ext
For an arduino thermal camera power budget, use 0.28 W as the typical normal figure at 25 °C and 750 mW for the shutter peak. At a given supply voltage, that peak represents about 2.7 times the normal current. Probe voltage at the module during shutter operation while the host is transmitting or updating its display. A short dip across the harness can explain a receiver losing synchronization even when a bench meter shows a steady regulator output.
For an OEM sample order, record the lens, video interface, control interface and requested temperature mode together. The US$252 reference quote applies to the 3.2 mm lens configuration. Other documented fixed-focus choices are 2.0, 4.3 and 7.0 mm. Use the Interactive Thermal RAW Module Selector to narrow the configuration, then tie the supplier’s interface drawing and Y16 format description to the part revision on the purchase order.
UART control and separate video routing for AeroCore 640
The AeroCore 640 produces 640×512 images at 50 fps. In an arduino thermal camera built around this core, the MCU can read a panel switch and request a palette change over UART while a Linux SBC records the USB video. A design that needs a digital video transmitter can route BT.656 to a compatible input or bridge. Draw the control and video paths separately so the connector schedule identifies a receiver for each signal.
MCU UART TX/RX ↔ level translator if required ↔ AeroCore UART RX/TX
5–12 V DC supply → AeroCore power input
Choose a video route supported by the receiving equipment
AeroCore USB UVC → USB host port on SBC or recorder
AeroCore BT.656 → compatible digital capture input
→ or BT.656 bridge → video transmitter input
Define the UART transaction before assigning pins
For a 3.3 V MCU, obtain the pinout, UART I/O voltage and command protocol for the ordered core and harness. The 5–12 V DC specification applies to the power input. It gives no UART input threshold or output-high voltage. On the arduino thermal camera schematic, identify TX and RX from each device’s perspective, include the signal ground, and select a translator only after checking the electrical limits in both directions.
Palette selection, digital zoom and shutter operation are three entries to look up in the supported command list. For each required operation, record the opcode, permitted arguments, serial settings and expected reply, if the protocol defines one. A uart thermal camera module may acknowledge receipt before the new image is visible. To measure button-to-display delay on the arduino thermal camera, time through to the first changed video frame. A UART reply measures a different interval.
Command semantics matter when a reply goes missing. An absolute request for a particular palette can be safe to repeat if the protocol defines that behavior. Repeating a “next palette” request can advance two positions after a single button press. If shutter control is supported, determine what the receiver displays during correction. A recorder that continues delivering buffers can still contain repeated images over that interval.
Match the receiver to the video output
For USB capture, connect the core to a USB host and inspect the modes that its UVC interface advertises. On an arduino thermal camera recorder with multiple video devices, identify the capture node by device name and USB location before using its number. The example assumes the core appears at /dev/video2. The format listing gives the pixel format, dimensions and frame intervals that Linux can request. See the USB UVC Camera Interface Wiki.
v4l2-ctl --list-devices
v4l2-ctl -d /dev/video2 --list-formats-ext
v4l2-ctl -d /dev/video2 --get-fmt-video --get-parm
At 50 fps, a frame interval is 20 ms. If the negotiated format carries two uncompressed bytes per pixel at 640×512, the active payload is 640 × 512 × 2 × 50 = 32.768 MB/s, or 31.25 MiB/s, before transport overhead. Use the actual negotiated format for the arduino thermal camera bandwidth budget. When the application stores whole capture buffers, account for line padding using the driver-reported stride and buffer size. See the Linux Kernel V4L2 API Documentation.
For BT.656, compare the core’s output timing, bus width, clock edge and synchronization with the capture device’s input specification. A receiver described as supporting BT.656 may accept only particular raster timings. Obtain the output raster for the ordered mode before committing to a bridge. A transmitter with a composite input needs a digital-to-composite encoder that accepts that timing and produces a video standard the transmitter supports.
Specify what the arduino thermal camera must deliver at its downstream connector. A palette image can meet an operator-view requirement. An alarm specified in °C needs documented temperature output, its encoding and applicable measurement accuracy for the ordered configuration. The core’s NETD below 40 mK describes sensitivity to small temperature differences and supplies no absolute accuracy figure. Confirm the required output on the quotation for the AeroCore 64050 fps USB imaging.
AeroMini 256 video and radiometric versions
For an arduino thermal camera using the AeroMini 256, put the measurement requirement and frame rate on the same purchase-order line. All versions discussed here have a 256×192 detector with 12 µm pitch. The non-radiometric imaging options run at 60 or 30 Hz. Temperature measurement belongs to the 25 Hz radiometric version, available by quotation. Order the interface and its matching adapter explicitly, even when two candidate cores share the same detector dimensions.
| Order item | Output or price | Host or purchasing check |
|---|---|---|
| Non-radiometric, 60 or 30 Hz | Imaging only. US$179 sample with 9.1 mm lens, US$185 with 7 mm lens. | Specify the imaging rate and lens. Confirm that the selected output carries the required cadence. |
| Radiometric, 25 Hz | Temperature measurement. Price by quotation. | Request the temperature format, units, frame layout and supported host software for the quoted interface. |
| 16-pin DF52-16S-0.8H | USB 2.0 / CVBS expansion | Use a matching breakout to a USB host, or route CVBS to a compatible composite monitor or decoder. |
| 26-pin DF56C_26S_0.3V | MIPI / DVP connector | Match the configured output to an SBC camera receiver or parallel capture input through the correct adapter. |
Select a capture path before buying the cable
On the 16-pin expansion, USB 2.0 identifies the bus. Ask which USB device class, video formats and software the selected build supports. If the supplier confirms UVC, a Linux arduino thermal camera host can enumerate the capture modes with v4l2-ctl --list-formats-ext. If the build requires a vendor SDK, verify that a library exists for the SBC’s CPU architecture and Linux distribution. A successful USB enumeration alone establishes neither capture support nor access to temperatures.
CVBS suits an arduino thermal camera that feeds an existing composite monitor. For a Linux recorder, a composite decoder or USB capture adapter must accept the core’s analog video standard. Check how the decoder reports fields and frames. A frame count taken after deinterlacing can differ from the detector’s image rate. The composite feed carries the displayed picture. A requirement to log individual pixel temperatures needs a separately documented data path on the radiometric build.
For the 26-pin connector, obtain the mating part, pin-one drawing, contact orientation and adapter schematic. On MIPI, match the lane assignment, lane count and data type to the SBC receiver and driver. On DVP, check parallel data width, pixel clock and synchronization signals against the capture peripheral. A Raspberry Pi 15-pin ribbon requires a suitable adapter and host support. Check the MIPI CSI-2 Embedded Interface Wiki and the Raspberry Pi Thermal Camera Module Guide.
Power the AeroMini from its specified 5 V supply. Its typical consumption below 0.7 W corresponds to less than 140 mA at 5 V under typical conditions. For a battery-operated arduino thermal camera, request the peak current and allowed voltage tolerance before sizing the regulator. Measure voltage at the module end of the production harness under load. A reading at the regulator misses the drop across both the supply and return conductors.
Put the lens and measurement format on the quotation
The US$179–185 sample range applies to non-radiometric units. Lens choice within that range changes how much of a target lands on one pixel. Near the optical axis, angular sampling is approximately detector pitch divided by focal length. With 12 µm pixels, that gives 1.71 mrad at 7 mm and 1.32 mrad at 9.1 mm. At 5 m, the corresponding sample spacings are about 8.6 mm and 6.6 mm. See the Thermal Camera Lens & FOV Selection Guide.
For a temperature-recording arduino thermal camera, ask for a sample frame from the quoted 25 Hz version, with a decoded pixel example and the matching format description. Use that example to check byte order, scale, offset and any invalid-value codes in the host application. At 25 Hz, successive detector frames are nominally 40 ms apart. If image and temperature data arrive separately, request the timestamp or frame identifier used to associate them.
For an OEM order, identify the arduino thermal camera host board, adapter part number, firmware version and lens alongside the core variant. That gives purchasing enough detail to flag a substitution that changes the Linux capture path or removes temperature output. Compare interface options in the Interactive Thermal RAW Module Selector and request the configuration-specific pinout and radiometric pricing from the AeroMini 256 product page.
How to upgrade an arduino thermal camera as requirements grow
Upgrade an arduino thermal camera when a measured requirement exceeds what the current design can deliver. Keep the MLX90640 as the baseline and record the smallest target, its farthest working distance, the required field of view, the frame rate under load, and whether the software needs temperatures or images. Then choose where frames should land. A microcontroller can consume temperature samples directly, while a Linux host can capture video and leave motor timing and other real-time work to the MCU.
Match the upgrade to the target and host
For an arduino thermal camera viewing a 100 mm target at 2 m, estimate the horizontal image span with W = 2D × tan(HFOV / 2) and the target coverage with pixels ≈ Nx × target width / W. For a rectilinear lens with known focal length, estimate HFOV = 2 × atan(Nx × pixel pitch / (2 × focal length)). The table uses centered targets. Check actual coverage near the image edges and allow for blur, motion, and mounting error. Thermal Camera Lens & FOV Selection Guide
| Upgrade and trigger | Memory, interface, and supply | Optics and output | Implementation section |
|---|---|---|---|
| TC160-NF when the MCU needs denser radiometric frames | Allow 38,400 B per 160×120 frame plus transfer buffers. The bare module draws 23 mA typical at 3.3 V. The companion PCB provides a 12-pin, 2.54 mm SPI data and I²C control connection, or USB Type-C CDC virtual serial for command/response. | The 45° horizontal lens puts about 10 pixels across the example target. The 88° lens puts about 4 pixels across it. Convert unsigned words with °C = word / 10 − 273.15. Maximum frame rate is 25 FPS. |
TC160-NF radiometric streaming over SPI and I²C. TC160-NF module |
| AirTiny2 when the application needs 256×192 Y16 | Allow 96 KiB per frame plus packet storage on a high-RAM MCU. Match the carrier to the VoSPI data and I²C control pinout, or use the optional Type-C USB adapter with a compatible host. Size the supply for the 750 mW shutter peak and 0.28 W typical operation at 25 °C. | A 3.2 mm lens gives about 51° horizontal coverage and 13 pixels across the target. Select Y16 temperature data mode and apply its documented conversion. The detector runs at up to 25 Hz. | AirTiny2 at 256×192 with VoSPI and Y16. AirTiny2 module |
| AeroMini 256 when the video host or required rate determines the build | Allocate host buffers from the negotiated stride. Supply 5 V at <0.7 W typical. Use the 16-pin DF52 USB 2.0/CVBS expansion or the 26-pin DF56C MIPI/DVP connector with a compatible carrier and host driver. | A 7 mm lens gives about 25° horizontally and 29 pixels across the target. The 60 and 30 Hz builds are non-radiometric. Specify the 25 Hz radiometric version by quotation when the application measures temperature. | AeroMini 256 video and radiometric versions. AeroMini 256 core |
| AeroCore 640 when a separate host needs higher-resolution live video | Allocate buffers on the video host. Even one 8-bit 640×512 image occupies 320 KiB. Route USB UVC or BT.656 to a compatible host and keep MCU UART for control. Supply 5–12 V DC at 0.9 W typical. | A 10 mm lens on the 640×512 core gives about 42° horizontally and 42 pixels across the target. Treat the 50 fps stream as imagery unless calibrated temperature output is specified for the ordered configuration. | UART control and separate video routing for AeroCore 640. AeroCore 640 core |
If an arduino thermal camera moves to a Raspberry Pi or another Linux host, verify the interface on the actual carrier before committing the enclosure. For USB, check enumeration and the formats the device exposes. For MIPI CSI-2, confirm the lane mapping and driver for the exact module configuration. Check connector clearance with the cable installed at its specified bend radius. USB UVC Camera Interface Wiki, MIPI CSI-2 Embedded Interface Wiki, Raspberry Pi Thermal Camera Module Guide
For an AirTiny2 adapter that advertises Y16 as a V4L2 capture format, take a short sample before integrating the recorder. A tightly packed 256×192 stream at 25 Hz carries 2.46 MB/s, about 2.34 MiB/s, before transport overhead. Read back the negotiated format and bytes per line. Use the reported stride when validating the recorded file, and confirm frame sequence continuity independently of its size.
v4l2-ctl -d /dev/video2 --list-formats-ext
v4l2-ctl -d /dev/video2 \
--set-fmt-video=width=256,height=192,pixelformat='Y16 ' \
--get-fmt-video --stream-mmap=4 --stream-count=250 \
--stream-to=/tmp/airtiny2-y16.raw --verbose
Commissioning checks and Arduino thermal camera FAQs
Commission the arduino thermal camera with the production cable, optics, power converter, and receiving software installed. Set the minimum delivered frame rate, allowed frame loss, test duration, and applicable temperature error before testing. Log the ordered module variant, firmware, lens, and capture mode with the results. If the hardware is still being selected, use the same requirements to screen candidate configurations. Interactive Thermal RAW Module Selector
| Design check | Record | Pass condition |
|---|---|---|
| DMA-capable SRAM | Free DMA-capable bytes and largest contiguous block before capture allocation. Record remaining headroom under full workload. | All DMA buffers allocate with the required alignment and the system retains its specified reserve. |
| Sustained frame rate and drops | Delivered frames, elapsed seconds, sequence gaps, and incomplete frames while the application is busy. | Complete frames per second meet the minimum and total losses stay within the agreed limit. |
| I/O levels | Measured high and low voltages, overshoot, and rise time at the receiving pins with the production harness. | Levels meet receiver thresholds and voltage limits. Timing margins hold at the selected clock rate. |
| Supply at peak load | Minimum and maximum voltage at the module, peak current, and observable resets during startup, shutter operation if fitted, and concurrent system loads. | The rail stays within module limits throughout the transient and capture continues through the load event within the agreed interruption allowance. |
| Radiometric reference | For temperature-capable builds, record indicated and calibrated blackbody temperatures in °C at two points bracketing the operating range. | Errors meet the agreed tolerance with reference uncertainty accounted for. Mark imagery-only builds as inapplicable. |
| Video continuity | On the intended host, log sequence and timestamps through startup, sustained recording, and an expected reconnect cycle. | The host negotiates the required mode, meets the allowed gap during operation, and resumes fresh frames within the recovery time. |
When an arduino thermal camera stalls, compare timestamps from the first complete frame at the receiver and the last frame consumed by the application. If acquisition remains regular while the consumer falls behind, inspect queue depth and storage latency. If both timestamps show the gap, check the module rail and interface status around the same event. Preserve that trace so a retest can verify the fix under the original workload.
Frequently asked questions
When should an arduino thermal camera stay with the MLX90640?
Can an arduino thermal camera sit behind a protective window?
Why does a shiny target read differently when I move?
Why does the same object change color in live video?
Why does an arduino thermal camera pause at regular intervals?
How should I align thermal and RGB cameras?
How should I timestamp arduino thermal camera frames on a moving robot?
Can an arduino thermal camera share a supply with motors?
How should Linux recover after a USB disconnect?
What metadata should a temperature recording retain?
What should an OEM freeze for an arduino thermal camera build?
Selecting Verified Thermal & Optical Modules for arduino thermal camera
Match your integration interface, radiometric requirement, and optical FOV before locking payload mechanics. Review our documented module baselines below or request an engineering datasheet review:
- TC160-NF 160×120 Shutterless Radiometric Module — 160×120 (shutterless LWIR, factory per-pixel calibrated), Up to 25 FPS (US$90 bare module / US$120 module + processor PCB)
- AeroMini 256 USB / MIPI LWIR Core — 256×192 (12 µm uncooled VOx), Non-radiometric 60 / 30 Hz; Radiometric 25 Hz by quotation (US$179–185 non-radiometric samples (25 Hz radiometric by RFQ))
- AirTiny2 (256×192 Micro LWIR Module) — 256×192 (12 µm VOx, Falcon 300 ASIC-ISP), ≤ 25 Hz detector rate (US$252 reference quote (3.2 mm))
- AeroCore 640 / 384 (50 fps USB UVC & UART Core) — 640×512 (12 µm VOx) or 384×288 (17 µm VOx), 50 fps imaging (Configuration quotation)
Frequently Asked Questions: Arduino Thermal Camera
Why can’t an 8-bit Arduino Uno buffer a 640×512 thermal frame in 2 KB of SRAM?
A 640×512 thermal frame with two bytes per pixel occupies 655,360 bytes, or 640 KiB. That is 320 times the Uno’s 2,048 bytes of SRAM before allocating memory for variables, the stack, or communication buffers. Capture and buffer the video on a PC or single-board computer with an input compatible with the camera. The Uno can still send camera commands if its serial interface and logic levels match the core.
Which MCUs can capture 160×120 and 256×192 SPI thermal frames?
ESP32-S3, STM32H7, and Teensy 4.1 are candidates for SPI capture. At two bytes per pixel, one 160×120 frame needs 38,400 bytes (37.5 KiB), and one 256×192 frame needs 98,304 bytes (96 KiB). Double buffering doubles those allocations. Check that the SPI DMA engine can access the chosen memory region and that enough space remains for the application. Measure sustained capture throughput at the intended frame rate with packet overhead and application processing included.
Can a 3.3 V MCU control a 640×512 core while a transmitter or SBC handles video?
Yes. The AeroCore 640 provides UART control and 640×512 video at 50 fps. Before wiring a 3.3 V MCU to the UART, verify the core’s transmit and receive logic levels, serial settings, and supported commands. Add level translation if the logic levels require it. Route USB UVC to a compatible USB host or BT.656 to a compatible digital video input on the SBC or transmitter. Power the core from a 5–12 V DC supply.
How do I connect a 5 V Arduino to a 3.3 V or 1.8 V thermal module?
Check the module’s supply requirements, its I/O voltage and pin tolerances, and the Arduino’s input thresholds. Connect the grounds and power the module from the specified supply. For open-drain I²C, use a bidirectional level shifter and pull-ups to each side’s logic rail. For push-pull SPI or UART, use a translator rated for each signal’s direction and speed. Verify the translated voltage levels and timing at the receiving pins before streaming frames.
What does a thermal camera detect?
A thermal camera detects infrared radiation that reaches its sensor through the optics. Each pixel measures radiation within the camera’s spectral band from a small part of the scene. A calibrated radiometric system uses that signal to estimate surface temperature, accounting for the surface’s emissivity and the radiation it reflects from its surroundings. On shiny metal, reflected radiation from nearby objects can strongly influence the temperature reading.
Did NASA use Arduino?
Yes. NASA Ames documents an Arduino-based processor that flew aboard TechEdSat-3p, a CubeSat deployed from the International Space Station in November 2013. NASA identifies it as the first use of an Arduino-based processor in the TechEdSat series and reports that the processor performed well in the space radiation environment. The mission was a flight technology demonstration that included a passive flight test of an exo-brake. [NASA’s What Are NASA’s Technology Educational Satellites?](https://www.nasa.gov/centers-and-facilities/ames/what-are-nasas-technology-educational-satellites/#h-tech-edsat-3p)
Is there a camera for Arduino?
Yes. Arduino projects can use low-resolution thermal arrays over I²C or higher-resolution thermal modules with interfaces such as SPI. Match the board to the camera’s electrical interface and bus protocol, and check that a driver supports the camera’s frame format. Budget RAM for both the driver and the image buffers. At two bytes per pixel, a 160×120 frame alone takes 37.5 KiB, so a board with more RAM or a separate capture host may be needed.
Is there such a thing as a thermal camera app?
Yes. A thermal camera app can display frames from a phone’s built-in thermal sensor or a compatible external thermal camera. The app reads the sensor data and maps it to a color palette. If the hardware provides radiometric data, the app can also display temperature estimates. A false-color effect applied to an ordinary phone camera only recolors visible-light pixels. Measuring long-wave infrared (LWIR) requires a sensor and optics designed for that band.



































