added code for driving ultrasonic transmitter