This object is in archive! 

z-uno

Irmantas shared this question 8 years ago
Need Answer

Hello,


Is there any plans to use z-uno in Zipato?

http://z-uno.z-wave.me/getting-started/


Irmantas

Replies (12)

photo
1

I have really waited for a device like this. No limits on DIY projects

photo
1

What should I do - to get the answer from Zipato? :)

photo
1

have you discover if there is Zipato- Zuno compatibility?

photo
1

It will leave you with having to take care of z-wave communication to Zipato even though you have libraries available for the Z-uno. What I have done is using a Arduino Nano (only 8 euros or so) and added a Fibaro Universal Sensor to it. Join the Fibaro Universal Sensor to Zipato and add the sensors you want to the arduino. You do not have to take care of anything related to z-wave as the Fibaro will take care of this. I am open to share some Arduino code showing how it works (I use it for my doorbell, for a sound sensor controlled scenario and for a sonar based presence sensor all are very stable and easy to deploy).


My2c

Roland

photo
1

I have 3 Z-Uno working with zipato. 1 with 8xReleay to control underfloor heating motors, 1 with 8x230v digital input to read State of thermostates. And one to play with.


Working without a Problem.

photo
1

thanks, Roland and Robert for answers

I 'm doing a trade off and I'm not an expert.

so If i well understood, Z-Uno is recognized by Zipatile like a noemal Z-Wave device and can it be included easly? is it in the Z-wave device library of zipato?

photo
1

z-Uno is a programmable Arduino with z-wave Support. So it is not possible to add it in a "library" as it is.

So the Z-Uno is not a "normal" Z-Wave device that works out of the Box as the Fibaro Universal Sensor.


So you have to Program the Z-UNO in C to do anything and it has no Sensors on board.

photo
1

what is not clear to me is what kind of device zipato sees.

up to now I included devices in network, choosing in the Zipatile menu and no others solutions (that I know) are possible, so I supposed that should be Z-uno device..


thanks again for clarification.

photo
1

it is included as normal Z-Wave Device it how it is displayed depends on Programming of the Z-UNO.

if you change the Program on the Z-Uno you have to reinclude it. Z-Uno is not a Enduser-Device

its a Development Device.

photo
1

ok now it is clear.

many thanks for explamnation and patience.

photo
1

If you use the Fibaro / Nano solution you will find a Binary Sensor in zipato that has just two states: on and off. You include this the normal way in zipato.

Then you have to do some wiring on your arduino to attach sensors to it. Below you will find an example of the Arduino coding needed for controlling a sonar sensor (detect movement when someone breaks the sonar line) and then sends a trigger to zipato which can be used for zipato rules:


// Defines and Global Variables

#define ON 1

#define OFF 0


// Turn DEBUG_MODE either OFF or ON

#define DEBUG_MODE OFF


// Set this constant to <= of the length between the sonar sensor and the end of the

// area to be guarded. Specify in centimeters

#define DISTANCE_NOMOTION 135


// HC-SR04 Distance Sensor PINS

#define echoPin 7

#define trigPin 8


#define ZIPATILE 3

#define ZIP_NOTUSED 4

#define COLOR_LED 2


// Globals

// Duration is used to calculate distance based on the constant speed of sound

long duration, distance;


void setup() {

#if DEBUG_MODE == 1

// Initialize serial communication at 9600 bits per second:

Serial.begin(9600);

#endif


pinMode(LED_BUILTIN, OUTPUT);


// Pins used by sonar sensor

pinMode(trigPin , OUTPUT);

pinMode(echoPin , INPUT );

pinMode(COLOR_LED , OUTPUT);


// Pin where the Fibaro Universal Sensor is connected to (only the signal lead

// the zero lead is connected to the GRND on the Arduino Board)

pinMode(ZIPATILE , OUTPUT);

// Also use the second non-potential contact and make sure it is inactive always

pinMode(ZIP_NOTUSED, OUTPUT);


// Initialize output pins

// Set Fibaro Universal Sensor no potential relay to open by setting the related pin to low

// Also use the second non-potential contact and make sure it is inactive always

digitalWrite(ZIPATILE , LOW);

digitalWrite(ZIP_NOTUSED , LOW);

// Turn the green LED off by setting the pin related to low

digitalWrite(COLOR_LED , LOW);

}


void loop() {

// Measure distance of the nearest object by bouncing soundwaves off of it.

digitalWrite(trigPin, LOW);

delayMicroseconds(2);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);


// Read the time elapsed between sending the pulse and receiving back the sonar pulse again

duration = pulseIn(echoPin, HIGH);


// Calculate the distance (in cm) based on the speed of sound.

distance = duration/58.2;


#if DEBUG_MODE == 1

Serial.println("Distance measure is: ");

Serial.println(distance);

Serial.println("\r\n");

#endif


if (distance <= DISTANCE_NOMOTION) {

// Someone passed the sensor


// Turn the green LED on for visual feedback

digitalWrite(COLOR_LED, HIGH);


// Trigger the Fibaro Universal Sensor by setting HIGH for 0,05 seconds. The non-potential

// relay will be closed as a result and this will initiate the sensor to send

// a z-wave msg to the Zipatile to reflect the state change.

// This on its turn then can be used for rules to be executed in the Zipatile home automation

// controller


digitalWrite(ZIPATILE , HIGH);

digitalWrite(ZIP_NOTUSED , HIGH);

delay(500);

// Return the non potential relay back to open again, so no motion state

digitalWrite(ZIPATILE , LOW);

digitalWrite(ZIP_NOTUSED , LOW);

// Delay of 6 seconds to avoid multiple triggers to the Zipatile when

// there really only is one event.

delay(5000);

digitalWrite(COLOR_LED, LOW);

delay(1000);


#if DEBUG_MODE == 1

Serial.println("Motion was detected \r\n");

#endif


}

else {

// Delay 1 second before next reading.

delay(1000);

}


}

photo
1

thanks Roland, this could be ta valid alternative.

I need to study more and define better my project, now.

Leave a Comment
 
Attach a file