Welcome to DFRobot: www.DFRobot.com.cn 39 / 49
Project6: Hall Sensor
The hall sensor integrated by FireBeetle Board-ESP32 is based on N-carrier. Putting the chip into the
electromagnetic field, a low voltage came into the resistance. The voltage not just can be
directly collected and measured by ADC, but also can be measured by ADC after the
amplification of the pre-analogue amplifier with super-low noise.
The experiment is based on the hall sensor of FireBeetle Board-ESP32. When the magnet move
close to the front board (with a logo), the negative number been printed, closer to the magnet,
lower the number. When the magnet moves close to the opposite one, printed the positive
number, closer to the magnet, higher the number.
Components in need
1 x FireBeetle Board-ESP32
Caution: No need for other sensor.
Enter code
Open Arduino IDE. You would better enter the code manually than open Course-> Item-6 to be
familiar with it.
Sample code:
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}