Giter VIP home page Giter VIP logo

nrf24le1-espnrf_gateway_and_remote_switch_for_livolo_etc's Introduction

PROJECT_PHOTO PROJECT_PHOTO PROJECT_PHOTO PROJECT_PHOTO

ESP8266+NRF24LE1 MQTT gateway and NRF24LE1 remote switch for embedding in livolo etc.

Gateway code allows to use an ESP8266 and NRF24LE1(espnrf) connected each other via rs232 as a gateway to control NRF24LE1 client by MQTT server. Connection on gateway side: ESP tx <-> NRF(32pin) p0.4(rx), ESP rx <-> NRF(32pin) p0.3(tx), ESP gpio02 <-> NRF reset. The gateway polls 16 NRF clients, with 4 numeric parameters each. The name of each parameter up to 32 characters must be defined when configuring in the espnrf web interface. Client code allows to use NRF24LE1 as a remote two-channel switch with state monitoring and control of both the impulse and the livolo or rcswitch protocol. The first 2 parameters reflect the status of the switches (1/0, on/off, true/false), the third parameter is used to display the temperature from the DS18B20 sensor (relevant for embedding the NRF24LE1 in the air conditioner), the fourth parameter is the supply voltage of the NRF24LE1. Using the assembler without any sdk allowed the client to reduce the clock frequency by 16 times (1MHz), and when generating the RC code MCU works at 125 kHz, and accordingly to reduce power consumption, and in the gateway it is free to store in memory not only the program code, but and reserve space for code updates and for 64 parameter names. More in readme_rus.pdf.

ESP8266+NRF24LE1 MQTT шлюз и NRF24LE1 беспроводной выключатель для встраивания в livolo и т.п.

Gateway код позволяет использовать ESP8266 и NRF24LE1(espnrf), соединенные между собой по rs232, как шлюз для управления NRF24LE1 клиентом при помощи MQTT сервера. Соединения на стороне шлюза ESP tx <-> NRF(32pin) p0.4(rx), ESP rx <-> NRF(32pin) p0.3(tx), ESP gpio02 <-> NRF reset. Шлюз опрашивает 16 NRF клиентов, по 4 числовых параметра в каждом. Имя каждого параметра до 32 символов должно быть определено при конфигурации в espnrf web интерфейсе. Client код позволяет использовать NRF24LE1 как удаленный беспроводной двухканальный выключатель с контролем состояния и управлением как импульсом, так и по протоколу livolo или rcswitch. Первые 2 параметра отражают состояния выключателей (1/0, on/off, true/false), третий параметр используется для вывода температуры с датчика DS18B20 (актуально для встраивания NRF24LE1 в кондиционер), четвертый параметр - напряжение питания NRF24LE1. Использование ассемблера без всяких sdk позволило в клиенте понизить тактовую в частоту в 16 раз(1MHz) , а при генерации RC кода MCU работает на 125 kHz, и соответственно снизить потребление энергии, а в шлюзе свободно вместить в память не только код программы, но и зарезервировать место для обновления кода и для 64 имен параметров. Подробнее в readme_rus.pdf.

nrf24le1-espnrf_gateway_and_remote_switch_for_livolo_etc's People

Contributors

alutov 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.