10 years, 11 months ago.

HCSR04 Voltage Input

Will a HCSR04 work with the mbed microcontrollers? Since it's outputs are 3V3 and the HCSR04 is 5V.

Question relating to:

3 Answers

10 years, 1 month ago.

hi to all i have a ST nucleo F401RE, i use your library but don't work can you help me? i write this

/media/uploads/antoniolinux/main.cpp.txt

but when i open hiper terminal i don't see nothing.

i don't know where is the problem best regards Antonio

10 years, 11 months ago.

Since someone made a library for it I would assume it works fine. According to the datasheet it accepts TTL level inputs, then 3.3V should be considered a high. For the majority of the 5V logic 3.3V is also considered high.

Do watch with the Freescale board though, since it is not 5V tolerant it won't like direct interfacing with the device.

10 years, 11 months ago.

I have used it successfully in KL25Z.