Giter Site home page Giter Site logo

shellyemmockup's Introduction

shellyEM mockup

Base code for shelly EM energy meter

Shelly EM is a impressive mini device that comes with the following features:

  • I2C RTC based on PCF85363A
  • I2C energy meter based on AD7953
  • Relay
  • Button
  • LED
  • Esp 8266EX chip with 4Mb of flash

This code serves as a buliding block to develop whatever you want on top of this great device.

Check out the manufacturer, shelly for features and hardware details.

Disclaimer & instructions:

  • AC mains can kill you. You wont be able to undo any mistake after you're dead.
  • You CANNOT connect shelly to mains AC and to the programming pins at the same time.
  • Disconnect the device from any mains before program it with this firmware
  • provide your own WiFi, MQTT and Emoncms configuration and upload the firmware as a starting point.
  • Check serial UART for IP address, check if Emoncms and MQTT is working, disable the features you don't want on the code.
  • After everything is tested disconnect the programming pins and connect to AC mains and test again if the device is working properly.
  • From there you can change the code and do OTA updates to the ESP8266 using the url: http://<ip_of_device>/update

This code has the following features:

  • press button for 2 seconds to toggle relay.
  • LED follows Relay status
  • Communcate with ADE7953 and PCF85363A via I2C
  • Publish energy readings to emoncms server every 10s
  • Publish RTC time and energy readings to MQTT every 1s
  • WebUpdater.ino code included for easy updates OTA - http://<IP_address>/update

Have fun!

If you find any improvements, like better calibration procedure or find any problems please open a issue.

shellyemmockup's People

Contributors

apreb avatar

Stargazers

 avatar Sam avatar  avatar Davide avatar Lucas Della Santina avatar Mohamed Yanis Hiou avatar  avatar Thomas V. avatar Giorgio Boiero avatar  avatar

Watchers

James Cloos avatar  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.