Standard Slide or Flip Phone ConfigurationIn a standard configuration, a single Hall-effect IC and button magnet can be used to sense the open and closed positions.
In the closed position, the Hall IC, for example H as shown in figure 2A, is aligned with a simple button magnet, marked with its north (N) and south (S) poles. In this position, the Hall sensor IC output is latched in the on state, because the magnetic flux density is larger than the magnetic operate point of the device. In the open position (figure 2B), however, the magnetic field is sufficiently weak that the Hall sensor IC output is off. This simple technique is widely employed in both slide and flip phones.
Using an omnipolar IC switch promotes ease of manufacturing, because the magnet can be inserted without concern about which pole is facing the Hall sensor IC—either the north or the south pole can be used to activate the IC switch. In the figure 2 example, the south pole is activating pole, as it is placed nearest the Hall sensor IC, but with an omnipolar sensor IC, placing the north pole on that side would work equally well.
Figure 2. Hall-Effect Sensor IC and Magnet Positions on a Standard Slide Phone
Figures 3 and 4 compare the transfer functions of an omnipolar switch (figure 3) to the well-known unipolar switch (figure 4). In both figures, the vertical axes are the output voltage response of the IC to an impinging magnetic field. Along the horizontal axes, increasing north polarity magnetic flux (increasing B–), increasing south polarity magnetic flux (increasing B+), and neutral polarity (B = 0) are shown.
Figure 4. Transfer Functions for Unipolar Hall-Effect IC Switches
(A) magnetic flux effect on a north-polarity–activated switch, and (B) on a south-polarity–activated switch
Dual-Mode IC SwitchesFigure 5 shows a simple block diagram of the A1171 dual-mode switch. The term dual-mode refers to the A1171 capability of operating either as an omnipolar switch or as a pair of unipolar switches. The A1171 works at battery voltages as low as 1.65 V, allowing its use in phones and PDAs with the latest single-cell Lithium batteries. It also has push-pull outputs to eliminate the need for external pull-up resistors.
Figure 5. Functional Block Diagram of the Allegro A1171 Omnipolar IC Switch
The state of the SELECT pin determines the mode of operation for the A1171. When the pin is floated or tied to VCC, the part operates in omnipolar mode, as in figure 3. When the pin is grounded, the A1171 operates in a unipolar mode, as in figure 4. Notice that in omnipolar mode (figure 3) the separate outputs are complementary, while in unipolar mode (figure 4) the separate outputs are south- or north-pole activated switches.
By using both outputs in unipolar mode, and orienting the sensed magnet, the A1171 can be used to sense three positions, supporting the broader range of articulating positions required in multipurpose phone applications. In unipolar mode, the VOUTPS pin is the output of a south-polarity–activated switch, and the VOUTPN pin is output of a north-polarity–activated switch.
Multipurpose Multiposition ApplicationsA multipurpose application is illustrated in figure 6. When the phone is fully closed (figure 6A), such as in MP3 applications, the south pole of the magnet is opposite the Hall sensor IC. The output of the A1171 is VOUTPS low and VOUTPN high, corresponding to the B+ side of figures 4A and 4B.
In the slide-open position, used for the phone application (figure 6B), the Hall sensor IC is dominated by a north polarity field, and VOUTPN is low, while VOUTPS is high, corresponding to the B– side of figures 4A and 4B. Finally, in the rotate-open position, for texting or PDA use on a full keyboard (figure 6C), neither switch is subjected to a significant magnetic field, and both outputs are high (B = 0 in figures 4A and 4B).
Figure 6. Multipurpose Application for Sliding and Rotating Phones
The Output Truth Table summarizes all three phone positions and the resulting output states. This technique can be applied to rotating or sliding phones if mechanical placement and the sensing magnet are optimized.
SummaryThis note has described how to use an advanced Hall-effect sensor IC, the Allegro A1171, to sense two separate positions in omnipolar operating mode, and to sense three positions by enabling unipolar operation. These ICs allow improvements in manufacturing cost and application footprint, because three positions can be sensed using only one magnet and one Hall device. Guidance was also provided on using one of the omnipolar outputs or both of the unipolar outputs of the IC: VOUTPS and VOUTPN, as well as selecting the operating mode by using the SELECT input. The A1171 is ideally suited for position sensing in simple slide or flip phones as well as in three-position sensing for multipurpose slide or rotating applications.