[Gta04-owner] Digital compass on gta04

Dr. H. Nikolaus Schaller hns at goldelico.com
Fri Apr 13 08:40:41 CEST 2012


Am 12.04.2012 um 23:48 schrieb Belisko Marek:

> 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?

Did you set up VAUX2? I don't know if it is the same with the 3.3 Kernel as
with the hw-validation where you have to do this:

http://projects.goldelico.com/p/gta04-kernel/page/Sensors/#wikititle_13

> 
>> 
>>> 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
> 
> thanks,
> 
> marek
> 
> -- 
> 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
> <test_hmc5883.sh>_______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo/gta04-owner



More information about the Gta04-owner mailing list