Git Product home page Git Product logo

16_relay_board's Introduction

16_relay_board

esphome code for aliexpress 16 relay board with esp01 controller

board

This is code utilitzing esphome to control a 16 relay board from aliexpress. The board uses an esp01 with a PCF8574 GPIO expander I2C 8-bit built in to control the 16 pins on the relay board.

This code can be used in Home Assistant. The elements can be added to a dashboard for control and further use.

dashboard

Flashing the ESP board is the tricky part because it doesn't have a usb interface.

I had to buy a usb to ttl device and solder some header pins to be able to flash it. I bought a board that utilizes CH340G off of aliexpress for a few dollars.

programming

Important info: make sure the usb device is on the 3.3v setting and not 5v. The TX and RX wires swap. Meaning TX on the usb is RX on the esp device and vice versa

To enable programming mode I had to ground the 'en' pin on bootup. I held a ground wire to the pin (pin 5 that is circled) and plugged in the usb stick. after it booted (1 second) i removed it and it was in programming mode

From there i used esphome in the browser to do the initial flash with wifi info. After i was able to connect via wifi in esphome in Home Assistant and could program normally.

16_relay_board's People

Contributors

munit85 avatar

Watchers

 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.