I was wondering if the HC SR04 ultrasonic distance sensor is compatible with the DUE because the output signal of the HC SR04 is a 100us 5v pulse, will the DUE refuse the input? I am a bit hesitant to test it and was wondering if someone has done this.
I have verified that the the HC SR04 ultrasonic distance sensor is compatible with the DUE. As cjdelphi suggested a voltage divider of 5.6K and 10K solved the 5V interfacing issue.
hello. I have the same problem that you've had. I have to interface the sensor HC-SR04 with arduino DUE and I thought well I use transistor and a voltage divider. I used a transistor bc558c only that it is giving vcc gnd that the base always gives me 5v output. transistor that you've used? so what do you recommend I purchase on the safe without spending money to try several. Thank you!
I was wondering if the HC SR04 ultrasonic distance sensor is compatible with the DUE because the output signal of the HC SR04 is a 100us 5v pulse, will the DUE refuse the input? I am a bit hesitant to test it and was wondering if someone has done this.
Thanks.
To solve it, you can use a voltage divider circuit, you can use a 1 K Ohm and 1.5 KOhmn resistors, or use the 10k and 15k resistor. where they met to issue a maximum voltage of 3v. or for more detail, you can see in these pages like circuit.