AH49E LINEAR HALL EFFECT SENSOR - thilo-hub/Lua-RTOS-ESP32 GitHub Wiki
Specification
What | Comments | |
---|---|---|
Identifier | AH49E | |
Interface | ADC | |
Provides | magnetic field | gauss |
Properties | none | |
Datasheet |
Code
-- Attach an A49E sensor to an external ADC (ADS1115) on channel 0
s = sensor.attach("A49E", adc.ADS1115, 0)
while true do
print("magnetic field: "..s:read("magnetic field").." gauss")
tmr.delayms(500)
end