Chat

Welcome to Flux

Treat Flux like your intern. Tell it what you'd like to build and it'll get to work. You can also ask it questions, brainstorm ideas, and teach it your preferences. Learn More

Explain project
Write a project description
Find schematic issues
Create a test plan
Simulate a circuit
Prepare for Manufacturing
Component Selection Workflow
New Subsystem Wizard
Write I2C initialization code
Generate firmware skeleton

Refine this doc
Ask about this doc
Project Specification
Design Summary
Status: Draft
Manufacturing target: Prototype
Software / firmware: TBD

Scope
Purpose
Integrate an STM32L433 microcontroller into the existing NewFEEDER design so it can control and communicate with the Blues cellular modem card installed through the existing M.2 connector. This revision adds the MCU, its 3.3 V support circuitry, debug access, clocking, reset network, the required host interface wiring, and a combined 8-pin external connector that carries the external SPI camera interface for an Arducam Mega 3MP NoIR module plus the switched 3.3 V feed for an external Dorhea 850 nm IR illuminator, while preserving the existing 12 V input and 5 V modem power architecture on the 127 mm x 127 mm 4-layer layout.
In scope
  • STM32L433 microcontroller selection and integration
  • 3.3 V rail generation for the MCU and support circuitry
  • Reset, clock, decoupling, boot configuration, and SWD debug interface for the MCU
  • Wiring the required host UART and control signals between the MCU and the Blues modem connector
  • Integration of an external SPI Arducam Mega 3MP NoIR camera and an external Dorhea 850 nm IR illuminator through one board-mounted 8-pin JST XH connector
  • Integration of an MCU-controlled switched 3.3 V path for the IR illuminator on that combined connector
  • Integration of a dedicated 4-wire external illuminated pushbutton connector with one STM32 GPIO for button input and one STM32 GPIO for LED control
  • Board-level metadata and architecture updates for the MCU plus modem control subsystem
Out of scope
  • Battery charging, fuel gauging, or chemistry-specific charge management
  • Full breakout of every unused modem connector signal not required for host control

System context
This board hosts a Blues cellular modem card through an M.2 connector and now requires a local STM32L433 host MCU to supervise and communicate with that modem, while also supporting an external Arducam Mega 3MP NoIR SPI camera and an external Dorhea 850 nm IR illuminator through a single JST XH 8-pin board connector. The power tree is external battery -> barrel jack -> reverse-polarity protection -> TVS clamp -> 5 V buck regulator -> modem supply, plus a local 3.3 V rail for the STM32L433, camera interface, IR illuminator switch stage, and associated support circuits.
Key interfaces
  • External 12 V battery input through barrel connector
  • 5 V regulated modem supply delivered to the Blues M.2 connector
  • 3.3 V regulated rail for the STM32L433 domain and the combined external camera / IR connector
  • Switched 3.3 V rail for the IR power pin on the combined external connector
  • STM32L433 Blues modem host interface over UART plus required control/status lines
  • STM32L433 Arducam Mega camera interface over SPI plus dedicated chip select
  • STM32L433 GPIO-controlled enable for the external IR illuminator high-side switch
  • STM32L433 active-low external pushbutton input on PC13 and low-side LED control output on PB13 through a dedicated 4-wire connector
  • SWD debug header for programming and debug access
Architecture

Diagram


12V Battery Locking Barrel Jack Reverse Polarity and TVS 5V Buck Regulator 5V Rail 3.3V Regulator STM32L433 MCU Combined Camera and IR Connector IR High Side Switch SWD Debug Header M2 Modem Connector CN1

Requirements
Functional
  • The board shall accept external power from a 12 V LiPo or NiCad battery pack using a barrel connector.
  • The board shall generate a regulated 5 V rail dedicated to the Blues modem input.
  • The board shall generate a regulated 3.3 V rail for the STM32L433 domain.
  • The board shall route the 5 V rail to the existing M.2 connector used by the Blues modem card.
  • The board shall provide a reliable host MCU interface between the STM32L433 and the Blues modem connector.
  • The board shall provide a combined 8-pin external board connector for the Arducam Mega 3MP NoIR SPI camera module and the Dorhea 850 nm IR illuminator module.
  • The board shall switch the IR illuminator 3.3 V supply from an MCU GPIO so the illuminator can be disabled during sleep.
