Introduction: Use Deepcam Zigbee Sensors With LinkSpriteIO
In this tutorial, we show how to interface Deepcam zigbee sensors to LinkSpriteIO using the Linker Zigbee gateway, and serves as a basic framework for home automation sensors application.
Step 1: Hardware Parts:
1 x pcDuino3B or pcDuino8 Uno
1 x Linker zigbee module
1x Linker Button
1 x Linker base shield
1 x Zigbee Water Leak Detector
Step 2: Register and Login LinkSprite.io
Login to www.linksprite.io, create an account if you don’t have one, and login, create a DIY device.
The type is 00 (Custom device type). The device name and device group can be arbitrary.
The following summarizes:
1. Login www.linksprite.io
2. Create an account and login
3. Create a device with type 00, and arbitrary device name and group name.
4. Obtain the device ID:
5. Obtain apikey:
Step 3: Hardware Installation
Connect the hardware according to the following picture:
Step 4: Download and Run the Zigbee Gateway Code
Turn on pcDuino3B, open a terminal and download the zigbee gateway code from the github. We also need to modify the deviceID and apikey, run the code and add a zigbee device.
Download source files using
Modify api key and device ID using the ones obtained above.
Add a first deviceRun zigbee.py:
Press and hold the RST pin hole of the water sensor until the green LED blink fast. Now we can start to add device by pressing the linker button:
Till now, we added water detector successfully to the zigbee gateway. Now we can observe the status of the water detector on www.linksprite.io web portal. Water detector is a water leakage detector, when we place it on the place that has water, we can see status change on the web portal.
Step 5: How to Add More Sensors:
We show how to add one sensor to the gateway above. Now we can continue to add more devices. Do the following when zigbee.py is running:
Press the RST button of the sensor until green LED blinks fast.
Press Linker button to add the device
When the script adds the device, and obtain the zone type information, the device has been added successfully.
Now the gateway can obtain the sensor information and report to linksprite.io.
We have a be nice policy.
Please be positive and constructive.