Last day i purchased an hcm5883l compass module. I downloaded the library file for it and i started testing it out with the caliberate hcm5883l example from the library. It never worked not even for a single time. I assumed that the module is damaged or defective. So today without taking anymore chances i bought two more of the same module and tested them with the caliberate hcm5883l example from the library. It still didnt work. There seem to be no problem with arduino board (mega is the one i am useing) as i am able to use it to do all other stuffs. And i dont think three of the same kind module can be defective at The sometime. Can any one tell me whats the problem and how to fix it
All the connections are correct. And the example program is compilable.
You probably bought an improperly labeled module that has the QMC5883 instead.