Pages: [1]   Go Down
Author Topic: [Solved] HC SR04 interfacing with DUE?  (Read 1530 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello

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.
« Last Edit: April 08, 2013, 10:23:18 am by TjaartBester » Logged

Offline Offline
Edison Member
*
Karma: 30
Posts: 2494
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could use a voltage divider ...

a 10k and 15k resistor (where they meet) should give a 3v signal as a high...
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good idea, I'll test it today using a voltage divider and test using a pnp transistor an see whether is works.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Pages: [1]   Go Up
Jump to: