Quick start with FG401MA using the analog interface¶
The device automatically detects the type of the connected interface and adjusts its behavior accordingly, no configuration is required.
RCPWM control¶
Connect the source of the RCPWM signal and a 5~30 V power supply to the analog interface input of FG401MA. The RCPWM signal can be generated using an ordinary lab function generator, a servo tester, or with a trivial Arduino sketch.
Supply RCPWM pulse duration of about 1.8 ms to turn the magnet on. A pulse duration of about 1.0 ms will turn the magnet off. To force magnetization even if the magnet is already on, send pulses of about 2.3 ms. For the additional information, refer to RCPWM control.
If the RCPWM input pin is left floating, the magnet will remain in the current state.
Voltage level control¶
Connect the source of the voltage level signal and a 5~30 V power supply to the analog interface input of FG401MA. The voltage level signal can be generated using an ordinary lab function generator, a potentiometer, or two Arduino digital outputs connected via resistors (similar to a 2-bit R2R ladder DAC).
Supply a voltage of about 3.3 V to turn the magnet on. A voltage less than 0.8 V will turn the magnet off. To force magnetization even if the magnet is already on, supply a voltage greater than 4.4 V. For the additional information, refer to Voltage level control.
If the voltage input pin is left floating, the magnet will remain in the current state.
State feedback¶
The magnet state feedback is provided on the same pin by setting the internal 5.1 kΩ pull resistor to 3.3 V when the device is magnetized and grounding it when demagnetized. If the current state is not yet known, the pull resistor is driven to 1.65 V.
To read the feedback state, temporarily disconnect the signal source and measure the voltage at the pin.