Finland
Offline
Sr. Member
Karma: 0
Posts: 270
Arduino rocks
|
 |
« on: December 09, 2012, 03:45:40 pm » |
I'm building my first standalone arduino project (atmega328 on stripboard). I power it through a 7805 regulator which has 10uF caps on input and output. The 7805 is on a separate circuit board. The wire from the 7805 to atmega328's VCC is about 20 cm (ten inches) long, quite thick (0.75mm2) wire, plus about ten cm on the stripboard.
Should I place an additional cap between atmega328's VCC and GND (and AVCC and GND) close to the pins? And what would be a proper size for the cap?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25381
Solder is electric glue
|
 |
« Reply #1 on: December 09, 2012, 03:56:39 pm » |
Should I place an additional cap between atmega328's VCC and GND (and AVCC and GND) Yes. 0.1uF
|
|
|
|
|
Logged
|
|
|
|
|
Finland
Offline
Sr. Member
Karma: 0
Posts: 270
Arduino rocks
|
 |
« Reply #2 on: December 09, 2012, 04:25:41 pm » |
OK, thanks Mike. Does it have to be elco or will ceramic do?
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15293
Measurement changes behavior
|
 |
« Reply #3 on: December 09, 2012, 05:28:26 pm » |
OK, thanks Mike. Does it have to be elco or will ceramic do?
Actually ceramics are preferred.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 71
Posts: 6596
Arduino rocks
|
 |
« Reply #4 on: December 10, 2012, 10:31:27 am » |
It wouldn't matter where the regulator and its electrolytics were, that 0.1uF cap is required always, right next to the chip. Decoupling capacitors should have low ESR and ESL, which in practice means ceramic, right next to the relevant pins. The exact value isn't too important, BTW, so anything from 0.1uF to 1uF will work fine.
|
|
|
|
|
Logged
|
|
|
|
|
Canada
Offline
Sr. Member
Karma: 0
Posts: 319
Sometimes teaching, always learning,
|
 |
« Reply #5 on: December 10, 2012, 12:20:23 pm » |
I have a strip of 0805 0.1uF caps on hand. They can be soldered between the VCC/GND and AREF/GND pins on the bottom of the 328 chip. Quite handy and not at all hard to do.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2226
|
 |
« Reply #6 on: December 10, 2012, 01:11:17 pm » |
BTW, so anything from 0.1uF to 1uF will work fine.
1uF ceramics are quite big... 
|
|
|
|
|
Logged
|
|
|
|
|
Finland
Offline
Sr. Member
Karma: 0
Posts: 270
Arduino rocks
|
 |
« Reply #7 on: December 11, 2012, 06:12:21 pm » |
Thank you all for thorough explanations. I'll use 0.1 uF ceramics then.
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5448
Strongly opinionated, but not official!
|
 |
« Reply #8 on: December 11, 2012, 08:01:37 pm » |
1uF ceramics are quite big Not anymore. You can get 10uF in 0805...
|
|
|
|
|
Logged
|
|
|
|
|
Canada
Offline
Sr. Member
Karma: 0
Posts: 319
Sometimes teaching, always learning,
|
 |
« Reply #9 on: December 11, 2012, 08:52:23 pm » |
|
|
|
|
« Last Edit: December 11, 2012, 08:55:23 pm by John_S »
|
Logged
|
|
|
|
|
|