Magnetic Contact Switch Sensor And Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ส.ค. 2019
  • 🎬This video will show you how magnetic contact switch sensor works and simple project that can be made using it.
    ⌨️Software :
    1️⃣ Arduino IDE
    💻Tutorial:
    tutorial.cytron.io/2019/08/09...
    🔧Hardware :
    1️⃣ Maker UNO : www.cytron.io/p-maker-uno-sim...
    2️⃣ Magnetic Contact Switch Sensor : my.cytron.io/p-mc-38-magnetic...
    🧕👩‍🎓👨‍🎓
    If you are you a student? Register here:
    www.cytron.io/student-benefit...
    👨🏻‍🏫👩🏻‍🏫
    If you are you a teacher? Register here:
    www.cytron.io/cytron-for-cikg...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 32

  • @omarcruz6326
    @omarcruz6326 3 ปีที่แล้ว +6

    Thanks for the video.
    Important to notice that a switch connected to a INPUT-PullUp should be connected on the other extreme to Ground.

    • @weinfin
      @weinfin 2 ปีที่แล้ว

      why?

  • @aerobles85
    @aerobles85 2 ปีที่แล้ว +1

    Do you know if these sensors identify the magnet's polarity?

  • @jessamaetorres2000
    @jessamaetorres2000 2 ปีที่แล้ว

    Is it possible to make it work only during times that the area is unattended?

  • @user-pv5jc1zr3j
    @user-pv5jc1zr3j 7 หลายเดือนก่อน

    Love this video 😍

  • @master_0323
    @master_0323 2 ปีที่แล้ว +1

    Amazing!

  • @ryanfranco4179
    @ryanfranco4179 3 ปีที่แล้ว

    Is that applicable to a batching plant that uses magnetic sensor in order to open and close the gate while batching aggregates onto central mixer?

    • @cytrontech
      @cytrontech  3 ปีที่แล้ว

      Hi. I'm sorry as we're not familiar with batching plant that you mention. You can email to us at support@cytron.io for technical issues. Thanks :)

  • @rakin6488
    @rakin6488 3 ปีที่แล้ว +1

    This was a great help... thanks

    • @cytrontech
      @cytrontech  3 ปีที่แล้ว

      Hi. Glad you like it.

  • @rodneyyeo7744
    @rodneyyeo7744 ปีที่แล้ว

    It is used as fridge door leave open and for get to closed alert system.

  • @Amz19871
    @Amz19871 3 ปีที่แล้ว

    Hello there, are you able to change the volume and alarm frequency etc?

    • @cytrontech
      @cytrontech  3 ปีที่แล้ว

      Hi. Yes, you can change the frequency, but you can’t control the volume.

  • @ridhosyukuryansyah6538
    @ridhosyukuryansyah6538 4 ปีที่แล้ว +1

    can the magnetic contact swich sensor run at 5v on arduino uno ?

    • @cytrontech
      @cytrontech  4 ปีที่แล้ว

      The pin should be connected to ground and signal. If connected to 5v, then to signal, the magnetic sensor cannot work. Thanks :)

  • @abdullahkardas8887
    @abdullahkardas8887 3 ปีที่แล้ว +1

    Perfect I will make bike speedometer

    • @cytrontech
      @cytrontech  3 ปีที่แล้ว

      Hi. That is great.

  • @sushmoymitra6957
    @sushmoymitra6957 3 ปีที่แล้ว

    How to do it in reverse way? I mean when magnet come close than the Alram will activate

    • @Seb_o79
      @Seb_o79 3 ปีที่แล้ว +1

      I think changing this line "if (sensorState == HIGH) {" to "if (sensorState == LOW) {" will do the work :)

  • @SampagaFilms
    @SampagaFilms 3 หลายเดือนก่อน

    Can someone please post a code that when the contact sensor is open for more than 5 minutes, it will light up an LED

  • @baharuddinkxj3621
    @baharuddinkxj3621 3 ปีที่แล้ว

    Im from India

  • @mirulzzz99
    @mirulzzz99 3 ปีที่แล้ว

    Can i use the switch to control dc motor

    • @cytrontech
      @cytrontech  3 ปีที่แล้ว

      Hi. Yes, you can use it to control the DC motor.

  • @noxin8894
    @noxin8894 ปีที่แล้ว

    I plan on using this sensor in a grenade trap for when the police raids my apartment

  • @rodrigovintage1502
    @rodrigovintage1502 3 ปีที่แล้ว

    Work on arduino uno?

    • @cytrontech
      @cytrontech  3 ปีที่แล้ว +1

      Yes, it can also works on arduino uno.

  • @yaashwianrajasingam3002
    @yaashwianrajasingam3002 2 ปีที่แล้ว

    How to prohibit from operating when’s the sensor are not touching

    • @yaashwianrajasingam3002
      @yaashwianrajasingam3002 2 ปีที่แล้ว

      I want to use this sensor for my project. So, I need the coding for prohibit from operating my project when the sensor are not touching.

  • @daus880408
    @daus880408 4 ปีที่แล้ว

    How to get the coding?

    • @cytrontech
      @cytrontech  4 ปีที่แล้ว

      Check the tutorial link under the description :)

  • @yaseenalrawahi4733
    @yaseenalrawahi4733 3 ปีที่แล้ว

    When you eat letters that does not mean you speak like English natives

  • @ViNoTh.DrIvEr7381
    @ViNoTh.DrIvEr7381 3 ปีที่แล้ว

    Link share me