



The ultrasonic transmitter circuit converts the electrical signals into 40kHz ultrasonic sound waves. As you mentioned earlier, it consists of one ultrasonic transmitter circuit and one ultrasonic receiver circuit. In this section, we will see how HC-SR04 ultrasonic sensor work. Therefore, you must connect an external 5 volt supply to power HC-SR04. Additionally, TM4C123 Tiva Launchpad does not have an onboard 5 volts signal. Note: This sensor does not work properly on a 3.3 volts power supply. Trigger pin is used to initiate the sensor to start ranging. The echo output pulse pin is used to get output from the sensor. The other two pins are Trigger and echo pin. Two of them are power supply pins such as +5V and ground.
