Forgoing voltage regulator

I assume if I just plug in 5VDC adapter it will work

Your assumption is correct but risky: your wallwart may output higher-than-specified voltage, with lots of ripples, or you may reverse the polarity of it, etc.

You need some protection / filtering. I would put a forward connected diode + a tiny (1/8w) 4.7 - 22ohm resistor there, followed by a small electrolytic / ceramic capacitor (4.7u/0.1u). The resistor is there really to burn up in case of over current (kind of like a fuse).

Zapro:
Nope to OP. I've read your schematic, but i didn't find any decoupling on the chips... Place 100nF cap across supply rails on each chip. And make sure to place the Xtal close to the Atmega.

// Per.

Thank you ! Does it matter where in the circuit I add decoupling caps? I'll add one (C4) near power jack and second one near output to LED Matrix (C5). Is this ok?
Dhenry, that's an interesting idea about resistor! I'm a little worry that diode will drop voltage (even .4 V drop might be an issue)...

You want the decoupling caps right next to the power pin being decoupled.
For the uC, that is right next to pins 10 & 30.
What is HT1632? Is there a reason not to connect all Vcc & Gnd pins?

For your buttons, it preferable to use the internal pullup resistors and use the buttons to connect the pins to Gnd when pressed.
If you put a 1N4158 across R4, with cathode to Vcc, it will help prevent any odd latchup conditions when Reset is pressed.
What happpens is Reset may cause a high voltage spike that the chip interprets as going into high voltage programming mode, and then appears to lock up.
The diode dissipates that spike, and is found on current Arduinos.

CrossRoads:
You want the decoupling caps right next to the power pin being decoupled.
For the uC, that is right next to pins 10 & 30.
What is HT1632? Is there a reason not to connect all Vcc & Gnd pins?

For your buttons, it preferable to use the internal pullup resistors and use the buttons to connect the pins to Gnd when pressed.
If you put a 1N4158 across R4, with cathode to Vcc, it will help prevent any odd latchup conditions when Reset is pressed.
What happpens is Reset may cause a high voltage spike that the chip interprets as going into high voltage programming mode, and then appears to lock up.
The diode dissipates that spike, and is found on current Arduinos.

HT1632 is external 32x16 bicolor LED Matrix (based on HT1632 chips).
As for buttons, it's a little bizarre but I could not get internal pullup resistors working on ATMega644P chip. It worked fine on Uno and Mega boards, but not on my breadboard 644P, so I gave up and just used external resistors.
Will 1N4148 work? I have few on hand :slight_smile:
I'm attaching 3D model of my PCB...

XRONOS_PCB.png

1N4148 is fine.
Internal pullups work just like on 328s.
I would also flip the Xtal orientation 180 degrees and make the traces to pins 12/13 shorter.

Yep, move Xtal closer (as close as physically possible) and move decoupling caps as close as possible too.

Also, we might as well learn you some PCB layout right now... Avoid those 90-degrees bends, they can be a problem when etching, and even give you problem if your circuit is high speed (RF-circuit)

// Per.

Zapro:
Yep, move Xtal closer (as close as physically possible) and move decoupling caps as close as possible too.

Also, we might as well learn you some PCB layout right now... Avoid those 90-degrees bends, they can be a problem when etching, and even give you problem if your circuit is high speed (RF-circuit)

// Per.

Thank you! Didn't know about 90-degree bends. I'm using Autorouting in Eagle, is there a setting you'd recommend?

As for power, I couldn't stop thinking about Lefty's recommendation, and just ordered 4 of those awesome power boards from China. Using any DC power source with 94% efficiency sounds like magic, I couldn't resist. I have no idea what to do about DC barrel jack now, probably will have to go with panel mounted version, which is actually easier to design enclosure for, but they cost 5x more than PCB mounted jack... Can anyone recommend good 2.1mm one that costs under $3 ? :slight_smile:

These are all much more reasonable for panel mounts.

http://www.taydaelectronics.com/catalogsearch/result/?q=power+jack

