Difference between revisions of "APC7921-esp"
(→Update history) |
|||
Line 2: | Line 2: | ||
= Update history = | = Update history = | ||
+ | |||
+ | * Iteration 2 PoC @ 20201007 | ||
= First steps = | = First steps = |
Revision as of 15:26, 8 October 2020
Contents
Introduction
Update history
- Iteration 2 PoC @ 20201007
First steps
The APC7921 controls the relays via an I2C bus which is supplied via a flatcable from the controller-board.
By putting an intermediate board between the controller and the relay-board, we are able to take over the i2c handling, but leave the rest (PSU, etc) to the controller-board to handle for now.
Iteration 1
An initial test for the principle was hacked together in about 2 hours; with the hardest part being to figure out what are the right pins on the esp8266 for i2c (and, to find the right reference which lists the correct order for SDA and SCL... first google-hit was wrong...) [Video proof here]
Iteration 2
Before extending the prototype software with HTTP/JSON/MQTT functionality, I drank a Flora Mate and realized that probably the [ESPHome] software had a way to control pcf8574 , and indeed it did. This resulted in the second iteration of the PoC board to have:
- All 8 relays working
- Have HTTP control interface
- Be able to provide control via API
- Work with HomeAssistant
- Have MDNS announcing
and next to that, ESPHome also:
- Has support for the likely candidate chipset for ethernet-functionality (LAN8720)
- supports using Current Transformers
- Knows how to drive led-displays
- Provides handling of buttons , with automations (resets?)
- Is able to do OTA upgrades