Infineon / TLV493D-A1B6-3DMagnetic-Sensor

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

Dual sensor example? #19

Closed aramaerospace closed 3 years ago

aramaerospace commented 3 years ago

Is it possible to post some simple example for dual TLV493D sensors? I follow the power up procedure described in the user manual, but with no luck. Thanks!

9Volts9er commented 3 years ago

Hi, I have created an example here: dualSensor.ino

I think, this should work. But unfortunately I don't have two sensors here to test. I will try to get a second one, but in the meantime maybe you or anyone else wants to test it.

If it works I can create a Pull Request to include the example in the original library. Maybe I can also try to create an example for 8 sensors as well (should be possible according to the datasheet), but as I see it this will require some deeper changes in the library.

9Volts9er commented 3 years ago

I've got access to two sensors recently and managed to debug my sketch. With the new changes it works now, at least for my setup. I have a TLV493D-A1B6 Shield2Go, which is stacked onto a TLV493D-A1B6 MS2Go Kit.

The working example is included into Pull Request #21.

aramaerospace commented 3 years ago

This seems to be working. Thanks!