Maker Pro
Maker Pro

Sensor clarification

electronicsLearner77

Jul 2, 2015
306
Joined
Jul 2, 2015
Messages
306
I have seen a data sheet, it has got 3 pins supply, ground, output and it is hall type sensor. The output type is Open drain- digital, Output.
He is also giving Output high -> 3 - 4V Output low -> 0.5 - 1.0V.
Battery open -> 1 - 2.8V
Ground open -> > 4.5V
My doubt is if i want to interface to a microcontroller do i need to use a digital input or an analog input. If it is digital input how do i measure the faults?
1663309646254.png
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
I have seen a data sheet
Show us the datasheet or a link to the datasheet, we'd like to see it, too.
The output type is Open drain- digital, Output.
#1: Digital output -> connects to digital input
#2: Open Drain -> needs a pull-up resistor, either externally or by activating an internal pull-up on the µC's input pin (if available - not all µCs do have that capability).
how do i measure the faults?
Ground open: -> digital High
Battery open: ->undefined logic level. If you want to detect this state, use an analog input.
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
Top