Page 1 of 1

ESP32-EVB Arduino; Hall sensor not working

Posted: Sat Aug 10, 2019 7:30 pm
by JSP007
I cannot make the Hall sensor example work, the plotter just shows noise and the sensor does not react when I approach the magnet.
The example is as simple as can be. I am using Arduino with the ESP32 extension.

I can get the ESP32-EVB to work with LEDs etc. so I have a serial connection that works.

The manual states that the Hall sensor stores its value in a register and hallRead() fetches it there, all done internally. The sketch does not show any specific pin either.

So, what have I missed? Should I include some file? IS there a special extension for the ESP32-EVB?

Such a simple sketch!!! I am going inte desperation level.
Please advise. Thank you very much in advance.

Re: ESP32-EVB Arduino; Hall sensor not working

Posted: Thu Aug 29, 2019 10:29 am
by swargir
Hello.
Enter the code here

Re: ESP32-EVB Arduino; Hall sensor not working

Posted: Thu Aug 29, 2019 5:25 pm
by lbernstone
The hall sensor peripheral is inside the chip. Put the magnet right on the chip to see it react. If you have a hall sensor device, it will just be a regular input, either using ADC, SPI, or I2C (check the datasheet). Some modules/boards use pins 36 & 39, which will prevent you from using the internal hall sensor.