Shop OBEX P1 Docs P2 Docs Learn Events
reed switch — Parallax Forums

reed switch

KARIM102KARIM102 Posts: 75
edited 2010-05-21 16:20 in Learn with BlocklyProp
Dear all

i wanna ask how to test the reed magent switch?? i know the program but what the value of resistor shold i use to connect it with vdd and pin 0????



best wishes

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-05-15 22:47
    Have you read the help files or the "What's a Microcontroller?" tutorial? Chapter 3 shows how to connect pushbuttons and a reed switch is no different. Page 76 shows a typical circuit using a 10K resistor.
  • KARIM102KARIM102 Posts: 75
    edited 2010-05-16 12:01
    thx a lot!!! i was just confuse thx for ur helping so reed switch is needed 10k!! that help me a lot mate

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • ercoerco Posts: 20,256
    edited 2010-05-21 16:20
    I recently found some SPDT reed switches on Ebay that are very useful. Previously I had only seen the standard SPST type.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
Sign In or Register to comment.