I want to integrate this to the Tinyzero processor (ASM2021) with a proto board (ASD2009) as TinyDuino is somewhat the same as the UNO. The problem is the HC-SR04 stopped working entirely after connecting loosely on the proto board using male-to-male jumper wires. The buzzer and led lights works fine, but the reading from the HC-SR04 sensor is 0 on the serial monitor. It does not read anymore using the UNO board.
Reasons I can think of that causes the sensor to malfunction is the voltage difference between the boards, or the codes for UNO cannot be used directly on TinyZero.
The proto board has a 5V port which I connected to the HC-SR04 sensor.
I would be concerned about the 5v tolerance of the input pin reading the echo. With the module powered with 5v, the HIGH level returned from the module, and read using pulseIn(), may damage the TinyZero.
The trigger signal at 3.3v will likely be high enough to trigger the module.
I think you would be best off to use a bidirectional level shifter, or a least a voltage divider, between the TinyZero and the HC-SR04.
At the moment, the TinyZero is still working (have plenty of those), but not the ultrasonic sensor which I found odd.
Is it possible that the imbalanced current cause the signals to be disrupted and the component to hang?
I am not sure if it is possible to salvage my component or if it is dead.
I have no direct experience, and I agree with you that the harmful impact should have been on the Tiny Zero.
You are probably going to need a scope to explore what is going on with the sensor, particularly if it does not work in a 5v environment any longer.