Distance sensor HC-SR04

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
romanstyler
Posts: 8
Joined: 09 Aug 2016 09:42

Distance sensor HC-SR04

Post by romanstyler » 12 Sep 2016 12:29

Hi, all.

Does anybody connected HC-SR04 sensor to Z-UNO?
Image
I found simple code and tried to use it with Z-UNO:
https://arduino-ua.com/art5-Podklucheni ... _k_Arduino

But unfortunately, it requires function micros(). It allows to get number of microseconds from starting of controller. Z-UNO doesn't support this function.

User avatar
PoltoS
Posts: 4625
Joined: 26 Jan 2011 19:36

Re: Distance sensor HC-SR04

Post by PoltoS » 13 Sep 2016 08:39

https://github.com/Z-Wave-Me/Z-Uno-Core/issues/93

Here is an example that work on 2.0.5. We will make an official example for 2.0.6 next week

romanstyler
Posts: 8
Joined: 09 Aug 2016 09:42

Re: Distance sensor HC-SR04

Post by romanstyler » 14 Sep 2016 12:57

Thank you very much!

Post Reply