Search found 17 matches

by KristjanV
19 Jun 2018 09:10
Forum: Z-Uno
Topic: HC-SR04 and DS18B20 help?
Replies: 25
Views: 5053

Re: HC-SR04 and DS18B20 help?

Any ideas? I still haven't made any progress with the distance reading in percent.
by KristjanV
29 May 2018 15:59
Forum: Z-Uno
Topic: HC-SR04 and DS18B20 help?
Replies: 25
Views: 5053

Re: HC-SR04 and DS18B20 help?

Still no results, i tried to modify the code back and forth but no use, cant get any readings from Vera. Maybe its the Vera controller? Even though it worked with example code. :? :?
Image
by KristjanV
23 May 2018 12:03
Forum: Z-Uno
Topic: HC-SR04 and DS18B20 help?
Replies: 25
Views: 5053

Re: HC-SR04 and DS18B20 help?

Yep it compiled now. There was some error with my file so i created a new one and all good but with both codes, Vera doesn't show any result - level. It shows the device but no value. I tried moving object from 10cm to 100cm but still nothing.
by KristjanV
22 May 2018 13:59
Forum: Z-Uno
Topic: HC-SR04 and DS18B20 help?
Replies: 25
Views: 5053

Re: HC-SR04 and DS18B20 help?

Okay so i modified the code to this but i get an error when compiling: Error compiling for board Z-Wave>ME Z-Uno. Aaand i have no idea what im missing here. // HC-SR04 Ultrasonic Distance Sensor ZUNO_SETUP_CHANNELS( ZUNO_SENSOR_MULTILEVEL_GENERAL_PURPOSE(getter) ); int readPin = 9; int triggerPin = ...
by KristjanV
21 May 2018 11:18
Forum: Z-Uno
Topic: HC-SR04 and DS18B20 help?
Replies: 25
Views: 5053

Re: HC-SR04 and DS18B20 help?

I can build things but coding is not my strongest side. Still learning-reading what some of those words even mean, sorry! :)
by KristjanV
19 May 2018 13:23
Forum: Z-Uno
Topic: HC-SR04 and DS18B20 help?
Replies: 25
Views: 5053

Re: HC-SR04 and DS18B20 help?

So i got the distance reading correct with different transformer. 10cm is displayed as 0.10 in the interface. Could this work to display percentage? Or at least level 100(full) - 0(empty) void loop(){ int duration,distance,percentage,heightTank,deviation; //You'll probably want to change the next 2 ...
by KristjanV
19 May 2018 11:17
Forum: Z-Uno
Topic: HC-SR04 and DS18B20 help?
Replies: 25
Views: 5053

HC-SR04 and DS18B20 help?

Hi! Im having some trouble setting up HC-SR04 sensor to measure pellet bunker level. The sensor is on top of the bunker and needs to be working in reverse. If the bunker level gets lower, the value should go down. Is it possible? I have no idea what lines to add to sample code https://z-uno.z-wave.m...