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.
ESP32-EVB Arduino; Hall sensor not working
Re: ESP32-EVB Arduino; Hall sensor not working
Hello.
Enter the code here
Enter the code here
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32-EVB Arduino; Hall sensor not working
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: Google [Bot] and 43 guests