Page 1 of 1

Distance sensor HC-SR04

Posted: 12 Sep 2016 12:29
by romanstyler
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.

Re: Distance sensor HC-SR04

Posted: 13 Sep 2016 08:39
by PoltoS
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

Re: Distance sensor HC-SR04

Posted: 14 Sep 2016 12:57
by romanstyler
Thank you very much!