ESP32-EVB Arduino; Hall sensor not working

JSP007
Posts: 3
Joined: Sat Aug 10, 2019 7:18 pm

ESP32-EVB Arduino; Hall sensor not working

Postby JSP007 » Sat Aug 10, 2019 7:30 pm

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.

swargir
Posts: 5
Joined: Mon Aug 05, 2019 9:13 am

Re: ESP32-EVB Arduino; Hall sensor not working

Postby swargir » Thu Aug 29, 2019 10:29 am

Hello.
Enter the code here

lbernstone
Posts: 828
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-EVB Arduino; Hall sensor not working

Postby lbernstone » Thu Aug 29, 2019 5:25 pm

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.

Who is online

Users browsing this forum: Bing [Bot] and 148 guests