Offline
Newbie
Karma: 0
Posts: 29
|
 |
« on: February 10, 2013, 06:27:04 pm » |
Just a quick one - do both +5V and GND pins need to be connected to +5V and ground, e.g. from a voltage regulator? Or can I leave one of them empty?
Would make designing my stripboard a lot easier!
Thanks,
Sam
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 9
Posts: 353
|
 |
« Reply #1 on: February 10, 2013, 07:53:11 pm » |
Connect both.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 9
Posts: 353
|
 |
« Reply #2 on: February 11, 2013, 02:29:17 am » |
I think he means does he have to connect both Vcc/Gnd pairs, rather than can he connect a Vcc but not the Gnd.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 29
|
 |
« Reply #3 on: February 11, 2013, 04:29:18 am » |
Yes tack, I mean do I have to use both 5V and both GND pins, or can I use one of each?
I thought the fact that the circuit needed to be complete was obvious.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #4 on: February 11, 2013, 04:48:12 am » |
The 2nd VCC pin (pin 20 on the IC) is actually AVCC, its for supplying power to the ADC circuitry. The datasheet says that it should be connected to VCC even if you're not using any analog stuff, I personally don't have it connected when prototyping and not using the ADC, but for the final product I do connect it. The 2nd GND pin is optional.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 29
|
 |
« Reply #5 on: February 11, 2013, 05:26:30 am » |
Thanks Cookies, so I need pin20 connected to 5V if I'm using the analog pins?
Thanks
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #6 on: February 11, 2013, 05:29:29 am » |
Yup, that would be correct.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 9
Posts: 353
|
 |
« Reply #7 on: February 11, 2013, 06:22:26 am » |
The data sheet specs for total current sourcing ability is based on per set of pins, so you should connect BOTH grounds, otherwise you only have a ground with half the current carrying capacity of your Vcc pins.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 29
|
 |
« Reply #8 on: February 11, 2013, 06:57:29 am » |
Ok thanks Cookies, that was obviously what you meant after reading your post again!
Tack, are you saying that I would only need one GND if, in theory, I WASN'T to use the AVCC?
Thanks,
Sam
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 9
Posts: 353
|
 |
« Reply #9 on: February 11, 2013, 08:09:34 am » |
I'm saying you should connect both pairs of pins. Vcc/Avcc and both Gnds.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 29
|
 |
« Reply #10 on: February 11, 2013, 09:17:30 am » |
Ok, I understand.
Forgive me for all the questions, just using hypothetical situations to help my understanding.
If I were, as Cookies said he does when prototyping, to THEORETICALLY leave out AVCC, could I THEORETICALLY leave out a ground?
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2311
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #11 on: February 11, 2013, 11:47:02 am » |
And "Theoretically" you would have 1/2 of what the chip designers intended for the IC POWER SUPPLY Connect them both...
Bob
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
UK
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #12 on: February 11, 2013, 01:02:12 pm » |
I think pin 22 GND is more of providing a good ground for the analog circuity (internal and external) rather than being part of the main power supply like pin 8 GND. You don't want high currents going through the analog ground.
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 131
Posts: 4694
|
 |
« Reply #13 on: February 11, 2013, 07:07:21 pm » |
Thanks Cookies, so I need pin20 connected to 5V if I'm using the analog pins?
At least some of the Atmega chips won't work at all if you don't connect AVcc to the positive supply, even if you are not using the ADC. Always connect AVcc as well as Vcc, and connect AGnd as well as Gnd.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 34
|
 |
« Reply #14 on: February 13, 2013, 08:13:19 am » |
Off-Topic :
I have created stand-alone board for ATMega328P-PU with bootloaded arduino and LED Blink example. It worked fine and now wanted to know that, like i attached LED to pin 13 or 20 of chip as per mappings of pin, I just want to know that, is it usable like arduino board say i can connect LDR like i'm attaching it to pin 11 or arduino with mapped pin of chip or anything more care must be taken if i want to use stand alone on perf board version ?
I'm not sure so asking about usage of pins as per arduino board or i'm missing a lot ?
Say i want to attach HC-SR04 ultrasonic sensor which requires 5V as Vcc but i'm not sure and not written in it's manual that how much current it may needed, will it work with any pin of ATMega328P-PU chip ?
|
|
|
|
« Last Edit: February 13, 2013, 08:53:45 am by vbnewcomer »
|
Logged
|
|
|
|
|
|