Coder Social home page Coder Social logo

cyber-junkie9 / 16-relay-zigbee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xyzroe/16-relay-zigbee

0.0 0.0 0.0 1.49 MB

Zigbee adapter for 16 relays board using CC2652, with 4 isolated digital inputs, 4 direct pins, DS18B20 on board and CH340 for flashing using USB.

License: GNU General Public License v3.0

16-relay-zigbee's Introduction

Stand With Ukraine

16-relay-Zigbee

Zigbee adapter for 16 relays board using CC2652, with 4 isolated digital inputs, 4 direct pins, DS18B20 on board and CH340 for flashing using USB. Main view

Overview

Front Back
PCB front view PCB back view
External sensor Back side

Schematic

Schematic

Jumpers

Due to the fact that the Zigby module has only 16 free pins, you have to give up some relays if you need to use input pins or sensors.

Relays that always connected:
D7 - Relay 1
...
D11 - Relay 5
D14 - Relay 6
D18 - Relay 7
D19 - Relay 8

Relays with jumpers:
D20 - Relay 9
...
D27 - Relay 16

Jumpers description
RED - isolated digital input on X1,X2
GREEN - relay boards on X0
YELLOW - direct IO on X3, X4

JP - connect DS18B20 to CC2652 TDI_D17 (may lead to the inability to flash using DEBUG)
LED always connected to TDO_D16
Button always connected to D15 (BSL or SBL pin)

Inputs

SOLDER ONLY ONE COLOR
Inputs description
RED - HIGH VOLTAGE control (5-300 AC/DC) Electrical Hazard Risk (220V in schematic table)

YELLOW - low voltage control (GND) (5V in schematic table)

Firmware - PTVO

In most cases, you will need the premium version, but it also works great on the free version. Below is one of the configuration options with 10 relays, 4 inputs, 1 button, DS18B20 and DHT22. PTVO config

Flashing

CC2652 comes with firmware with Serial bootloader (SBL) activated, so you don't need J-Link.
I prefer to use ZigStarGW-MT, but you can also use cc2538_bsl.py or Flash Programmer 2.

Don't forget to activate SBL while making your firmware, otherwise you will need J-Link programmer to reactivate it

3.3V relay board mod

Some revisions of 16-channel relay boards cannot control using 3.3V voltage, because, built-in optocouplers are powered by 5V. Such boards need to be slightly redone - to separate the power supply of optocouplers from 5V and apply 3.3V to them. Learn your board schematic for more.

An example of where you can take 3.3V is in the photo below (AMS1117). Relay board 3.3v mod

Binding

The firmware supports direct binding on input and output endpoints.

Files to reproduce

Like ♥️?

"Buy Me A Coffee"

Made in Ukraine

16-relay-zigbee's People

Contributors

xyzroe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.