forked from whitecatboard/Lua-RTOS-ESP32
-
Notifications
You must be signed in to change notification settings - Fork 0
AH49E LINEAR HALL EFFECT SENSOR
Thomas E. Horner edited this page Mar 12, 2019
·
5 revisions
What | Comments | |
---|---|---|
Identifier | AH49E | |
Interface | ADC | |
Provides | magnetic field | gauss |
Properties | none | |
Datasheet |
-- 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