June 2018
Beginner to intermediate
280 pages
6h 58m
English
The following diagram illustrates the interfacing circuit of the HC-SR04 ultrasonic sound sensor with Tiva C LaunchPad:

The working voltage of the ultrasonic sensor is 5V and the input/output of this sensor is also 5V, so we need a level shifter on the Trig and Echo pins for interfacing into the 3.3V level Launchpad. In the level shifter, we need to apply high voltage, that is, 5V, and low voltage, that is, 3.3V, as shown in the preceding diagram, to switch from one level to another level. Trig and Echo pins are connected on the high voltage side of the ...