Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« on: January 07, 2013, 02:08:47 pm » |
I burned basic led blink program on Arduino Uno (tutorial 1, blink led on port 13 every second). I removed ATmega328 from Arduino Uno and put them on breadboard. I connected 16MHz crystal, two 22pF capacitors and 10k resistor between reset and +5 as described on Arduno page. I added led diode with 100 ohm resistor on pin 19 (pin13 in Arduino). I turned the circuit on but the led wasn't blinking. I double checked all the connections but without luck. I also tried to put ATmega328 back to Arduino Uno and onboard led on pin 13 was blinking as it should.
What could be wrong?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 12
Posts: 327
The last thing you did is where you should start looking.
|
 |
« Reply #1 on: January 07, 2013, 02:13:17 pm » |
Draw a diagram of the actual circuit as you see it on the board, or send us a good picture of the setup.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16485
Available for Design & Build services
|
 |
« Reply #2 on: January 07, 2013, 02:15:22 pm » |
You have +5 on VCC and AVCC? You have 0.1uF caps on both pins?
Also, do you have the LED the installed correct way? Cathode (flatted part of the body, shorter leg) to Gnd (or to resistor to Gnd)?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #3 on: January 07, 2013, 02:25:26 pm » |
Everything is wired the same as on this picture, i just removed 3 yellow wires and green wire (13, 12, 11 and 10) and put LED (yes, it is connected correctly) with resistor on port 19 (arduino 13).
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 12
Posts: 327
The last thing you did is where you should start looking.
|
 |
« Reply #4 on: January 07, 2013, 02:29:21 pm » |
Not that we don't trust you, would you take a picture of your setup.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #5 on: January 07, 2013, 02:40:29 pm » |
Of course!
Up and down side of GND on breadboard is also connected, it is on the right corner (you can't see it).
|
|
|
|
« Last Edit: January 07, 2013, 02:42:18 pm by luxy »
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 12
Posts: 327
The last thing you did is where you should start looking.
|
 |
« Reply #6 on: January 07, 2013, 02:49:15 pm » |
On some long SK boards there is no connection 1/2 way between the power rails. Move the power wires closer to the I.C.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 12
Posts: 327
The last thing you did is where you should start looking.
|
 |
« Reply #7 on: January 07, 2013, 02:52:56 pm » |
Also, connect the 2 blue power rails with a wire.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #8 on: January 07, 2013, 02:53:54 pm » |
Pull those caps off just to see if there loading the crystal I have seen to much bread board capacitance load the crystal.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #9 on: January 07, 2013, 02:56:27 pm » |
On some long SK boards there is no connection 1/2 way between the power rails. Move the power wires closer to the I.C.
That could be it he is half way down the rail
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #10 on: January 07, 2013, 03:06:20 pm » |
I removed both capacitors and it works!
I don't understand it. What that's mena? If i am planning to make PCB with ATmega328 stand alone, should i use those caps around crystal or not?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 12
Posts: 327
The last thing you did is where you should start looking.
|
 |
« Reply #11 on: January 07, 2013, 03:08:19 pm » |
Yes, what is written on the caps?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #12 on: January 07, 2013, 03:13:55 pm » |
221 is written..
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 23
Posts: 1372
Now, More Than Ever
|
 |
« Reply #13 on: January 07, 2013, 03:16:48 pm » |
"221" = 220pF (22pF is 22, plain)
|
|
|
|
|
Logged
|
Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #14 on: January 07, 2013, 03:23:14 pm » |
It looks like the seller gave me wrong caps. I asked him for 22pF so i didn't check it. But how's that the circuit works without those caps in?
|
|
|
|
|
Logged
|
|
|
|
|
|