New! ralphbacon.blog
Using an electronic sensor with no moving parts is surely better (more reliable) than using anything that moves (a relay, a reed switch just to name two) so here we use a Hall Effect sensor that can detect magnetic fields - not only that, it can detect North or South pole magnetic fields depending on how the device is oriented.
So whether it's an improved door opening switch you're after, or a better burglar alarm switch the 3144 Hall Effect device is for you. Easy to set up and use, it's also reliable and extremely cheap from our friends in the Far East. Even sourced from a local supplier it's unlikely to break the bank.
I'd consider this one of the fundamental building blocks of an Arduinite's toolkit. Once you know how to use a Hall Effect device (just by following my simple example) then you'll never forget it, and will one day put that knowledge to good use!
And in case you don't already know, I give a reminder on how you can increase the number of GPIO pins on your Arduino UNO (and other variants too) - for free!
I'll include the Hall Effect sketch even though it's simplicity itself (if you understand the standard Arduino Example Blink sketch then this is just as easy), really it is.
Sketch here:
bit.ly/HallEffect3144
Item sourced from:
www.ebay.co.uk/itm/10Pcs-Y3144... (seller: digital-paradise9)
Also in the UK:
www.ebay.co.uk/itm/25249772784... (seller: connchri-uk)
But available anywhere for the same prices (Far East / UK).
Datasheet:
bit.ly/2du8Jag
If you like this video please give it a thumbs up, share and if not already subscribed please do so :)
And my channel is here:
-----------------------------------------------------------------
/ ralphbacon
------------------------------------------------------------------
How can I remember this? Memory tip: "See" Ralph Bacon, geddit?
Негізгі бет Ғылым және технология #55 Using a Hall Effect Magnetic Sensor
Пікірлер: 42