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... - วิทยาศาสตร์และเทคโนโลยี
Thanks for the video.
Important to notice that a switch connected to a INPUT-PullUp should be connected on the other extreme to Ground.
why?
Do you know if these sensors identify the magnet's polarity?
Is it possible to make it work only during times that the area is unattended?
Love this video 😍
Amazing!
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?
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 :)
This was a great help... thanks
Hi. Glad you like it.
It is used as fridge door leave open and for get to closed alert system.
Hello there, are you able to change the volume and alarm frequency etc?
Hi. Yes, you can change the frequency, but you can’t control the volume.
can the magnetic contact swich sensor run at 5v on arduino uno ?
The pin should be connected to ground and signal. If connected to 5v, then to signal, the magnetic sensor cannot work. Thanks :)
Perfect I will make bike speedometer
Hi. That is great.
How to do it in reverse way? I mean when magnet come close than the Alram will activate
I think changing this line "if (sensorState == HIGH) {" to "if (sensorState == LOW) {" will do the work :)
Can someone please post a code that when the contact sensor is open for more than 5 minutes, it will light up an LED
Im from India
Can i use the switch to control dc motor
Hi. Yes, you can use it to control the DC motor.
I plan on using this sensor in a grenade trap for when the police raids my apartment
Work on arduino uno?
Yes, it can also works on arduino uno.
How to prohibit from operating when’s the sensor are not touching
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.
How to get the coding?
Check the tutorial link under the description :)
When you eat letters that does not mean you speak like English natives
Link share me