![]() As day to day, the popularity of the Arduino board is increasing and sensors are compatible with these boards. What is Arduino Sensor?Īrduino is comprised of a micro-controller as a functional unit and an IDE that is the software platform where the code will be uploaded into the hardware. Based on the applications required and the availability of the variety of sensors the required Arduino Sensor boards can be chosen. ![]() Because of the availability of it as open-source, it became successful under the platform of micro-controllers. The name Arduino comes from the Italian king ‘Arduin of Ivrea’ and it is invented around the year 2000. This is made possible when the multiple sensors are interfaced with the Arduino board. These are used commercially in various products for temperature monitoring, alarming circuits, and in the Home automation kits, etc… In the practical world, where the motive is to design a user-friendly environment such that various devices information can be controlled, sent, and monitored. ![]() Do leave your comments/ feedback and queries related to this tutorial below, we will be happy to answer your questions.An electronic device that senses and responds quickly to physical changes such as distance, pressure, temperature, touch can be referred to as sensors. Do check out our other tutorials related to Arduino. I hope this tutorial explained you enough about Float sensor and how it interfaces with Arduino. The program repeats reading the button state with a delay of 1 second.When water level reaches sensor level “buttonState” sensor output goes low and Arduino prints the message “WATER LEVEL – HIGH” message in serial monitor and simultaneously LED glows.Now Arduino prints the message “WATER LEVEL – LOW” and turns LED off. When variable “buttonState” is in high state, it denotes that the water level is low and yet to reach the destined limit.Now the digital values are read from the sensor and stored in the variable.Initially, the sensor is connected to Pin 2 and LED in pin 13 that is the built-in LED on the Arduino board.The following steps explain the program completely.Ĭircuits Library - 220+ practical circuits In this code, two components are available to indicate the Water level. PinMode(FloatSensor, INPUT_PULLUP) //Arduino Internal Resistor 10K Int buttonState = 1 //reads pushbutton status Here we have used inbuilt LED of Arduino board as an indication for float and message of the switch state will be displayed in Serial monitor. It acts as a switch here and pin 2 of Arduino reads this switch state for either being high or low. The VCC terminal of float sensor goes to digital pin 2 on the Arduino board and GND terminal to ground of Arduino board. The float sensor consists of two terminals, VCC and GND. INTERFACING THE MAGNETIC FLOAT SENSOR SWITCH WITH ARDUINO: The entire body of this sensor is made up of plastic.The power rating of this sensor is about 10W.The temperature rating is about 10-85 degrees centigrade.The maximum switch current of the float is 0.5A and the switch voltage of 100V DC.When the water level goes down the bulb moves down and reed switch contact breaks and by this way the system detects that water level has gone down and acts accordingly. Due to the force of attraction from this magnet reed switch closes indicating water level is high. It moves up close to stem near the reed switch. When water fills up in a reservoir the bulb structure which has the magnet starts moving up once water reaches a certain level. A magnet will be in the bulb structure of float sensor. Here a Magnetic reed switch is placed in the stem of the sensor. The float sensor consists of an electromagnetic switch. In this tutorial we will see what is a Float sensor, How it works and how to interface this sensor with Arduino with wiring connections and the code. Float sensor is used in projects where you need to detect the level of water in a tank or any reservoir.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |