Shop OBEX P1 Docs P2 Docs Learn Events
Hall sensor — Parallax Forums

Hall sensor

Panos1983Panos1983 Posts: 3
edited 2009-06-04 17:18 in Accessories
I would like to connect a hall sensor to a Bs2sx microcontroller.
I have a hall sensor with two wires (Obviously, + and ground).
Could you help me on how (Circuit) I could connect this element ?

Thank you in advance,

Comments

  • dandreaedandreae Posts: 1,375
    edited 2009-06-04 13:54
    I believe you connect it with the ground lead going to Vss and the positive lead going to an input on a microcontroller.· Basically you are reading high on the input every time it passes a magnet.



    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • Panos1983Panos1983 Posts: 3
    edited 2009-06-04 14:06
    Thank you for your reply.
    So, There is no need of a circuit for connecting this hall sensor to BS2SX.

    Thanks.
  • dandreaedandreae Posts: 1,375
    edited 2009-06-04 16:44
    Do you have the specifications for the Hall sensor?· If so, this will determine what is necessary.



    Dave


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • Panos1983Panos1983 Posts: 3
    edited 2009-06-04 17:18
    I have just clarified that the above element does not constitute a hall sensor but a magnetic switch. Therefore, please advise
    if a relevant circuit is necessary in order to connect it to Bs2sx microcontroller. The desired scope of this switch is to detect relevant
    magnetic field in order to, forthwith upon detecting, activate accordingly a port of the micro controller
    i.e. IF(IN10=1) THEN
    OUT11=1 ELSE
    OUT11=0

    ENDIF
    ,where port10 : Magnetic switch
    port11 : Alarm

    Thanks
Sign In or Register to comment.