Here are some sites that help you to convert your code snippets into html format. The code is converted into a tabular format.
A blog about a variety of random stuff that i do in my free time and during my projects.
Wednesday, September 18, 2013
Interfacing HC-SR04 Ultrasonic Module with Arduino Pro Mini
SR04 is a module that can detect distance between 2cm to 400cm by sending out ultrasonic waves and calculating the time between the sent signal and echo received.
Steps:
Steps:
- Send the trigger signal - a TTL 10us signal
- Wait for the echo pin to get high.
- Calculate the time for which the echo pin is high using a timer.
- Calculate the distance using
Distance = high level time * velocity (340M/S) / 2
Tuesday, September 17, 2013
Subscribe to:
Posts
(
Atom
)