Electrical
  • Input power: nominal 12 V battery source
  • Key rails: protected battery input rail, regulated 5 V modem rail, regulated 3.3 V MCU rail, and a switched 3.3 V IR illuminator rail
  • Modem rail must support cellular burst current with design margin; target regulator capability is 3 A
  • The MCU domain shall run at 3.3 V and only connect to modem signals with compatible logic levels
  • The camera interface shall use SPI-compatible 3.3 V logic levels and a power rail capable of supporting up to 317 mA camera working current
  • The combined external connector shall expose this pinout: pin 1 = GND, pin 2 = 3V3_MCU, pin 3 = CAM_SCLK, pin 4 = CAM_MISO, pin 5 = CAM_MOSI, pin 6 = CAM_CS, pin 7 = IR_ILLUM_3V3_SW, pin 8 = GND
  • The IR illuminator switched path shall default OFF when the MCU GPIO is high-impedance during reset or sleep
  • External power input shall include reverse-polarity protection and transient suppression
  • The board shall provide a dedicated 4-wire connector for the external illuminated pushbutton with pin 1 = GND, pin 2 = VIN_12V LED supply, pin 3 = button sense, and pin 4 = LED switched return
  • The external pushbutton input shall connect to STM32L433 PC13 through a pull-up, RC filtering, and connector-side ESD protection
  • The external pushbutton LED shall be controlled from STM32L433 PB13 through a board-side low-side MOSFET with a default-OFF pull-down at reset
Mechanical / environmental
  • Board size is fixed at 127 mm x 127 mm
  • Stackup is fixed at standard 4 layer
  • CN1 is already placed near the lower board edge
  • Power input connector must support board-edge access and not interfere with corner mounting holes
  • The SWD/debug connector should be reachable from a board edge for programming access

Key constraints
  • Prefer readily sourceable library parts and mechanically robust connector choices
  • Use a switching regulator, not an LDO, because 12 V to 5 V conversion at modem current would dissipate excessive heat linearly
  • Keep power loop area small around the buck regulator and reserve short, wide paths for modem power delivery
  • Keep the camera connector in the 3.3 V logic domain to avoid level shifting between the STM32L433 and the external SPI camera module
  • Use a high-side switched 3.3 V path for the IR illuminator so the module is not back-powered through its ground return and can be fully disabled in sleep

Dependencies and risks
Dependencies
  • Final verification of Blues modem host UART and control pin mapping from modem documentation
  • Availability of a suitable STM32L433 library part and a compatible SWD header in the library
  • Physical cable / mating harness definition for the combined external camera + IR module assembly
Key risks
  • Cellular burst current can cause brownout if the 5 V regulator and output bulk capacitance are undersized
  • Incorrect modem host pin mapping could prevent modem bring-up or firmware control
  • Logic-level mismatch between 3.3 V MCU I/O and any modem-side pins could damage the MCU or cause unreliable operation
  • External battery input can be reverse-connected or expose the board to cable transients
  • External camera cable attachment increases risk of ESD coupling on the SPI lines unless protected in a future refinement
  • External IR cable attachment can inject transients onto the switched 3.3 V rail unless the connector-side TVS and local decoupling are kept in the design

Validation
Success criteria
  • Schematic includes the STM32L433 MCU and required support circuitry
  • Schematic includes a complete 3.3 V MCU supply path and debug access
  • Required host interface signals are wired between the MCU and the modem connector
  • Combined external camera + IR connector is wired so the camera retains its dedicated SPI interface and 3.3 V power while the IR module receives a separate switched 3.3 V feed with default-off behavior
  • Design remains consistent with the existing 127 mm x 127 mm 4-layer board and connector placement intent
