# AI Spectral Reflectance Analyzer ## Description Portable AI-powered spectral reflectance analyzer based on a Radxa Zero 3W carrier PCB, with AS7341 spectral sensing, GPS, SPI touchscreen LCD, microSD logging, USB-C LiPo charging, and integrated optical LED measurement head. ## Project Details - **Owner:** nasem007 - **Created:** 7/5/2026 - **Last Updated:** 7/6/2026 - **Visibility:** Public - **Power Requirements:** Battery Powered - **Domain:** Scientific Instrumentation - **Connectivity:** Wi-Fi - **Software:** Linux - **Human Interface:** Touchscreen ## Key Components ### J1 — [2.54-2*20](https://www.flux.ai/lcsc/2p54-220~216j.md) - Datasheet URL: https://www.lcsc.com/datasheet/C2977589.pdf?spm=wm.sxq.inf.ggs&lcsc_vid=T1kIXgFeT1NaU1RXQFBbUlUHT1cKU1NXFVBeX1VSTlAxVlNeR1VeX1VXT1lbUDsOAxUeFF5JWBYZEEoKFBINSQcJGk4dAgUUFAk%3D - Part Type: Female Headers - Symbol Style: parametric-v1 - Manufacturer Part Number: 2.54-2*20 - Role Details: 2x20 2.54mm header for 5V, 3V3, GND, I2C, UART, SPI, GPIO, PWM and shutdown signals - Package or Case Code: HDR-TH_40P-P2.54-V-F-R2-C20-S2.54 - JLCPCB Part Class: Extended Part - Role: Radxa Zero 3W carrier socket - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: ZHOURI(洲日) - LCSC Part Number: C2977589 **Pins:** - 1 [pin 1] - 10 [pin 10] - 11 [pin 11] - 12 [pin 12] - 13 [pin 13] - 14 [pin 14] - 15 [pin 15] - 16 [pin 16] - 17 [pin 17] - 18 [pin 18] - 19 [pin 19] - 2 [pin 2] - 20 [pin 20] - 21 [pin 21] - 22 [pin 22] - 23 [pin 23] - 24 [pin 24] - 25 [pin 25] - 26 [pin 26] - 27 [pin 27] - 28 [pin 28] - 29 [pin 29] - 3 [pin 3] - 30 [pin 30] - 31 [pin 31] - 32 [pin 32] - 33 [pin 33] - 34 [pin 34] - 35 [pin 35] - 36 [pin 36] - 37 [pin 37] - 38 [pin 38] - 39 [pin 39] - 4 [pin 4] - 40 [pin 40] - 5 [pin 5] - 6 [pin 6] - 7 [pin 7] - 8 [pin 8] - 9 [pin 9] ### J2 — [USB4215-03-A](https://www.flux.ai/adrian95/usb4215-03-a~kg3.md) - Role Details: USB-C 5V input with CC pull-downs, protection, and charger input - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://gct.co/files/specs/usb4215-spec.pdf - Manufacturer Part Number: USB4215-03-A - Part Type: USB C - Symbol Style: parametric-v1 - Package or Case Code: GCT_USB4215-03-A_REVA - Manufacturer Name: GCT - Role: USB-C Sink Connector **Pins:** - CC1 [pin A5] - CC2 [pin B5] - DN1 [pin A7] - DN2 [pin B7] - DP1 [pin A6] - DP2 [pin B6] - GND_A [pin A1_B12] - GND_B [pin B1_A12] - SBU1 [pin A8] - SBU2 [pin B8] - SHIELD [pin SH1] - SHIELD [pin SH4] - SHIELD [pin SH2] - SHIELD [pin SH3] - VBUS_A [pin A4_B9] - VBUS_B [pin B4_A9] ### J3 — [B2B-PH-K-S](https://www.flux.ai/adrian95/b2b-ph-k-s~fx.md) - Role: Battery Connector - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/ePH.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: B2B-PH-K-S - Package or Case Code: JST_B2B-PH-K-S - Part Type: Connector - Manufacturer Name: JST - Role Details: 1S LiPo 4000-6000mAh battery input **Pins:** - 1 [pin 1] - 2 [pin 2] ### J4 — [Pin Header 01x04 2.54mm Vertical i2c](https://www.flux.ai/hasanbasri93/pin-header-01x04-2p54mm-vertical-i2c~37.md) - Connector Pitch: 2.54mm - License: https://creativecommons.org/licenses/by/4.0/ - Allow Substitutes: Yes - Package or Case Code: PinHeader_1x04_P2.54mm_Vertical - Manufacturer Part Number: TSW-104-07-G-S - Connector Positions: 4 - Manufacturer Name: Samtec - Part Type: Connector - Role Details: Rev A connectorized AS7341 optical-head I2C connector. Pre-layout constraints: keep modular optical head; route SDA/SCL as quiet 3.3V I2C with local ground reference; isolate from LED-ring current and switch-node noise; reserve mechanical space/light barrier around optical head connector and avoid placing hot/noisy regulators adjacent to sensor interface. - Role: AS7341 Breakout Connector **Pins:** - 5V [pin 1] - GND [pin 2] - SCL [pin 4] - SDA [pin 3] ### J5 — [DM3AT-SF-PEJM5](https://www.flux.ai/adrian95/dm3at-sf-pejm5~p1p.md) - Datasheet URL: https://www.mouser.com/datasheet/2/185/DM3AT_SF_PEJM5_CL0609_0031_0_00_2DDrawing_00009471-1614303.pdf - Role: Removable microSD - Part Type: Connector - Role Details: SPI or SDIO-connected removable storage; separate CS from LCD - Manufacturer Name: Hirose Electric Co Ltd - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: DM3AT-SF-PEJM5 **Pins:** - ~ [pin SWA] - ~ [pin SWB] - CD/DAT3 [pin 2] - CLK [pin 5] - CMD [pin 3] - DAT0 [pin 7] - DAT1 [pin 8] - DAT2 [pin 1] - SHIELD [pin P3] - SHIELD [pin P4] - SHIELD [pin P1] - SHIELD [pin P2] - VDD [pin 4] - VSS [pin 6] ### J6 — [U.FL-R-SMT(01)](https://www.flux.ai/adrian95/upfl-r-smt01~ap.md) - Manufacturer Part Number: U.FL-R-SMT(01) - Manufacturer Name: Hirose Electric Co Ltd - Role: RF Connector - Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/2607/UFL%20Series.pdf - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Role Details: 50Ω U.FL/IPEX connector for ATGM336H active GPS antenna. Pre-layout constraints: place at board edge with antenna cable exit clearance; route RF_IN as controlled 50Ω trace with continuous ground reference and via fence; no copper/noisy clocks/switch nodes under antenna/feed as practical; keep far from TPS61088/LMR33630 inductors and LED current loops. **Pins:** - GND [pin 2] - GND [pin 1] - SIG [pin 3] ### J7 — [Pin Header 01x04 2.54mm Vertical](https://www.flux.ai/adrian95/pin-header-01x04-254mm-vertical~l97.md) - Role Details: Rev A modular LED-ring connector. Required mapping: pad 1 LED_CH1_OUT, pad 2 LED_CH2_OUT, pad 3 GND, pad 4 5V_SYS. - Manufacturer Part Number: TSW-104-07-G-S - License: https://creativecommons.org/licenses/by/4.0/ - Connector Positions: 4 - Connector Pitch: 2.54mm - Part Type: Connector - Manufacturer Name: Samtec - Role: Connector **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] - Pin_4 [pin 4] ### SW1 — [FSM1LP](https://www.flux.ai/adrian95/fsm1lp.md) - Manufacturer Part Number: FSM1LP - Part Type: Electromechanical Components - Manufacturer Name: TE Connectivity - Role: Switching - License: https://creativecommons.org/licenses/by/4.0/ - Role Details: User measurement trigger button to Radxa GPIO - Datasheet URL: https://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Catalog+Section%7F1308111-1_SWITCHES_CORE_PROGRAM_CATALOG%7F0308%7Fpdf%7FEnglish%7FENG_CS_1308111-1_SWITCHES_CORE_PROGRAM_CATALOG_0308.pdf%7F1-1437565-6 **Pins:** - COM_1 [pin 1] - COM_2 [pin 2] - GND [pin 5] - NO_1 [pin 3] - NO_2 [pin 4] ### SW2 — [FSM1LP](https://www.flux.ai/adrian95/fsm1lp.md) - Part Type: Electromechanical Components - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Catalog+Section%7F1308111-1_SWITCHES_CORE_PROGRAM_CATALOG%7F0308%7Fpdf%7FEnglish%7FENG_CS_1308111-1_SWITCHES_CORE_PROGRAM_CATALOG_0308.pdf%7F1-1437565-6 - Manufacturer Name: TE Connectivity - Role Details: Safe shutdown request button to Radxa GPIO - Role: Switching - Manufacturer Part Number: FSM1LP **Pins:** - COM_1 [pin 1] - COM_2 [pin 2] - GND [pin 5] - NO_1 [pin 3] - NO_2 [pin 4] ### U1 — [MP2667](https://www.flux.ai/monolithicpower/mp2667~lwg.md) - Role: LiPo Charger / Power Path - Manufacturer Part Number: MP2667 - Product Info Url: https://www.monolithicpower.com/en/catalog/product/view/id/3391?utm_source=ultralibrarian&utm_medium=component_search&utm_campaign=listing - Manufacturer Name: Monolithic Power Systems - Package or Case Code: QFN-10_2MMx2MM_MNP - Role Details: MP2667 LiPo charger/power-path source. Pre-layout constraints: place near USB-C and battery connector; keep high-current IN/SYS/BATT paths short and wide; provide thermal copper; keep charger thermal/noise away from AS7341 optical connector; confirm charge-plus-system-load behavior during bring-up. - Product Image Url: https://www.monolithicpower.com/pub/media/catalog/product/m/p/mp2667.jpg - Datasheet URL: https://www.monolithicpower.com/en/documentview/productdocument/index/version/2/document_type/Datasheet/lang/en/sku/MP2667 **Pins:** - BATT [pin 9] - BATT [pin 8] - GND [pin 5] - IN [pin 1] - INT [pin 3] - NTC [pin 2] - SCL [pin 6] - SDA [pin 7] - SYS [pin 10] - VDD [pin 4] ### U2 — [MAX17048G+T10](https://www.flux.ai/adrian95/max17048gplust10~3vm.md) - Manufacturer Name: Analog Devices Inc./Maxim Integrated - Datasheet URL: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX17048-MAX17049.pdf - Role Details: I2C battery voltage/SOC monitor for Linux power reporting - Part Type: Integrated Circuit - License: https://creativecommons.org/licenses/by/4.0/ - Role: Fuel Gauge - Manufacturer Part Number: MAX17048G+T10 **Pins:** - ~ALERT [pin 5] - CELL [pin 2] - CTG [pin 1] - EP [pin 9] - GND [pin 4] - QSTRT [pin 6] - SCL [pin 7] - SDA [pin 8] - VDD [pin 3] ### U3 — [LMR33630BDDAR](https://www.flux.ai/lcsc/lmr33630bddar~o51d.md) - Datasheet URL: https://www.ti.com/lit/ds/symlink/lmr33630.pdf - Role: 3.3V Buck Regulator - Package or Case Code: SOIC-8_L4.9-W3.9-P1.27-LS6.0-BL-EP2.8-1 - LCSC Part Number: C544370 - Role Details: LMR33630 3.3V buck regulator. Pre-layout constraints: place L2, C10, C11, C12/C13, R7/R8, and C15 tight to U3; minimize SW loop; keep 3V3 feedback trace away from SW node; wide copper/solid ground for SYS input and 3V3_RAIL output; keep buck inductor away from GPS RF and AS7341 connector. - Part Type: DC-DC Converters - JLCPCB Part Class: Extended Part - Manufacturer Part Number: LMR33630BDDAR - Manufacturer Name: TI(德州仪器) **Pins:** - BOOT [pin 7] - EN [pin 3] - EP [pin 9] - FB [pin 5] - PG [pin 4] - PGND [pin 1] - SW [pin 8] - VCC [pin 6] - VIN [pin 2] ### U4 — [ATGM336H-5N31](https://www.flux.ai/vasy_skral/atgm336h-5n31~7zn.md) - Role Details: 3.3V UART GPS module; PPS routed to Radxa GPIO if available - Package or Case Code: ATGM336H5N31 - Manufacturer Part Number: ATGM336H-5N31 - Symbol Style: Parametric - Role: GPS Receiver - Manufacturer Name: ZHONGKEWEI - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://datasheet.lcsc.com/szlcsc/ZHONGKEWEI-ATGM336H-5N31_C90770.pdf - Part Type: Module **Pins:** - 1PPS [pin 4] - GND_1 [pin 1] - GND_2 [pin 10] - GND_3 [pin 12] - NC_1 [pin 7] - NC_2 [pin 13] - NRESET [pin 9] - ON/OFF [pin 5] - RESERVED_1 [pin 15] - RESERVED_2 [pin 18] - RF_IN [pin 11] - RXD [pin 3] - SCL [pin 17] - SDA [pin 16] - TXD [pin 2] - VBAT [pin 6] - VCC [pin 8] - VCC_RF [pin 14] ### U5 — [Adafruit SPI TFT LCD Display Touch ILI9341](https://www.flux.ai/jharwinbarrozo/adafruit-spi-tft-lcd-display-touch-ili9341~sh9.md) - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: Adafruit ILI9341 - Manufacturer Name: Adafruit Industries - Datasheet URL: https://cdn-shop.adafruit.com/datasheets/ILI9341.pdf - Role Details: User display and touch input; SPI plus GPIO chip-select/data-control/backlight - Role: SPI TFT Touchscreen - Part Type: Display Device **Pins:** - CS [pin 12] - D/C [pin 10] - GND [pin 13] - LED [pin 7] - MISO [pin 6] - MOSI [pin 9] - RESET [pin 11] - SCK [pin 8] - SD_CS [pin SD4] - SD_MISO [pin SD2] - SD_MOSI [pin SD3] - SD_SCK [pin SD1] - T_CLK [pin 5] - T_CS [pin 4] - T_DIN [pin 3] - T_DO [pin 2] - T_IRQ [pin 1] - VCC [pin 14] ### U6 — [TPS92620QDRRRQ1](https://www.flux.ai/adrian95/tps92620qdrrrq1~4zx.md) - License: https://creativecommons.org/licenses/by/4.0/ - Role Details: TPS92620 dual LED-ring driver. Pre-layout constraints: keep LED output/current-sense loops compact; route LED current path and returns with adequate width for optical-head test current; keep LED return current out of AS7341/I2C ground reference; place R12/R13 close to U6 sense pins; keep PWM/control away from boost SW and RF feed. - Manufacturer Part Number: TPS92620QDRRRQ1 - Role: LED Ring Driver - Datasheet URL: https://www.ti.com/lit/ds/symlink/tps92620-q1.pdf - Part Type: Integrated Circuit - Manufacturer Name: Texas Instruments **Pins:** - DIAGEN [pin 4] - EP [pin 13] - FAULT [pin 7] - GND [pin 8] - IN1 [pin 2] - IN2 [pin 3] - OUT1 [pin 11] - OUT2 [pin 9] - PWM1 [pin 5] - PWM2 [pin 6] - RES1 [pin 12] - RES2 [pin 10] - SUPPLY [pin 1] ### U7 — [TPS61088RHLR](https://www.flux.ai/adrian95/tps61088rhlr~mim.md) - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: Texas Instruments Inc. - Role: Power Conversion - Symbol Style: parametric-v1 - Datasheet URL: https://www.ti.com/lit/ds/symlink/tps61088.pdf - Role Details: TPS61088 5V boost converter for Radxa/5V_SYS. Pre-layout constraints: place U7, L1, input caps, output caps, R5/R6 feedback, R10 ILIM, R11/C16 COMP, and C14 SS as a tight power cell; keep SW copper short and away from GPS RF/AS7341; use wide copper for SYS/VIN, SW, VOUT/5V_SYS, and GND return; stitch exposed pad to solid ground/thermal copper; do not route signals under inductor/SW node; verify thermal/current density before routing release. - Part Type: Integrated Circuit - Manufacturer Part Number: TPS61088RHLR **Pins:** - AGND [pin 20] - BOOT [pin 8] - COMP [pin 18] - EN [pin 2] - FB [pin 17] - FSW [pin 3] - ILIM [pin 19] - MODE [pin 13] - NC_1 [pin 11] - NC_2 [pin 12] - PGND [pin 21] - SS [pin 10] - SW_1 [pin 4] - SW_2 [pin 5] - SW_3 [pin 6] - SW_4 [pin 7] - VCC [pin 1] - VIN [pin 9] - VOUT_1 [pin 14] - VOUT_2 [pin 15] - VOUT_3 [pin 16] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/nasem007/ai-spectral-reflectance-analyzer~oc](https://www.flux.ai/nasem007/ai-spectral-reflectance-analyzer~oc).* --- *Generated from [https://www.flux.ai/nasem007/ai-spectral-reflectance-analyzer~oc](https://www.flux.ai/nasem007/ai-spectral-reflectance-analyzer~oc)*