msdeng
January 15, 2025, 12:23am
1
I have a SparkFun TMAG5273 board connected via qwiic connect to RedBoard Plus. I am trying to run the example 1 code BasicReadings and am receiving random numbers between -1 and 1 regardless of whether a strong N52 magnet is near touching the hall effect or not.
This is a similar if not the same issue as TMAG5273 Sparkfun have no value for data on x,y,z axis - #7 by yutong_he but that was never resolved.
The temperature does seem to respond correctly but not the field.
Here is an example of the serial output:
Can you help resolve this issue? Thanks.
That looks similar to the example’s GIF https://docs.sparkfun.com/SparkFun_Qwiic_Hall_Effect_Sensor_TMAG5273/assets/img/hookup_guide/example-basic.gif
It looks like someone named Raelx forked/released a fix if you want to test that one?
opened 08:41PM - 19 Sep 23 UTC
closed 08:39PM - 26 Sep 23 UTC
Running the "Basic Readings" example with a stationary magnet near the sensor pr… oduces very inconsistent values. Serial output values seem to bounce between near zero and what might be the actual mT values (in the range of 10-50mT). Here is some example output.
28.39 C
(0.16, -15.59, 36.52) mT
28.39 C
(0.16, -0.08, -0.31) mT
28.13 C
(-60.74, -0.08, 36.52) mT
28.66 C
(-60.90, -0.08, -0.27) mT
28.13 C
(0.12, -0.08, -0.27) mT
28.39 C
(0.12, -0.04, 36.45) mT
28.39 C
(0.16, -0.04, 36.45) mT
28.13 C
(0.20, -0.08, -0.27) mT
28.39 C
(0.20, -15.00, -0.27) mT
28.66 C
(0.23, -15.00, 36.52) mT
27.86 C
(0.08, -0.12, -0.31) mT
28.66 C
### Your workbench
* What development board or microcontroller are you using?
* ESP8266 (Wemos D1 mini)
* What version of hardware or breakout board are you using?
* Mikroe 3D Hall 11 Click
* How is the breakout board wired to your microcontroller?
* 3.3v power
* 10k pull up resistors on SCL and SDA
* How is everything being powered?
* USB
* Are there any additional details that may help us help you?
* Had to specify the I2C address for the sensor as 0x35, this Library defaults to 0x22
### Steps to reproduce
Just run the example code
### Expected behavior
Read values should be more or less stable without dropping out to near zero for most reading.
### Actual behavior
Read value fluctuate between zeroish and a believable value.
msdeng
January 15, 2025, 12:55am
3
I replaced the library folder in my documents with the forked library here: GitHub - Raelx/SparkFun_TMAG5273_Arduino_Library: Communicates with the TMAG5273 over I2C to quickly integrate a Hall-effect sensor into your project.
I saw no change in response. I was originally using library version 1.0.3 which should have been the updated version per that thread anyways. One main difference I notice is with that issue and mine is they have sometimes “accurate”, high readings. I have never seen numbers above 1 in magnitude.