[Gta04-owner] Digital compass on gta04

Belisko Marek marek.belisko at gmail.com
Thu Apr 12 23:48:26 CEST 2012

On Tue, Apr 3, 2012 at 8:32 AM, Christoph Mair <christoph.mair at gmail.com> wrote:
> On Mon, Apr 2, 2012 at 10:26 PM, Belisko Marek <marek.belisko at gmail.com> wrote:
>> On Mon, Apr 2, 2012 at 10:00 PM, Dr. H. Nikolaus Schaller
>> <hns at goldelico.com> wrote:
>>> Am 02.04.2012 um 21:52 schrieb Belisko Marek:
>>>> I'm checking if driver for digital compass is available in current kernel
>>>> and there is in staging/iio/magnetometer/hmc5843.c which must be
>>>> little bit adapted
> These two chips are very similar. For the HMC5883l you have to swap
> two result registers and it should already work with the old driver.
> There are a few other changes like different sensitivity and an
> embedded averaging filter. In future it could even be possible to
> support both chips with a single driver.
I'm trying to play with hmc5883 on my board but can't get it working.
I wrote simple script which setup default registers values and print them out.
I always get -4096 (which is according datasheet something wrong with bias).

Script is attached. Any ideas what could be wrong?

>> Yes I can reuse. Just curious why in hw-validation kernel DRDY
>> (gpio112) isn't used
>> in driver code.
>> Data measurement takes 6ms so this is not so much but want to know if integrate
>> also interrupt handling or not.
> Implementing interrupt support did not have such a high priority. We
> had to fix other things first ;-)
>>>> Anybody working on that already?
> I already worked with the chip and can help out if there are any questions.
> Best regards,
>  Christoph
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo/gta04-owner



as simple and primitive as possible
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_hmc5883.sh
Type: application/x-sh
Size: 588 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120412/7af84452/attachment.sh>

More information about the Gta04-owner mailing list