Skip to main content

Sensor Wiring

This page covers the electrical interface of the FG-3+, FG-3C, and FG-4 sensors — including output types, supply requirements, and wiring recommendations.


Sensor Comparison

SensorAxesOutput TypeSupply VoltageTypical Integration
FG-3+15 V rectangular pulse (frequency)5 V regulatedFrequency counting on MCU or Converter Board → ADC
FG-3C1UART / Analog / PWM (selectable)5 V regulatedUART RX on MCU, analog input, or DAQ
FG-435 V rectangular pulse (frequency) per axis5 V regulatedFrequency counting (3 channels) on MCU

FG-3+

The FG-3+ outputs a 5 V rectangular pulse whose period is proportional to the magnetic field strength along the sensor axis. Higher field strength along the sensitive axis results in a shorter pulse period.

Wiring

The FG-3+ connects via a 3-wire interface:

ConnectionDescription
VCC5 V regulated power supply
GNDSignal and power ground
OUT5 V pulse output — connect to MCU timer/counter input
Connector Numbering

Exact connector pin numbering is not documented publicly. Refer to the label or silkscreen on your specific sensor unit for VCC / GND / OUT identification.

Practical Notes

  • Frequency counting: The MCU must measure the period of the incoming pulse using a timer in input-capture mode, or by counting transitions. Do not use simple digitalRead() polling for accurate results.
  • Level shifting: The output is 5 V logic. If your MCU operates at 3.3 V (e.g., ESP32, Arduino Due), use a resistive voltage divider or a dedicated level shifter on the OUT line.
  • Cable length: For longer cable runs, use shielded cable to reduce picked-up interference. Connect the shield to GND at one end only.
  • Power decoupling: Place a 100 nF ceramic capacitor close to the sensor VCC pin to suppress supply noise.

FG-3C

The FG-3C is a 1-axis fluxgate magnetometer with a configurable output mode. The output mode is selected by the pin configuration at startup.

Output Modes

ModeOutputNotes
UARTDigital serial text at 115200 baudField value in nT as ASCII text
AnalogVoltage proportional to fieldSuitable for ADC or oscilloscope
PWMPWM duty cycle proportional to fieldSuitable for simple MCU capture

Documented Pinout

PinFunction
1VCC (5 V regulated)
2GND
3Mode select / Analog output
4UART TX (in UART mode) / PWM output
5Mode select
note

Pin functions for non-UART modes are not fully documented publicly. Refer to the FG-3C datasheet or contact FG Sensors for the complete configuration table.

UART Mode Wiring

Connect Pin 4 (UART TX) of the FG-3C to the RX pin of your MCU or USB-UART bridge.

FG-3C Pin 4 (TX) ──────► MCU RX
FG-3C Pin 1 (VCC) ─────► 5 V
FG-3C Pin 2 (GND) ─────► GND
  • Baud rate: 115200
  • Data: 8N1
  • Output: ASCII text, field value in nT
Level Shifting

Pin 4 is a 5 V UART signal. Connect to a 3.3 V MCU only through a level shifter or voltage divider.


FG-4

The FG-4 is a 3-axis fluxgate magnetometer that provides three independent frequency-output channels — one per axis (X, Y, Z).

Pin Functions

PinFunction
VCC5 V regulated power supply
GNDGround
OUT_XFrequency pulse output, X axis
OUT_YFrequency pulse output, Y axis
OUT_ZFrequency pulse output, Z axis
note

Exact connector numbering and additional pin details are not documented publicly. Refer to the label on your sensor unit or the FG-4 datasheet.

Practical Notes

  • Three independent timer/counter channels are required on the MCU — one per axis
  • All three outputs are 5 V logic; apply level shifting for 3.3 V systems
  • The three axes are orthogonal and factory-aligned — do not rotate the sensor body relative to the measurement frame
  • Power supply must be clean and regulated; all three axes share a common supply

General Wiring Best Practices

tip
  • Always use a regulated 5 V supply — sensor accuracy is affected by supply noise
  • Keep sensor wiring away from high-current traces or switching regulators
  • For multi-sensor systems (gradiometers), use separate shielded cables for each sensor and ensure a common GND reference
  • Label all sensor cables at both ends to avoid axis confusion in multi-axis or multi-sensor setups