martinberlin / H-spi-adapters

PCB design for SPI adapters (HATs)

Home Page:https://www.tindie.com/stores/fasani

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

220 AC to 3.3 VDC adapter for SPI epapers

martinberlin opened this issue · comments

First sample will be focused just on getting the alternate current into estable 3.3V

  • Check the Schematics and get it approved by Carlos F.
  • Make the smallest possible design but passing all DRCs

New Tasks added after some feedback in Twitter (Thanks Rico, Larry and others)

  • 1 Add an optocoupler to know if the lamp is on
    2 Add 2 WHITE Leds (Or RGBW) Disregarded for Rel. 1.1 and it won't also be in 220AC to 3.3DC converter but in the epaper controller white PCB

Tech notes

  1. Latch relay has no way to return if it's ON or OFF) This will also enable some smart behavior like not to count consumption if the light is circuit is not closed (Light is broken for example)
  2. For this to happen, we should update the 220AC converter to output 5V instead of 3.3V since otherwise the voltage will be too low for the 2812's (At least in datasheet min. Volts are 3.7 V and it's a known fact that Blue and White need more voltage than the others)

Important and to be considered: With the ESP32C3 small MCU we use there are only 2 GPIOS left. Adding this two we don't any more available which kind of limits possibilities if you would like to control a second thing in the same epaper UX (2nd latch or simple relay)

This could also be an options - only few components needed ;) And we could even get real consumption.

https://thesolaruniverse.wordpress.com/2019/06/10/measuring-grid-power-consumption-with-an-acs712-hall-effect-sensor-connected-to-an-arduino/

Done. Both PCBs are working but will leave open until last release is for sale

Serious question, shouldn't there be no ground near the switch input? The ground plane under the relay input are kind of messing up the galvanic isolation ...
current:
image
to something like:
image
Also since there is the space it might be a good idea to increase the trace size of the switched ac side? I know it is limited by the relay anyway but less resistance is better.

Sure that is a great catch. GND pane there can be dangerous and it's not really needed at all.
The traces are 1 mm. You think 1.5 or 2 mm would be better, then we can update it, no problem.
Screenshot from 2023-01-31 10-26-44

Thanks @Leone25 send me your address. If you want one of this I offer just to pay a small fee for the shipping and will send it to you

Point 1 might be implemented in next Release. Leds for the moment not.
A more elegant solution would be to have a front-light LED layer over the epaper.