Hey guys, I'm a developer trying to learn pcb design and advanced hardware design and needed a place to start. I've designed a very basic clock with a Atmel Atmega328P-AU and from checking out some reference designs.
This design is my first ever design so not so great on rules and general design principles. I would like to be sure that this is a functional project rather than a pretty one. Are my connections correct? Is the 7 segment display wired correctly, is the DS1307 going to work? Can I connect MOSI, MISO and SCK to test pads on the PCB and use it to cleanly program the system effectively?
Please let me know of anything stupid I've done or any resources that can help me improve.
Regarding the DS1307, the datasheet recommends pulling the SQW/OUT (pin 7) high, even if unused. I use this chip in a lot of projects and use a Bournes 4604X-101-103LF resistor network (chip pin 8 is VCC, which lines up with pin 1 of the resistor): it makes tying up SQW, SDA and SCL simple.
Where would I add the current limiting resistors for the LED segments and how large should the resistor be? The system is being powered via 3 AAA batteries, generating a total of 4.5 volts, I'm stabilising the same via a LDO.
What would the correct way to connect them being, I'm sorry the question may be obvious to you but it's not to me. Any help is appreciated, thanks for your feedback.
LED3 needs a series resistor, I've added a 300 ohm resistor for the same. Thanks for that.
I've gone with a 7 segment display due to aesthetic reasons, I have a specific use case for the same as well.
I've added 150E resistors to the 7 segment LED's, thanks for your help good catch.
Here's the part number for SW1, it's a tactile switch. Let me know if you think it's wrong.
Thanks Larry for your extremely thorough feedback, much appreciated.
There seems little point adding the 16MHz crystal and caps. Running the atmega at 8MHz using it's internal 8MHz clock will be fast enough. Timing won't be as accurate as with a crystal, but this won't be a problem because you will have the ds1307/ds3231 for accurate timing.
Nice schematic. One thing I would worry about is the shortage of decoupling capacitors for the regulator. Parallel C3 and C4 with something in the 100nF range for high frequency bypass for the regulator. I did not look yours up but most require it for stable operation. I would also recommend you use something n the 4.7K for the pull up resistors on the I2C bus. I like about 1mA to keep noise out of it.
Npn transistors control current flow from the collector through to the emitter - the transistors appear upside down ; but the designers intentions are not clear .