Pages: [1] 2   Go Down
Author Topic: Arduino StandAlone problem  (Read 1388 times)
0 Members and 1 Guest are viewing this topic.
Slovenia, EU
Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 64
Posts: 2488
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 524
Posts: 26421
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Slovenia, EU
Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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).


* BreadboardAVR.png (142.44 KB, 319x431 - viewed 25 times.)
Logged

Offline Offline
Edison Member
*
Karma: 64
Posts: 2488
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not that we don't trust you, would you take a picture of your setup.
Logged

Slovenia, EU
Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Of course!

Up and down side of GND on breadboard is also connected, it is on the right corner (you can't see it).


* arduino_standalone.jpg (384.92 KB, 1200x902 - viewed 33 times.)
« Last Edit: January 07, 2013, 02:42:18 pm by luxy » Logged

Offline Offline
Edison Member
*
Karma: 64
Posts: 2488
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 64
Posts: 2488
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Also, connect the 2 blue power rails with a wire.
Logged

Offline Offline
Full Member
***
Karma: 3
Posts: 244
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Full Member
***
Karma: 3
Posts: 244
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Slovenia, EU
Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 64
Posts: 2488
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, what is written on the caps?
Logged

Slovenia, EU
Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

221 is written..
Logged

Offline Offline
Edison Member
*
Karma: 64
Posts: 2463
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

"221" = 220pF
(22pF is 22, plain)
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Slovenia, EU
Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1] 2   Go Up
Jump to: