Skip to content

Hall Sensor returns random values - unaffected by presence of strong magnet #4866

Closed
@garyjamessilva

Description

@garyjamessilva

Since v1.0.5 update, hallRead() return random data. (Was working ok in V1.0.4)

When a strong magnet is present near chip random data persists as though magnet has no effect on hall sensor.

Same results when trying 2 different Sparkfun ESP32 Thing Plus boards.

using Mac OSX as build device


int val = 0;
void setup() {
Serial.begin(115200);
}

void loop() {
// put your main code here, to run repeatedly:
val = hallRead();
// print the results to the serial monitor:
//Serial.print("sensor = ");
Serial.println(val);//to graph

delay(100);
}

Debug Messages:

4:51:56.272 -> -170
14:51:56.272 -> 71
14:51:56.272 -> -268
14:51:56.272 -> -263
14:51:56.272 -> -263
14:51:56.347 -> -263
14:51:56.347 -> -294
14:51:56.347 -> -295
14:51:56.347 -> -297
14:51:56.347 -> -53
14:51:56.347 -> -172
14:51:56.347 -> -170
14:51:56.347 -> -170
14:51:56.347 -> 93
14:51:56.347 -> -167
14:51:56.347 -> -167
14:51:56.347 -> -168
14:51:56.347 -> -172
14:51:56.347 -> -166
14:51:56.347 -> -167
14:51:56.347 -> -166
14:51:56.347 -> 72
14:51:56.347 -> -173
14:51:56.347 -> -171
14:51:56.347 -> -170
14:51:56.347 -> -167
14:51:56.347 -> -164
14:51:56.347 -> -168
14:51:56.347 -> -168
14:51:56.347 -> 71
14:51:56.347 -> -234
14:51:56.347 -> -238
14:51:56.347 -> -261
14:51:56.347 -> -264
14:51:56.347 -> -266
14:51:56.347 -> -266
14:51:56.347 -> -291
14:51:56.347 -> -60
14:51:56.347 -> -170
14:51:56.347 -> -170
14:51:56.347 -> -162
14:51:56.347 -> 68
14:51:56.347 -> -234
14:51:56.347 -> -145
14:51:56.347 -> -168
14:51:56.347 -> -169
14:51:56.347 -> -171
14:51:56.347 -> -169
14:51:56.347 -> -171
14:51:56.347 -> -166
14:51:56.347 -> -168
14:51:56.347 -> 93
14:51:56.347 -> -170
14:51:56.347 -> -168
14:51:56.347 -> -170
14:51:56.347 -> -169
14:51:56.347 -> -169
14:51:56.347 -> -170
14:51:56.347 -> -169
14:51:56.347 -> 71
14:51:56.347 -> -269
14:51:56.347 -> -266
14:51:56.347 -> -263
14:51:56.347 -> -263
14:51:56.347 -> -263
14:51:56.347 -> -296
14:51:56.347 -> -295
14:51:56.347 -> -48
14:51:56.347 -> -170
14:51:56.347 -> -168
14:51:56.347 -> -172
14:51:56.347 -> 67

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions