A 38.4×91.8 mm two-layer thermal-camera PCB integrating an RP2040-Zero MCU, MLX90640 infrared sensor, 2.8-inch TFT display, decoupling capacitors, pull-up/current-limiting resistors, and power/fault LEDs.
Version
0.2.0
License
unset
Stars
0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone gokul/pcb-thermal-camera # download the package files into ./pcb-thermal-camera
tsci add gokul/pcb-thermal-camera # add it to your project as @tsci/gokul.pcb-thermal-camera
In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
# USB thermal camera · 0.2.0
All 12 electronic components mount on the top face of a 38.4 × 91.8 mm, two-copper-layer PCB. The 32 × 24 MLX90640 sensor looks out from the same face as the 2-inch screen. Hold the board at an angle to the target if you want to see the screen while measuring. The display has 240 × 320 pixels. The sensor captures 768 independent temperature readings per frame.
## Components and CAD
The ten distinct electronic parts use land patterns converted from their JLCPCB/EasyEDA records. The bill of materials gives an exact manufacturer and JLCPCB code for each designator. The two modules in revision 0.1.3 were replaced to obtain supplier footprints.
| Function | Part | JLCPCB |
| --- | --- | --- |
| Controller, USB-C, BOOT and RESET | Waveshare RP2040-Zero | [C5350143](https://jlcpcb.com/partdetail/C5350143) |
| 2-inch SPI display | HS HS20S010B | [C5329586](https://jlcpcb.com/partdetail/C5329586) |
| Narrow-angle infrared sensor | Melexis MLX90640ESF-BAB-000-TU | [C488251](https://jlcpcb.com/partdetail/C488251) |
| 100 nF / 10 µF bypass | Murata | C45000 / C77075 |
| 2.2 kΩ / 10 kΩ / 1 kΩ resistors | Yageo | C114662 / C98220 / C22548 |
| Green PWR / amber FAULT indicators | Lite-On | C125094 / C157740 |
The supplier controller footprint includes a routed opening for components on the underside of the RP2040-Zero. The opening and the outer ends of its lands retain the imported geometry. The carrier shortens the inward-facing ends of pads 10–14 and 24–33 to give 0.31 mm clearance to the opening. The Gerber profile includes this internal cutout. A two-layer routing keepout protects its edge.
The 3D view uses the supplier meshes for the sensor, display, capacitors, resistors and LEDs. The controller uses Waveshare’s RP2040-Zero STEP model aligned to the module lands. The display model sits 6 mm above the carrier.
## Assembly
Order two-layer FR-4, 1.6 mm thick, 1 oz copper. The two NC drill files distinguish plated component/via holes and non-plated mounting holes. Source and PCB copper use the board centre as their origin. Placement coordinates are millimetres viewed from the top. Ten placements are surface-mount. The display/header and infrared sensor are through-hole parts. Their solder tails and screw ends extend to the underside.
Mount U1 with USB-C facing out of the short end of the carrier. Match the sensor tab and LED cathodes to the supplier footprints. Seat the display above the carrier using four M3 × 6 mm insulating spacers or insulating washers with compatible metal spacers. Fit one straight 1 × 10 header, 2.54 mm pitch, in DS1 pins 1–10 beside the controller. The second row on the opposite edge is an alternate interface and stays unpopulated. Align the standoffs before soldering the display. The assembled screen, both indicator LEDs and the controller buttons remain accessible. Check module height, USB cable fit, screw-head clearance and the cutout fit on the first article.
## Power and firmware
Power enters through U1's USB-C connector. Its 3.3 V regulator supplies the sensor, display and indicators. The green LED indicates the 3.3 V rail. The amber LED indicates startup or a failed sensor frame. The display backlight uses the module's default-on configuration. R3 deselects the display module's optional font memory.
| Bus or function | RP2040 GPIO |
| --- | --- |
| Sensor I²C data / clock | GP4 / GP5 |
| Display SPI clock / data | GP14 / GP15 |
| Display chip select / data-command / reset | GP13 / GP12 / GP11 |
| Amber fault LED | GP8 |
Install CircuitPython 10.x for **Waveshare RP2040-Zero**. Copy the contents of firmware/ to the CIRCUITPY drive. A working unit should show green power and clear the amber light after its first valid frame. The display shows the thermal image and the frame's lowest and highest temperatures. Move a warm target through all four corners to confirm display orientation. Thermal accuracy, actual frame rate and repeated startup still require hardware validation. [Waveshare board firmware](https://circuitpython.org/board/waveshare_rp2040_zero/)
The repo includes the firmware and its driver notices, a single automatically placed schematic, the electronic BOM, SMT placements and checked manufacturing plots. The Gerbers are ready for the fabricator's process review. Supplier stock and factory acceptance must be confirmed for the intended order.