Tags: Door, Sensor, Magnetic, Switch, MC38

Wired Door Sensor Magnetic Switch MC38

  • 15.00 AED
    • Ex Tax:15.00 AED
    • Product Code: MC38
    • Availability: In Stock
    Do you want to automate your front door !?your store or house you can use this Magnetic Wired Door SwitchDescription:Model: MC-38Material: Plastic + MagnetColor: WhiteSize: 27x14x7.6mmAction distance: 18mm ± 6mmRated voltage: 12 (V)Switch withstand voltage: 100VDCLoad current: 300mALi..

    Do you want to automate your front door !?

    your store or house you can use this Magnetic Wired Door Switch

    Model: MC-38
    Material: Plastic + Magnet
    Color: White
    Size: 27x14x7.6mm
    Action distance: 18mm ± 6mm
    Rated voltage: 12 (V)
    Switch withstand voltage: 100VDC
    Load current: 300mA
    Life: 1 million times

    In this tutorial we will use one magnetic – contact door sw / sensor and a buzzer for making a “noise” when a door is opened. Normally the reed is ‘open’ (no connection between the two wires). The other half is a magnet. When the magnet is less than 13mm (0.5″) away, the reed switch closes.

    What you will need

    For this project you will need:

    • Arduino uno
    • Magnetic Contact Switch – Door Sensor
    • Buzzer
    • Breadboard and some cables

    The circuit

    The connections are pretty easy, see the above image with the Breadboard circuit schematic.

    The Code

    Here’s the code, embedded using Codebender!

    Try downloading the Codebender plugin and clicking on the “Run on Arduino” button to program your Arduino board with this sketch. And that’s it, you’ve programmed your Arduino with this sketch!

    Well done!

    You have successfully completed one more “How to” tutorial and you learned how to use a magnetic contact switch with Arduino.

    There are no reviews for this product.

    Write a review

    Please login or register to review