Short answer: this design conditions a sensor signal with the MAX40005 and reads it on the MCU.
From the schematic:
Sensor input path:
The soil probe connects at the IN net portal, then through R5 to the nano-power amplifier/comparator IC1 input (Net 22 → IC1:IN).
The amplifier’s output (IC1:OUT) is on Net 17, which goes to the MCU’s PA8 pin on U2. C3 is tied to that path (to OUT and GND) to filter noise.
C4 provides local rail decoupling for the analog stage.
What this implies functionally:
The soil probe changes its electrical characteristics with moisture (typically resistance or conductivity). That varying signal is presented through R5 into IC1.
IC1 conditions it and produces a clean logic/analog level the MCU can read on PA8. With suitable firmware, PA8 can:
Use a digital threshold (treat IC1 as a comparator) for wet/dry or multi-level thresholding.
Or sample as an analog input (if PA8 is configured as ADC on L0 variant) for quasi-analog moisture level, depending on MCU pin capabilities chosen in firmware.
Important caveats:
I do not see an explicit AC excitation or true resistive bridge that is common for corrosion-free soil sensing. As-is, this likely uses a simple DC-based measurement, which can work but may cause probe electrolysis over time.
There is no obvious sensor connector net labeled specifically for a two-electrode probe except the IN line plus GND. That suggests a single-ended measurement versus ground.
If you share how your probe is connected (two-wire resistive vs. capacitive pad), I can recommend:
For resistive probes: low-duty-cycle AC excitation via GPIO and measure with an RC/ADC method to reduce electrolysis, plus input protection.
For capacitive probes: drive an excitation signal and measure amplitude/phase or frequency using a timer/capture pin, or add a simple relaxation oscillator front end.
Would you like me to propose a concrete sensing front end and firmware readout approach for your specific probe type?
J1 is a connector, with the specific model being FTSH-105-01-L-DV-007-K, which is manufactured by Analog Devices. Connectors are hardware interfaces used for linking various electronic components together, providing the ability for electric current to flow between different regions of a circuit.
In the context of this project, J1 plays a vital role in enabling various functionalities. It has several pin connections, each with a specific role. Here are key pins and their functionalities:
Pins 1, 3, 5 are all tied to the main power rail 3V3, supplying the board and its components with the required power. Pin 1 is "VTref" (voltage reference), which indicates this pin might be used for setting a reference voltage for the system.
Pin 2 ("SWDIO/TMS") and Pin 4 ("SWDCLK/TCK") are connected to the SWDIO and SWCLK nets respectively. These are most likely used for Serial Wire Debug (SWD) interface which is used for debugging and programming the microcontroller (U2: STM32L031G6U6S).
Pin 10 ("RESET") is tied to the "RST" net, which typically would be used to reset the microcontroller or another digital system.
Pin 8 is named "NC/TDI", where NC usually denotes 'Not Connected', and TDI stands for "Test Data In" used in JTAG interface but since it's labeled as 'NC', it might not be used in this context.
Pin 6 ("SWO/TDO") could be used for Serial Wire Output or Test Data Output, both of which are used for debugging purposes.
Pin 9 ("GNDDetect") is likely tied to ground.
Please note that true functionality might depend on the overall system design and implementation.
Wirelessly connects nets on schematic. Used to organize schematics and separate functional blocks. To wirelessly connect net portals, give them same designator. #portal
Wirelessly connects power nets on schematic. Identical to the net portal, but with a power symbol. Used to organize schematics and separate functional blocks. To wirelessly connect power net portals, give them the same designator. #portal #power
This is a LoRa soil monitor Reference Design. It uses a STM32L031G6U6S microcontroller and a RFM95W-915S2 LoRa transceiver, integrated with sensor interfacing and LED indicators. Communication occurs via USART and SPI. The system is powered using a battery.
#referenceDesign#simple-embedded #stm#template#reference-design
aneraovd
aneraovd
copilot
RESET") is tied to the "RST" net, which typically would be used to reset the microcontroller or another digital system.