Comments on: ESP32 Built-In Hall Effect Sensor with Arduino IDE and MicroPython https://randomnerdtutorials.com/esp32-hall-effect-sensor/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 11 Jun 2024 14:58:03 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Lahcene https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-915289 Tue, 14 May 2024 06:22:52 +0000 https://randomnerdtutorials.com/?p=84078#comment-915289 Hi,
I would like to know if there is any parameter which could be used for the esp32.hall_sensor() function.
Thank you.

]]>
By: Adam https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-838210 Wed, 31 May 2023 17:06:03 +0000 https://randomnerdtutorials.com/?p=84078#comment-838210 On my 30-pin ESP32, I was able to get a range from +335 to -213. I could only get the negative values that low when putting the neodymium magnet behind the MCU: https://i.imgur.com/n7oBtZS.png

And here is the range when I touch one of the capacitive pins (+335 to -1550): https://i.imgur.com/N84ccoH.png Clearly, we should avoid the capacitive pins when using the Hall sensor.

]]>
By: NKT https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-812761 Tue, 24 Jan 2023 21:38:58 +0000 https://randomnerdtutorials.com/?p=84078#comment-812761 In reply to Sara Santos.

Ok, I got it to work. I installed Thonny and used the very latest version of the ESP32 micrpython firmware, and bingo.

Using uPyCraft 1.1 and the automatic firmware installation settings on that DID NOT work – it is clearly installing an older version of the ESP32 micropython which doesn’t have the esp32 module to import.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-812653 Tue, 24 Jan 2023 10:54:41 +0000 https://randomnerdtutorials.com/?p=84078#comment-812653 In reply to NKT.

Hi.
I just tested this, and it is working as expected.
What does your files look like? What ESP32 model do you have?
Regards,
Sara

]]>
By: NKT https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-812569 Tue, 24 Jan 2023 01:28:34 +0000 https://randomnerdtutorials.com/?p=84078#comment-812569 In reply to Sara Santos.

The simple examples (blink, etc) will run, so I know micropython is working.
But the addition/importing of “esp32” throws the error

ImportError: no module named ‘esp32’

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-812520 Mon, 23 Jan 2023 20:14:28 +0000 https://randomnerdtutorials.com/?p=84078#comment-812520 In reply to NKT.

Hi.
Can you provide more details? What do you mean when you say it works, but you got an error? Usually, when you get an error with micropython, the code will not run.
Regards,
Sara

]]>
By: NKT https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-812509 Mon, 23 Jan 2023 19:15:40 +0000 https://randomnerdtutorials.com/?p=84078#comment-812509 Hi Sara,
I’ve installed uPyCraft and micropython onto my ESP32, and “blink” and other examples work, but I get the message

exec(open(‘blink.py’).read(),globals())
Traceback (most recent call last):
File “”, line 1, in
File “”, line 9, in
ImportError: no module named ‘esp32’

when I try to follow this example. Any idea?

]]>
By: Taco Charlie https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-723499 Wed, 02 Feb 2022 09:38:22 +0000 https://randomnerdtutorials.com/?p=84078#comment-723499 In reply to Mike.

Nope

]]>
By: Mike https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-570408 Fri, 12 Mar 2021 18:19:00 +0000 https://randomnerdtutorials.com/?p=84078#comment-570408 Is there any way to use an interrupt with the hall sensor, instead of looping and checking the value?

]]>
By: PepperBurst https://randomnerdtutorials.com/esp32-hall-effect-sensor/#comment-560740 Mon, 22 Feb 2021 14:12:54 +0000 https://randomnerdtutorials.com/?p=84078#comment-560740 In reply to EdTree.

docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/pcnt.html

]]>