Hall Sensor¶
About¶
Note
This is a work in progress project and this section is still missing. If you want to contribute, please see the Contributions Guide.
Example¶
To get started with Hall sensor, you can try:
Hall Sensor¶
//Simple sketch to access the internal hall effect detector on the esp32.
//values can be quite low.
//Brian Degger / @sctv
int val = 0;
void setup() {
Serial.begin(9600);
}
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
}