WT901 Sensor not reading correctly

Hello,

I recently purchased a WT901 because i am trying to program/create a solar tracker (multi-axis). Though, the WT901 sensor seems to not be reading the rotational value correctly. Any ideas on why it could be. It seems to drift some, though when i have it hooked up directly to my pc and connected to the WIT app, it seems to be fine. I've tried re-calibrating it, getting a new one, still to no success. Any ideas would be helpful!

(I AM JUST PUTTING THIS HERE TO SEE IF ANYONE ELSE HAS THIS PROBLEM WITH THE SENSOR, I AM NOT SUPPLYING ANY CODE TO BE DEBUGGED OR ANYTHING LIKE THAT, JUST A PROBLEM WITH THE SENSOR)

If the sensor works OK with the PC app but not with the Arduino it sounds like the problem is with the connection to the Arduino, the code running on the Arduino or the power supply to the Arduino

Do you see a common factor here ?

Yeah, thats why i was asking for ideas. I am using the library provided by the manufacturer, so i can almost rule that out. The power is 5v from the Arduino, so im ruling that out, and i know i have a good power supply on the Arduino. So any other ideas would be helpful :slight_smile:

As the problem does not seem to be the sensor, which you have proven works OK, then it must be OK

Which Arduino do you have and how much current does the sensor draw ?

Then, of course, there is the possibility that your code is wrong somehow

I am currently using an esp32

I believe it is 3.3v~5v, but i have had it connected to both.

Again, I have used the code provided by the manufacturers.

That worries me as an answer to

i can not find anywhere where it shows the current of the sensor, so i can not supply an answer

oh i also forgot to mention, that sometimes the sensor works completely fine, with nothing changing about it...

Check the connections very carefully. Are you using a breadboard ?

Which interface, serial or I2C, are you using with the ESP32 and which did you use with the PC ?

I am not using a breadboard currently, it is hard wired to the sensor.

I am using both serial for both of them. Its using ports G2 and G4 for the serial on the board, and a USB to serial for the esp

I am out of ideas

Alright, Thank you for the help! ill leave this here for anyone else if they wanna help

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.