CrossRoads:
These are all much more reasonable for panel mounts.

http://www.taydaelectronics.com/catalogsearch/result/?q=power+jack

:astonished: You're the best!!!

I bought a bunch recently myself. They have pretty good prices.
I don't know who in the forum identified them as a source.
Great price on MAX7219s also.

CrossRoads:
What is HT1632? Is there a reason not to connect all Vcc & Gnd pins?

I couldn't connect them at first, but thanks for pointing it out! I kept trying and finally was able to fix part. Looks like I didn't align it correct in the library design (had to Ctrl+click and do .1" grid). Now I'm able to connect all wires.

Ok here's final-ish version of my board, hopefully I didn't screw up badly somewhere :slight_smile: No ERC/DRC errors. I added Diode and also couple of SMD parts (LED2 on pin PD3) for "hello world" blinker...
I used autoroute with 10mil size. Then I manually beefed up 5V lines, and moved some that were too close to others. Ready to send it to OSH Park :slight_smile:
One strange thing is that left side always curves in when I do Ratsnest, but it doesn't matter, I made PCB with this "defect" before via OSH and it worked fine...

Looks like you're still missing a GND on HT1632 if the name on the symbol means anything.
On the board, why is LED2 and R6 (330K? will the LED turn on?) so much different than LED1 and the other resistors? Just wanted the soldering challenge?

CrossRoads:
Looks like you're still missing a GND on HT1632 if the name on the symbol means anything.
On the board, why is LED2 and R6 (330K? will the LED turn on?) so much different than LED1 and the other resistors? Just wanted the soldering challenge?

Missing GND? Hmm I don't see it :frowning:
I have GND1,2,3 all connected to GND.
Oops with 330K, I meant 330 Ohm, thanks for noticing, I just fixed it :slight_smile: I got value from LED resistance calculator. I think everything up to 1K should be ok, it's ok if it will be dim.
I never worked with SMD parts, and don't have any right now. LED2 is optional, but LED1 shows that power is on. I guess I might as well replace it too :slight_smile: Gonna dig thru my junk pile, maybe I can desolder some SMD LEDs and Resistors from various printer/networking equipment I have.

HT1632 Pin 8 says GND above it, that's why I asked.

CrossRoads:
HT1632 Pin 8 says GND above it, that's why I asked.

Oh I see it now! :slight_smile: Thanks!

Not sure if it fits your needs but this thing produces virtually no heat and can be dropped in place of a 7805, same size and pinout. And for how cool it is it's not very expensive either.

stoopkid:
Not sure if it fits your needs but this thing produces virtually no heat and can be dropped in place of a 7805, same size and pinout. And for how cool it is it's not very expensive either.
http://www.newark.com/jsp/search/productdetail.jsp?sku=72R3616

Yup, I've seen similar one. It's just at $5 a piece it's a bit on the expensive side.

Just wanted to post an update.
Lefty's recommended power supplies arrived from China(pretty quick too) and they are fantastic! I was able to mount them directly to the enclosure and just soldered wires to my PCB and DC jack (CrossWinds, thanks again for recommending those, they are awesome too).
A small note about power supplies, while they are great, they a little fragile (contact came off after I re-soldered same wire about 2-3 times) and you must supply at least 6 Volts to get steady 5V output, but I still think they are fantastic for the price! I'll be buying whole lots more! :slight_smile:

CrossRoads:
I bought a bunch recently myself. They have pretty good prices.
I don't know who in the forum identified them as a source.
Great price on MAX7219s also.

After Tayada's DC jacks for a while, I wouldn't recommend these :frowning: Great price but terrible quality. Every one I used failed quickly, slightest touch to cable and my clock looses power (and I tried several different DC wall adapters)...
I since switched to Switchcraft 722A and they are amazing! Plug goes in smooth and stays in, stays connected but also easy to remove. Looks like they are silver plated too. Expensive tho ($2.64 for 10 on DigiKey), but you definitely get what you pay for :slight_smile: If I could find these for a $1 I'd bee extremely happy!