Skip to content

AH49E LINEAR HALL EFFECT SENSOR

Jaume Olivé Petrus edited this page Aug 25, 2017 · 5 revisions

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
Clone this wiki locally