Data Sheet

5 MGSWxxxx Magnetic Sensor Datasheet Version 1.2 March 28, 2018
Powering the sensor
Apply a 4.5V to 30V Max voltage between the ground, and the power input pins. The sensor will also be powered
if it is connected to a PC via the USB connector.
RS232 Connection
Serial communication with the sensor is done using the RxData and TxData signals. The ground pin must be
connected in order to provide a reference to the RxData and TxData signal.
PWM Output
The PWM Output is always active. In default configuration, multiple pulses of variable width are used to carry
all sensor information, including tape detect and marker position, to the motor controllers. Also, the output
can be configured to carry the tape position by varying the duty cycle of a single, continuous pulse from 50%,
when the tape is centered, to 25% and 75% duty cycle when the tape is at one end or the other of the sen-
sor. The PWM output is centered at 50% when no tape is detected. Additionally the output can be configured
as the tape detect output so that the sensor is always on when tape detected and always off when no tape is
detected. Finally the output can be configured as Tape and Marker Detect, as seen on Table 3, below.
TABLE 3.
Right Marker Left Marker Tape Detect Pulse On Period
0 0 0 0ms
0 0 1 250ms
0 1 0 500ms
0 1 1 750ms
1 0 0 1000ms
1 0 1 1250ms
1 1 0 1500ms
1 1 1 1750ms
Analog Output
The Analog Output is always active and will give the tape position by varying the voltage from 1.50V, when
the tape is centered, to 0 and 3V when the tape is at one end of the sensor or the other. The Analog output is
centered at 1.50V when no tape is detected. The output can also be configured as tape detect output (3Volts
when tape detected, 0 Volts when no tape detected). Finally the output can be configured as Tape and Marker
Detect, as seen on Table 4, below.
TABLE 4.
Right Marker Left Marker Tape Detect Voltage Level
0 0 0 0Volts
0 0 1 0.4Volts
0 1 0 0.8Volts
0 1 1 1.2Volts
1 0 0 1.6Volts
1 0 1 2Volts
1 1 0 2.4Volts
1 1 1 2.8Volts