Atmega328P HC-SR04 Interfacing with HC-SR04 using an Atmega328P in C with the use of timers and Input Capcture and a software delay for pulsing. This code was compiled and tested in Atmel Studio.