News Arduino
- ajay_bhargav
- Thu Mar 08 2012, 11:21 am
A simple digital compass can be made using cmp03 compass sensor interfacing Arduino and output can be displayed on 16*2 lcd. Thanks to Santosh Mishra for submitting this project and making a valuable contribution.
Parts Needed
arduino board ,16*2 lcd ,cmp03 compass sensor ,general purpose pcb,wires solder iron,comb connectors etc
Arduino Board
Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. you can make you own Arduino Board see the links below
Make Your Own Arduino
Pinguino, PIC Based Arduino Clone
Boarduino, Solderless Breadboard Arduino Clone
Compass Sensor(cmp03)
The compass uses the Philips KMZ51 magnetic field sensor, which is sensitive enough to detect the Earths magnetic field. The output from two of them mounted at right angles to each other is used to compute the direction of the horizontal component of the Earths magnetic
field.see data sheet for detail
LCD
a general type 16*2 lcd is used
Schematic Diagram and Explanation of it
Detailed Schematic coming soon in download section
The Arduino uses 7bit I2C addresses, and our own documentation uses 8bit addresses. For example our CMPS03 is at address 0xc0, but on the Arduino you will use 0x60. The Arduino address is the same as our address, but shifted right by 1 bit. The binary of 0xC0 is 11000000, the binary of 0x60 is 01100000.
The Arduino will shift this left by 1bit and add the Read/Write bit automatically. This uses the I2C bus to connect the Arduino to the CMPS03. It reads the bearing as a two byte integer and displays the bearing as a number 0-359 on 16*2 lcd .
connection of circuit diagram is easy scl(2) and sda(3) is pulled up using 4.7 kohm resiters and scl is connected to anolog in A5 pin of arduino and sda is connected to anologue in A4 of arduino.LCD
connections are 4,6 and 11,12,13,14 is connected to 12, 11 and 5,4,3,2 respectively ,5pin of lcd is grounded .A 330ohms resistor is connected to pin 15 vcc if you need back light other wise can be left open.
Digital Compass in Action
Hex and C file
Click Here to Download
Parts Needed
arduino board ,16*2 lcd ,cmp03 compass sensor ,general purpose pcb,wires solder iron,comb connectors etc
Arduino Board
Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. you can make you own Arduino Board see the links below
Make Your Own Arduino
Pinguino, PIC Based Arduino Clone
Boarduino, Solderless Breadboard Arduino Clone
Compass Sensor(cmp03)
The compass uses the Philips KMZ51 magnetic field sensor, which is sensitive enough to detect the Earths magnetic field. The output from two of them mounted at right angles to each other is used to compute the direction of the horizontal component of the Earths magnetic
field.see data sheet for detail
LCD
a general type 16*2 lcd is used
Schematic Diagram and Explanation of it
Detailed Schematic coming soon in download section
The Arduino uses 7bit I2C addresses, and our own documentation uses 8bit addresses. For example our CMPS03 is at address 0xc0, but on the Arduino you will use 0x60. The Arduino address is the same as our address, but shifted right by 1 bit. The binary of 0xC0 is 11000000, the binary of 0x60 is 01100000.
The Arduino will shift this left by 1bit and add the Read/Write bit automatically. This uses the I2C bus to connect the Arduino to the CMPS03. It reads the bearing as a two byte integer and displays the bearing as a number 0-359 on 16*2 lcd .
connection of circuit diagram is easy scl(2) and sda(3) is pulled up using 4.7 kohm resiters and scl is connected to anolog in A5 pin of arduino and sda is connected to anologue in A4 of arduino.LCD
connections are 4,6 and 11,12,13,14 is connected to 12, 11 and 5,4,3,2 respectively ,5pin of lcd is grounded .A 330ohms resistor is connected to pin 15 vcc if you need back light other wise can be left open.
Digital Compass in Action
Hex and C file
Click Here to Download
Submit comment
Downloads
- Automatic Railway Gate Control by: Sharanjit Singh in: 8051 Projects
Tue Oct 15 2019, 12:47 pm - Yet Another DTMF Controlled Robot by: Er. Sharanjit Singh in: 8051 Projects
Tue May 07 2019, 02:45 pm - Simple 3 Digit Temperature Meter by: Rakesh Suthar in: PIC Projects
Sat Jul 05 2014, 11:45 am - Electronic Voting machine with Managed Control Unit (Project Report Included) by: Shivani, Geetika Gupta, Vibhore Aggarwal, Megha Singh in: 8051 Projects
Sat May 17 2014, 07:46 pm - LED Scrolling message Display using 8051 by: Pratik Suthar in: 8051 Projects
Thu May 08 2014, 04:28 pm
Comments
- Pure Sine Wave Inverter Using Atmel 89S2051 by: Anthonyvab
Wed Apr 17 2024, 08:51 am - Pure Sine Wave Inverter Using Atmel 89S2051 by: Jerrydauck
Fri Mar 01 2024, 08:51 am - Pure Sine Wave Inverter Using Atmel 89S2051 by: DennisVatry
Thu Feb 22 2024, 10:04 pm - Pure Sine Wave Inverter Using Atmel 89S2051 by: DonaldPaids
Thu Feb 22 2024, 03:45 pm - Pure Sine Wave Inverter Using Atmel 89S2051 by: Victornwh
Mon Feb 19 2024, 12:01 pm
PedroDug
Sun May 19 2024, 05:39 pm
JewelAmuck
Sun May 19 2024, 03:06 pm
Minniemus
Sun May 19 2024, 07:39 am
Andyhet
Sat May 18 2024, 07:28 am
BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am
Patricknoind
Fri May 17 2024, 09:53 am
Trending Topics
balancing robots keil full version WPAN reading sms from gsm modem digital control techniques caller id project using AT89C2051 broadband wireless Chebyshev filter pcd8544 lcd model proteus smartlabel Build Your Own Workshop Bot phillips rc5 remote control tachometer member sign nokia 3310 LCD with 8051 8051 accelerometer ADSL working with fatfs microcontroller inverter ups project OSI model architecture