Here I summarize the hardware connections (schematic given below) and source code (attached) to build a Distance meter using MSP430 Launchpad and Ultrasonic Sensor HC-SR04.
Project: Ultrasonice based Distance Meter with LCD Display
Microcontroller: MSP430G2231 on MSP-EXP430G2 Launchpad
Ultrasonic Ranging Module: HC-SR04
16×2 LCD Display: 1602K27-00
For more details: http://karuppuswamy.com/wordpress/2015/03/12/distance-meter-using-msp430-launchpad-and-ultrasonic-sensor-hc-sr04/
