Wednesday, September 18, 2013

Souce Code formatter for blogger

Here are some sites that help you to convert your code snippets into html format. The code is converted into a tabular format.

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:
  1. Send the trigger signal - a TTL 10us signal
  2. Wait for the echo pin to get high.
  3. Calculate the time for which the echo pin is high using a timer.
  4. Calculate the distance using 
Distance = high level time * velocity (340M/S) / 2