M5Stack Unit Earth Pinout

Unit Earth provides a raw analog reading and an independently adjusted digital threshold output on PORT.B.

Main pinout

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show signal routes

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

4 visible
PinMCU pinTypesNotes
GNDCommon ground and host signal reference.
PowerNominal 5 V power input from the host.
DigitalSwitching output for a digital input on the host.
AnalogRaw probe voltage for the host ADC.

Specifications

Model
Unit Earth · U019
Sensor
Two resistive soil-moisture electrodes
Connector
PORT.B · HY2.0-4P · 2 mm pitch
Supply
5 V nominal at J1 pin 3 · internal 3.3 V rail
Analog output
Raw probe-divider voltage for a host ADC
Digital output
LM393DR2G open collector · onboard 10 kΩ pull-up to 3.3 V
Threshold
10 kΩ trimmer sets the comparator reference
Overall size
64.3 × 24.0 × 8.0 mm

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
U019Product documentationM5StackPhotos, cable colors and mechanical dimensions.Datasheet
Unit Earth V1.0SchematicM5StackJ1 numbering, probe divider, comparator and regulator.Datasheet
LM393DR2GComparator datasheetonsemiInput stages and open-collector output.Datasheet
EARTH.inoOriginal M5Core Arduino exampleM5StackReads analog GPIO36 and digital GPIO26.Datasheet

Board notes

Read both outputs
Wire A.OUT to an ADC input and D.OUT to a digital input. The original M5Core example reads these on GPIO36 and GPIO26, respectively.
Connector orientation
With the trimmer facing you, probes up and the socket down, read GND, 5V, D.OUT and A.OUT from left to right. Pin 1 is at the right edge of the contact row, in shadow in the main photo.
Probe circuit
The V1.0 schematic places the probe resistance between Ain and ground. Lower resistance pulls the analog voltage down. Calibrate ADC readings with the actual soil and installation. M5Stack specifies the exposed electrodes for short proof-of-concept use.
Revision evidence
The published circuit is revision V1.0. The enclosed PCB revision is unconfirmed in the photographs.