Escolar Documentos
Profissional Documentos
Cultura Documentos
com
Document: Datasheet
Date: 6-Jun-12
Model #: 1172
Features
Fast response time / Simple 5V Supply & Interface Serial Data output at 9600 bps Atmospheric Pressure from 300-1100 milibars Realtime Magnetic Compass Data Temperature from -20 deg C to +60 deg C Altitude above sea level output
Applications
Navigation Systems, Automatic Direction Finding Robots Digital Electronic Compass Design Weather Stations / Environment Monitoring Environment Surveillance Position Sensing / Vehicle Detection
Specification
Parameter Supply Voltage Supply Current Temperature Range Pressure Range Magnetic Field Range Pin +5V DC 20 mA -20 to + 60 deg C 300-1100 milibars +/- 2 guass Notes Supply voltage greater than +5.5V will damage the sensor Degree Celsius
Magnetic Compass part is made by use of Memsic MMC2120MG magnetometer chip. Details about the IC and its application notes can be found here http://www.sunrom.com/files/1172-compass.zip
Sunrom Technologies
Visit us at www.sunrom.com
Module Connections
Pin# 1 2 3 Pin GND TXD +5V Name Ground TRANSMITUART +5V DC Supply Type I/O Ground Output 5V level Positive Supply Details Power Supply Ground Serial Data of 9600 bps, 8 bit data, no parity, 1 stop bit Power Supply Positive
Output from sensor is Serial Data at 9600 bps at 5V level. You can also use the serial data to interface to PC using MAX232 level convertor for serial port or use USB-TTL chip to get a virtual serial port on PC to which many software like Hyperterminal can be connected. Custom software can also be made to monitor the incoming data. You can also use serial interface directly with a microcontroller when you have a dedicated serial input pin available on your application to get the data for display or processing.
Sunrom Technologies
Visit us at www.sunrom.com
Terminal software
We recommend this software which can be used two receive serial data for testing purpose on PC side. Download it from http://www.sunrom.com/files/Terminal.exe
Receive Window
Sunrom Technologies
Visit us at www.sunrom.com
1 2 3
VCC GND
+5V
15
RS232 INTERFACING
+5V http://www.sunrom.com/p-245.html
USB INTERFACING
Sunrom Technologies
3 2 1
1 2 3
http://www.sunrom.com/p-244.html
Visit us at www.sunrom.com
Interfacing to MCU
AT89S52s RXD pin is used to receive serial data from sensor. You can use any microcontroller to interface using this interface. We have chosen AT89S52 to show here since it is more widely used but can be any 8051 MCU or other MCU. The interfacing with microcontroller is show shown below, The sensor level is 5V data so directly connected to Microcontroller RXD pin.
VCC
U2 AT89S52 39 38 37 36 35 34 33 32 1 2 3 4 5 6 7 8 VCC + C8 10uF 16V R1 10K 31 P0.0/AD0 P0.1/AD1 P0.2/AD2 P0.3/AD3 P0.4/AD4 P0.5/AD5 P0.6/AD6 P0.7/AD7 P1.0/T2 P1.1/T2EX P1.2 P1.3 P1.4/SS P1.5/MOSI P1.6/MISO P1.7/SCK EA/VPP
VCC XTAL1
40
20
19
C9 33p
11.0592
Dimensions in mm
Sunrom Technologies
Visit us at www.sunrom.com