Planned checks
  • Verify M.2 modem host signal mapping against Blues documentation
  • Review schematic connectivity and floating pins after modifications
  • Review MCU decoupling, reset, clock, and SWD connectivity against STM32 documentation
  • Review 3.3 V and 5 V power-path integrity and PCB placement constraints
  • Verify combined connector pinout, available 3.3 V rail capacity, switched-rail labeling, and default-off gate bias before production release

Release-facing notes
Expected deliverables
  • Updated schematic
  • Updated layout constraints and placement intent notes
  • BOM entries for the MCU support subsystem and any new debug/power parts
Special release notes
  • If a true locking barrel jack is unavailable in the library, use the closest mechanically robust board-edge barrel jack and document the intended locking family for later substitution
  • External camera + IR connector is currently assigned as a JST XH 8-pin board header compatible with an 8-position JST XH cable assembly

Change notes / open questions
Changes in this revision
  • Added requirement for STM32L433 host MCU integration
  • Added dedicated 3.3 V MCU power architecture
  • Added modem host-interface requirement between MCU and CN1
  • Added dedicated USB Type-C field firmware-update interface for STM32 USB DFU
  • Added explicit requirement that USB VBUS remain isolated from VIN_12V and 5V_MODEM so the board cannot be unintentionally bench-powered from the update connector
  • Added combined external camera + IR connector requirement with preserved camera SPI nets, dedicated camera 3.3 V power, and MCU-controlled switched IR 3.3 V power path
  • Added dedicated external illuminated pushbutton interface requirement using PC13 for button input and PB13 for LED control on a new 4-wire connector
Open questions
  • Confirm exact Blues modem host UART and control pin mapping from the modem documentation
  • Confirm whether external HSE crystal is required by firmware, or if the internal oscillator is acceptable
  • Confirm whether additional ESD or series damping is desired on the external camera SPI harness
  • Confirm the final external cable assembly used for the combined camera + IR harness
  • Confirm whether the VIN_12V-driven illumination level is acceptable for the selected 24 V pushbutton LED variant, or if a later dedicated 24 V LED supply is needed
USB field-update addendum
Purpose
Provide a simple field firmware update interface for the STM32L433 using native USB FS DFU while preserving the established board power architecture.
Implementation constraints
  • USB connector is for firmware update only, not normal board power input.
  • USB data lines shall connect only to STM32L433 PA11 and PA12 through ESD protection.
  • USB VBUS shall remain local to the connector and protection network and shall not feed VIN_12V, 5V_MODEM, or 3V3_MCU.
  • USB ground shall connect to board ground.
  • Existing SWD header remains available and unmodified.
Added circuit elements
  • USB Type-C receptacle with CC1 and CC2 pull-down resistors for USB device role.
  • ESD protection for USB D+ and D-.
  • Small local VBUS capacitor only for connector-side transient filtering.
  • Design Summary

  • Scope

  • System context

  • Requirements

  • Functional

  • Electrical

  • Mechanical / environmental

  • Key constraints

  • Dependencies and risks

  • Validation

  • Release-facing notes

  • Change notes / open questions

  • USB field-update addendum

Assets

kicad_mod

MDT420E01001 / Blues Notecard M.2 Key E footprint

J-75-0050-MOS-M2-E.kicad_modFootprint
kicad_mod

Corrected 2.7mm NPTH footprint for Würth 9774025151R / MH1 standoff

FORO-0270-U.kicad_modFootprint
FeederPilot_May262026 thumbnail
DeerFeeder controller with cellular connectity and sensors

Properties

Pricing & Availability

Distributor

Qty 1

Arrow

$20.66–$33.49

Digi-Key

$36.63–$42.87

HQonline

$8.38–$8.58

LCSC

$39.89–$41.47

Mouser

$72.52–$73.03

TME

$14.63–$14.78

Verical

$12.15–$451.86

Controls