Tag Archives: code

Distance Measurement using Ultrasonic Sensor HC-SR04 and Arduino

The HC-SR04 Ultrasonic Sensor is a very affordable proximity/distance sensor that has been used mainly for object avoidance in various robotics projects. It essentially gives your Arduino eyes / special awareness and can prevent your robot from crashing or falling off a table. It has also been used in blind stick applications, water level sensing, and even as a parking sensor. Continue reading Distance Measurement using Ultrasonic Sensor HC-SR04 and Arduino

Water flow measurement with Arduino

The flow sensor used here works on the principle of “Hall Effect”. According to which, a voltage difference is induced in a conductor transverse to the electric current and the magnetic field perpendicular to it. Here, Hall Effect is utilized in the flow meter using a small fan/propeller shaped rotor which is placed in the path of the liquid flowing. Continue reading Water flow measurement with Arduino

pH Measurement with Arduino

This tutorial will guide you How to measure water quality and other parameters ? and How  to use with Arduino? In this tutorial we use analog pH meter sensor, specially designed for Arduino controllers and has built-in simple, convenient and practical connection and features. It has an LED which works as the Power Indicator, a BNC connector and PH2.0 sensor interface. To use it, just connect the pH sensor with BNC connector, and plug the PH2.0 interface into the analog input port of any Arduino controller.
Attention: In order to ensure the accuracy of the pH probe, you need to use the standard solution to calibrate it regularly. These standard calibration solutions come with this pH sensor. Generally, the period is about half a year. If you measure the dirty aqueous solution, you need to increase the frequency of calibration. Continue reading pH Measurement with Arduino

Soil Moisture Measurement using Arduino

Soil Moisture Sensor can be used to detect water level on the soil, if the soil moisture is depleted it will send a signal to HIGH or give corresponding analog output. This sensor uses two probes to pass the current through the soil, and it reads resistance to get the moisture level, the more water into the soil the more soil conduct the electricity easily. Less resistance if the soil is dry.

The module uses a LM393 precision voltages comparator capable of single or split supply operation. Continue reading Soil Moisture Measurement using Arduino

Arduino Rain Sensor Interfacing

Rain Sensor Module

Rain Sensor module allows to measure moisture via analog output pins and it provides a digital output when a threshold of moisture is exceeded. The module is based on the LM393 op amp. It includes the electronics module and a printed circuit board that “collects” the rain drops.  As rain drops are collected on the circuit board, they create paths of parallel resistance that are measured via the op amp. The lower the resistance (or the more water), the lower the voltage output. Conversely, the less water,  greater the output voltage on the analog pin.  A completely dry board for example will cause the module to output five volts. Continue reading Arduino Rain Sensor Interfacing