Posts

Showing posts with the label ultrasonic sensor

A Guide For Interfacing Analog Sensors With Arduino

Image
With Arduino, almost everything seems to be too friendly when it comes to interfacing various sensors, shields, add-ons or any other utility devices. Just because the Arduino coding environment is so user-friendly, anyone can do it. So in this post, I will just show you how to hook up your sensors to Arduino and get them running. Let's start with the very basics.... Sensors What is Sensor Sensors are those electronic components which convert physical data into electronic data. This data is in analog format and is fed to the microcontroller on the Arduino board. The microcontroller has inbuilt ADCs (Analog-2-Digital Converter) which processes this data and converts it into digital format. And once you have received the (electronically converted) physical data, you can make your Arduino perform as you want. How To Interface LDR With Arduino Arduino Distance Measurement Using Ultrasonic Sensor On your Arduino board, there are analog pins named as A0, A1, A2, A3, A4, A5. The number of ...

Arduino Distance Measurement Using Ultrasonic Sensor

Image
We all know about the ultrasonic sensor and also wanted to play with it, but don't know how ultrasonic sensor works. So In this article, we will see  how to use an ultrasonic sensor with your projects. The ultrasonic sensor is very popular among arduino hobbyist and there are so many projects which you will be able to do at the end of this article. Description of HC-SR04 Ultrasonic Sensor Ultrasonic Senso r can measure the distance from 1" to 13 feet( 1 cm to up to 4metre) with accuracy up to 3mm. A hc-sr04 ultrasonic sensor has 4 pin GND, VCC, Echo and Trigger Pin. Trig pin generate an ultrasound by setting trig pin on the high state of 10 microseconds. Echo pin produce an output in a microsecond when ultrasound returns back from the object to echo pin. We can calculate the distance by using simple formula Speed=(Distance/Time). The speed of the sound is 340m/s and thus by calculating ultrasound travel time we can calculate the object distance from the ultrasonic sensor. Requ...