Home assistant alarm clock - begin

Hey all,

This is my first ever post here. Also my first steps into Kicad and PCB design. I’m not a “good electronics engineer”, but i know how stuff works.
I had an idea of making an alarm clock that integrates neatly with Home Assistant. The idea is the following:

  • everything runs on an ESP32
  • 2 4 digit LCD displays (based on TM1637 https://www.aliexpress.com/item/32866425287.html). 1 for showing temperature, 1 for the time)
  • BME280 for temperature (and humidity… but not needed actively)
  • LDR to limit the brightness of the LCD when it gets dark, bright during the day)
  • Buzzer for those who don’t want the next part
  • max98357 I2S DAC + amp which can drive a small speaker. Currently in my breadboard setup i use the PCM5102 and a PAM8603)
  • 2 buttons, fully configurable in home assistant to snooze, open/close curtains, control lights… whatever you want, configurable in home assistant. Uses the internal pull-up, so not on the schematic)
  • USBC powered (with ESD module for safety as well as a ams1117-3.3V linear regulator)
  • a 1W (max) LED, driven by a mosfet, dimmable throuwh PWM by the ESP32
  • wireless charging pad on the top, so i can (very slowly, 5W max) charge my phone over night. This is ordered, not in the schematic as it just requires 5V from the USB-C port)

other features are welcome… maybe a 3rd button? :slight_smile:

So the plan:
I put it all on a breadboard and it all works (noise issue on the PCM5102, but working on that)
i have the code working on esphome for everything above, but not with the “right” mosfets/…
Next steps:

  • getting the circuit built in kicad see attached
  • create a PCB from it:
    but this is where it gets horribly difficult. I have no idea where to best put the LED, as it has to be on the side of the clock, the BME280 has to stay “outside”, the LDR needs to extend throught he enclosure, where do the buttons come out, …
  • once i have the design, i’ll hop into fusion 360 to design an enclosure where it all fits, assemble all and… i’m done.

Now… i don’t have ANY SMD soldering material, no idea which components to use/are best. Example: which MOSFET, which ESD, which type/size/… resistors/capacitors? the LED will use max 300-350mA when it drops 3V. DId i make the correct electronic connections/protections/decoupling/…?

So… how do I go about this? The schematic is attached and… i hope someone will/can help me make this a success and i can just make the whole project, incl gerber files, … freely available, including the 3d print designs, to all interested people.

Or am I doing it wrong here and should i just build in the things, wire it up with cables and forget the PCB idea?

wekker.kicad_pro (13.4 KB)

I think this is a Project related question rather than a KiCad related question so is really beyond the scope of this forum.

This is the project section, no? I assumed it was for projects…
Can you guide me to a place where my questions are more appropriate?

Sorry for the wrong post…

As RaptorUK already mentioned, this forum tries to limit itself to questions on how to work with KiCad, and not for general electronics.

You also did not attach the schematic, but only the project file.

Yes, that is a bit confusing. I’m not entirely sure what the scope of that section is myself.


I don’t know what your project looks like, but I guess its a ready-made ESP32 board, combined with some extras to make it work. some sort of power supply or batteries, maybe a display and a relay output. Such one-offs are quite easy to build on matrix (Vero) board. And especially if you do not know what you want to put into your project, starting with a breadboard is a good idea. ESD is always a concern, ESP32 pins are quite fragile. On matrix board, I also always use sockets, because it lets me quicly exchange IC’s (or modules) when I suspect ESD or other damage.

My current method for such projects is to:

  1. Create a KiCad project and schematic.
  2. Test some things on a breadboard if you’re not sure how (or if) some sub parts of a project work.
  3. Draw a partial PCB. The intention is to plan the footprint placement, and have a general idea of where all the wires go.
  4. Transfer that footprint placement to matrix board, and hand solder the wires.

For simple projects, going through all the fuss of designing a “proper” PCB is not really needed, and it’s more work (and time, with ordering PCB’s and such) then just soldering some parts together. But this has it’s limits. There is no proper GND plane and this makes EMC compatibility problematic. I always use some kind of inductor for the power input (either an SMPS module, or separate inductor). and all wires going off the PCB are antenna’s that both radiate and pick up noise. Getting stuff on a matrix board to work reliably is a bit of a challenge, but it can be done. I have projects soldered together on matrix board (with 0.2mm enameled wire for signals. 0.4 mm for power) that are running for 15+ years.

1 Like

This is the popup that appears when you hover over the Project category in the hamburger dropdown.

image

So it should be tightly coupled with KiCad. If the question is equally valid with another ECAD program, then it’s not KiCad specific. For example you mention choice of components and positions of components. You would have to do that with any PCB design tool. That you happened to pick KiCad as your tool doesn’t mean it’s KiCad specific. But if you are encountering a problem doing something in KiCad, then by all means use the appropriate category.

We all love to help but unfortunately answering general electronics design questions would open the floodgates. There are other forums where design questions can be discussed, such as EEVBlog.

Yes. Note how I mentioned you can use KiCad to assist in building your project on Matrixboard :slight_smile:

Thanks everyone, for guiding me. I will move to the Eevblog.

If ever i can contribute, i will do my best.

I love the open source community

2 Likes

As the forum gains traction, we try to get a little more Kicad specific. As you will note on EEvblog, things can get pretty ‘verbose’ in a hurry. :wink: We just don’t have the cycles to deal with as much content.

Thanks for understanding.

This topic was automatically closed after 6 hours. New replies are no longer allowed.