Arduino Tutorial: Hall Effect Sensor with Arduino Uno.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Dear friends welcome back! This is Nick from educ8s.tv and today we are going to see how to use the very useful magnetic field sensor with Arduino. Without further delay, let’s get started! Today’s project is this: When I place a magnet close to the sensor, an LED lights up in order to inform us that it detected a magnetic field. It is a very easy project to build but very useful as well. The sensor that we are using is called a Hall Effect sensor, a sensor that it can detect the presence of a magnetic field. The sensor is very cheap, this module I got for Arduino costs around 1.5$ and you can find a link for it in the description of the video. The sensor is used in many devices that we use daily. It is used in your bicycle computer in order to calculate your speed, it can be found on every brushless motor, in many cell phones, in the fuel tank of your car, in security systems, computers, printers and so on. Think of it, as a contactless switch! It is like turning on or off a switch without having to touch it, from a small distance. The applications for this sensor are countless! Check this out, if I place a magnet close to the screen of my Nexus 5 cell phone, the display goes on. There is a Hall Effect sensor inside which detected the magnet. This sensor is used with some flip cases for the Nexus 5, in order to automatically disable the screen when the case is closed. Now, let’s see how to use the sensor with Arduino. Using the module with Arduino or any other microcontroller is extremely easy. We connect the first pin, with the minus sign, to Arduino GROUND. We connect the second pin of the module to Arduino 5V. The last pin is the SIGNAL pin, and we connect it to any digital pin we like. In this case we are going to connect it to digital pin 2 of our Arduino board. Next we connect an LED to digital pin 13 of our Arduino Board and we are ready to test our project. As you can see it is working fine. Check this out. The LED only lights up, if I place the South Pole of the magnet close to the sensor. If I place the North Pole of the magnet close to the sensor, it does not light up. The LED will light up if I place the North Pole of the magnet at the back side of the sensor. That’s because the Hall Effect sensor is sensitive to magnet polarity as well. Have that in mind when you build projects with this sensor. Now, let’s go to the computer and see the software side of the project. The code of the project couldn’t be easier. All we do, is we read the value of digital pin 2. If we read LOW, we turn on the LED, else we turn it OFF. That’s because the default output of the module is HIGH when there is no strong magnetic field around. It there is a magnet close to the sensor, it outputs LOW. As always, you can find the code of the project in a link in the description of the video. With this part in hand, I can now complete the transformation of this old radio into an MP3 player with the original controls still working. I am going to integrate a Hall Effect sensor in it in order to perform a specific function. But I won’t tell you more now, you are going to find out soon how I plan to use it. How do you plan to use this sensor in your projects? Please post your ideas in the comments section below. Also, what kind of projects do you want me to build next? Please vote for your favorite projects at the website educ8s.tv/ideas and help me decide which projects are more useful and interesting to you, the viewers of the channel! Thank you in advance! If this is your first time here, I would love to have you subscribed. In this channel I post videos about DIY projects every Saturday. I love making things and I believe that anyone can make things, anyone can become a maker. That’s why I created this channel, in order to share my knowledge with the community and learn from the community. I hope you will join us. Until next Saturday, Watch, Learn, Build!
Info
Channel: educ8s.tv
Views: 167,749
Rating: undefined out of 5
Keywords: arduino, hall effect, hall effect sensor, Sensor, magnet, magnetic field, arduino sensor, arduino tutorial, arduino diy, arduino uno hall effect, educ8s, educ8s.tv, magnetic sensor, arduino uno, easy arduino tutotial, Do It Yourself (Hobby), Computer, Electronics, Robot, Space, Physics, Experiment, Technology, Diy, Robots, Chemistry, Mechanics, maker, Computer Network (Industry), Gadget, Lab, Engineering, Robotics, magnet sensor, Math
Id: 4eqi0G7uY_4
Channel Id: undefined
Length: 4min 15sec (255 seconds)
Published: Sat Nov 14 2015
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.