Infineon / TLV493D-A1B6-3DMagnetic-Sensor

Library for the TLV493D-A1B6 3D magnetic sensor for Arduino.
MIT License
39 stars 27 forks source link

Cartesian_low_power example always showing same data #12

Closed mlvandenbos closed 5 years ago

mlvandenbos commented 5 years ago

When trying the library with a '3D magnetic sensor 2GO' board, with example 'Cartasian_low_power' is always shows this in serial monitor:

image

I'm using the arduino IDE v1.8.5 and library v1.0.1. The board itself is working fine in the 3D toGo IDE.

The output of the compiler/uploader:

--------------------------
Infineon XMC Flasher Lite
Copyright Infineon Technologies 2017
--------------------------
Windows 10
Operating System: Windows 10

Initialisation
--------------------------
Windows 10
Loading JLink Library... 
JLink Library Version: V6.44d

Configuring Device
Device Name : XMC1100-0064
Interface   : SWD
Speed       : 4000
File Upload
--------------------------
Uploading C:\Users\xxxxxx\AppData\Local\Temp\arduino_build_506221/Cartesian_low_power.ino.hex
... Done
--------------------------
... Finished Succesfully
jaenrig-ifx commented 5 years ago

Hi mlvandenbos,

Could you let us know the specific hardware board so we can try to reproduce the issue? There are two variants: https://www.infineon.com/cms/en/product/sensor/magnetic-position-sensor/3d-magnetic-sensor/ image

Regards, Juan A

mlvandenbos commented 5 years ago

According the GUI application I have a TLE493D A1B6

image

jaenrig-ifx commented 5 years ago

Hi mlvandenbos,

This library is for the TLE493D sensors family. There is an specific library for the TLV493D variant in this repository.

Best Regards, Juan A

mlvandenbos commented 5 years ago

Hi Juan,

I'm sorry. I completely overlooked the E/V difference.

I will try that library.

jaenrig-ifx commented 5 years ago

No problem. It is too similar not to be misleadin :) Let us know if you experiment any issues with the right lib.

Regards, Juan A

mlvandenbos commented 5 years ago

I tried the other library but it also gives no reading.

X = 0.00 mT; Y = 0.00 mT; Z = 0.00 mT

I checked the response code of the 'updateData()' call and it returns '1' so if i'm correct that indicates a bus error?

Should I open an issue on the other repo?

Mark

jaenrig-ifx commented 5 years ago

Hi Mark,

Certainly I reproduce the same error. It works with the shield2go ( + xmc2go) variant. Yes, it seems like a bus error. I reopen it here on the right repository. We will work on it and get back to you as soon as possible.

Best Regards, Juan A

mlvandenbos commented 5 years ago

Hi Juan,

Is there any new on this issue? Or can I help in some way?

Mark

jaenrig-ifx commented 5 years ago

Dear Mark,

Sorry for the delay. We are now looking into this issue. Of course, your insights and findings would be highly appreciated :) Thanks for you patience.

Best Regards, Juan A

jaenrig-ifx commented 5 years ago

Dear Mark,

Thanks for you patience. I have created a branch kit2go-wa with a workaound for the TLE493D-A1B6 Kit2go. The documentation is not updated, and the power pin is controlled by a pin, that needs to be enabled. It should work now if you download that branch.

Best Regards, Juan A

mlvandenbos commented 5 years ago

Hi Juan,

It is working with the kit2go-wa branch. I could simply compile and upload the 'Cartesian' example and receive the data. Thank you.

Mark