Arduino circuit/breadboard not working at higher voltage?

There a good tutorial at http://www.arduino.cc/en/Main/Standalone

Why didn't you install the 2 other caps?
And put some caps on the input & output of the regulator.
You should really have a current limiting resistor in series with the LED - you're going to damage the LED or damage the output pin wired up as it is.

thanks for the reply guys..

as I said Im new. so the 'why' questions should be self-evdident. =)

just dont have the knowledge/experience to know better/different.

ok.. so I will go back and add in the

  • 10nF cap (103) in front of the vRegulator (across the GND and OUTPUT) BEFORE the power +/- lines reach it.

  • 22uF cap across the 'rails' on my breadboard.. (after the GND/output from the vRegulator)

@CrossRoads-

I guess Im more confused by your comments now?

I see/added in the two missing caps..

but there are two more? seems like I have 4 missing components from your comments

also this:
"You should really have a current limiting resistor in series with the LED - you're going to damage the LED or damage the output pin wired up as it is."

not really that far along yet.. =(

(knowing how to correctly wire up the leds/components for testing/development.. I really want to get to the code parts of playing more) LOL

I thought the chip was capable of turning on smaller accent leds types without much fV and low mA?..
(but what do I know).. I never know if I have things wired up right/wrong..

to be clear I put the + lead to the chip/pin always,.. and the - to the GND rail..
(not other way around)?

where does the resistor go? between I/O pin and + lead from led?

Thanks Lefty, FCrossroads..everyone for replying/helping out.

appreciate it. =)

If you look at any arduino schematic, you will see "large" caps (47uF, 100uF) on the regulator input & output, that was the caps I was referring to. The 100nF goes across the atmega328 VCC & Gnd pins close to the chip itself.

If you look at pin PB5 (19, which is D13), you will see a series resistor with the LED. You want that.
Unless you know for sure your LED has one built in, operating without the resistor will lead to either a damaged LED (cheap) or a damaged output pin(replacement ATMegas ar $5.50 - not so cheap). If your atmega feels hot to the touch when running, that is a sure sign that something has been damaged.
There is also a 100nF cap across Vref to help that keep noise down if you are making analog input measurements.

wow..

I barely understood much of that (sorry) I know your trying to help/educate me int he best practices.

That schematic looks foreign to me so far.. =( although I do understand the D13/P19 reference..

(Im trying to stick with it.. once I do things a few times/repetition.. I understand and feel comfortable..just not there yet) =(

here is the 'fix' I did on both breadboards to stabilize my vRegulators on my projects:

looking at the schematic (again)..

Im thinking you mean the RIGHT side/box/object for 19 (PB5).. not the one on the left? since it goes nowhere?

although I have no clue how to tell or see there is a 'series resistor'...

matter of fact the more I look at the diagram/schematic.. the more Im getting lost.

so to swing back on topic..

I do 'not' see or understand these 'large caps' why or even placement.. vs the caps I just put in place per Leftys suggestion and cobbling it together from the links.

is what I did wrong?

thanks

Almost correct. That larger capacitor you have wired between ground and +5vdc should be changed so that it's negitive lead is still wired to ground as you presently have it, but it's positive lead is connected to your regulator's input pin, which is any of the pins in row two on your picture.

Lefty

Not wrong, just not very effective.

The parts I am talking about on the schematic are:
PC1, PC2, these are like the 22uF cap you have by the regulator now. That is good. Get another one of those.
See figure 1 here:

100uF might be overkill, but it won't hurt. I've been using 1uF on the input and 0.47uF on the output, but only because I had a bunch on hand.

Move the little cap across pins VCC & GND over by the crystal the way that C6 is connected up.
Wire up a current limit resistor the way that RN2A is connected.

So if you measure the voltage on the reset pin, is it changing with your switch?
I ask because switches like this usually have pins 1/2 and 3/4 connected internally - so you may have pin 1 wired to ground and pin 2 to the reset pin, so the switch is not doing anything.

retrolefty:
Almost correct. That larger capacitor you have wired between ground and +5vdc should be changed so that it's negitive lead is still wired to ground as you presently have it, but it's positive lead is connected to your regulator's input pin, which is any of the pins in row two on your picture.

Lefty

hey Lefty-

thanks for the reply..

I have changed the error per your suggestion.. (I think)

however,...I have a question.. (sorry if this is 'noob' stuff)

would it be any different or problematic if wired up like then?

thanks

@CrossRoads-

thanks for the suggestions/links... not very good are reading/following schematics yet.. symbols/signs..etc (all new still)..
so I'll have to go over it more in depth.

Easy to say wire something up like this or that or like the C6..etc for someone with a bit more .. 'comfort' I guess?

I really appreciate the help though.. (just wish I felt like I was doing your time/help justice by understanding it and being able to implement it easily)

but if I 'do' in fact have the vRegulator portion all wrapped up.... I can now move on to focus on your comments solely.
(is the link you supplied supposed to be to the regulator spec sheet?... confused as you talk about the VCC & GND of the chip...etc directly after)?

(was/am looking for figure one in .pdf you linked to)

Thanks

=)

however,...I have a question.. (sorry if this is 'noob' stuff)

That's fine, it's electrical the same.

Lefty

Yes, the last PDF I linked to was a 7805 regulator, with figure 1 showing 0.33uF on the input side of the regulator and some smaller value on the output side.

The C6, etc parts I referenced are from the arduino schematic I linked to also. Print that out, find the parts, and get them setup up on your protoboard the same way. If you're gonna play with electronics, you're gonna have to dive & start getting used to looking at schematics.

hey guys...

thanks for the follow up.

Lefty.-

glad I finally got it right.. thanks for the help/guidance..

CrossRoads-

I 100% agree..

I did/do look at the schematics.. just not very familar/comfortable on how to read/use them..
I havent given up.. just sometimes need a bit more direction until things are 'normal' procedure for me.

I will go back to the other link to the Arduino circuit.. and look at the 'C6' stuff you are talking about.

See if I can figure it out.. and post back my attempts.

Thank you.

There you go! At the best, you will find the "Reference Designator" (also called Ref Des) on the parts easily, at the worst we will have to copy part of the schematic, add some arrows & red circles or something & post a revised picture for you. There are not many parts to look at tho, I am sure you will find them.

Thanks..

appreciate you guys hanging-in-there with me like this.

some members do NOT have the time or patience to be in the newbie section...(and be helpful to those who need it)

Im hoping I can get to it later today..study it a bit.. then out myself for the noob I am with some questions. =)

(Im soooo much more comfortable with programming side of things in life) but no excuses.. anyone can learn

thanks..

ok..stuck at work.. dont have my real circuit here..

so I mocked one up in photoshop to mirror my current circuit layout.

Labels:

No labels:

so I can work on it a bit while...at work. LOL

at least be able to communicate and visually display my interpretation

OK..I checked out .pdf as you suggested..
found the C6 portion.. (but being so new I cant 'just wire it up the same way' unfortunately)

Im a bit confused....

1.) as to 'WHY' this is needed....
2.) why this isnt/wasnt included on these barebones/minimal Arduino clone/circuit tuts I see all over?

(and still a bit un-clear on this series resistor comment you made.. just want to ensure I am doing thing proper..a bit hard when Im 'following' at this point.. =( ..however I do appreciate your help/advice.. gotta sink in eventually) =)

so on the diagram posted (C6)..

I see there is/are other lines/traces tied into this 100nF cap across the VCC & GND pins?
Is this something I need to deal/worry about? Kind of confusing..(the diagram)

Your suggestion. is it as easy as just putting a 100nF cap across pins 7 (VCC) & 8 (GND)?

after the I/O pins..before the jumper wires, tying into the rails?

(still unclear as to what to do with those other lines 20 (Avcc) & 22 (GND) ??

(and again..my brain is stuck trying to figure out/worry about this series resistor you mentioned?)
when thinking about.. I think your just saying.. ALWAYS USE A RESISTOR on LEDS like that?..

"OR" are you saying.. I need to have this series resistor as part fo the circuit for other reasons? as a base part of the Arduino 'circuit' itself.. regardless of the leds or other external components that may be used?

In the end.. I will implement the rule of 'always use a resistor'.. but I dont want to confuse myself on what is required to build the base circuit.. and what is needed for when I add 'blinkies/buttons'..etc..

to wrap up even more confusion.. LOL..

I am a bit confused on this:

2 different (same) crystal wiring diagrams?
looks to be mechanically the same? (same resistors used...same layout?)
but the name for the xstal is different?

That I need any more confusion..LOL.. but it was bugging me?!

Thanks


update:

ok.. here I am trying to implement both of you comments/suggestions.. (hoping Im correct)

adding the led..and resistor to it.. as well as adding the 100nF cap to the VCC & GND on the left side of chip.

any/all feedback is appreciated.

thanks guys.

Ok, good to see you're keeping busy.

  1. Your photoshop is not correct. You Vin going to an empty row (if you call the groups of 5 pins rows), and GND going to the Vin pin on the regulator. Need to slide those down 1 hole each.
  2. Power for pin 7 is going alllllllll the way around the board before it gets to pin 7. The cap to ground (pin 8 ) is there to ensure a clean supply voltage, especially
    with the 16MHz oscillator right there. The other lines show that these pins are connected to VCC, AVCC and AGND on the other side of the chip (power for the Analog parts of the chip). If you are planning on doing any analog functions, I would recommend a cap across pins 20 & 22 (AVCC) and 21 and 22 (ARef, see C4 at the top right of the schematic) for cleaner analog operations.
    "Your suggestion. is it as easy as just putting a 100nF cap across pins 7 (VCC) & 8 (GND)?" Yes.
    "after the I/O pins..before the jumper wires, tying into the rails?" Right across pins 7 & 8.

3.The series resistor, seen in the upper right of the schematic as RN2A (or RN2B) should always be used with an LED to keep from burning up your output pin. It limits the amount of current that will go thru the LED. They put an extra set of pads to allow a choice of parts. The LED turns when the output goes to 5V and either it will burn up or the output pin will burn up if left on long enough.
You don't need that LED at all - but it is the activity indicator used for the basic sketches & bootloader so you when download those you can see that the circuit is alive & well.

  1. The other crystal part - if you look closer, you will notice above C6 there is Y2 (and XTAL1 and XTAL2). What this is is 2 sets of pads; 1 set for a 16MHz crytal Q23 and its two 22pF caps, and 1 set for a 16MHz Resonator and 1Mohm resistor that is used with it. One or the other are used. You have a crystal and caps, no need to worry there.
    The Q1/XT1/XT2 are for the other uC chip that does the USB interface (vs an FTDI chip).

thanks for the reply!

yeah I moved some parts.. and forgot to move the lines..

(your fast!).. I had already uploaded corrected one before i got your email.. but you were probably typing..
(hit [F5]..for new pics)

1.) check and updated
2.) Is it bad I have the power going all the way around the board (powering the rails..and tapping them as needed)?
2a.) I think you meant/mean pin8? (you put ( ) around it..and it parsed to a smiley face! LOL)

Im actually running out of the office as we speak.. after kids soccer practice.. I'll be back to re-read and comment on the rest of #2 & #4

4.) good Im glad I donthave to worry.. less to worry about means I can get a firm/solid understanding of the basics..then move on.

thanks again (more to come)

2, 2A. yes, pin 8. Gotta watch this editor!
Not bad about the power, just need some decoupling caps at the power pins to squelch any noise.

ok (home).. =)

I need to re-group a bit.. haha

2a.) check (was editor parse) :stuck_out_tongue_winking_eye:

back to 2.)

since Im not used to terminology ..etc I am nto sure if I am need to do something more.. or did it correctly.
Is my diagram correct? (the last one posted, with cap over pins 7&8).. I believe so, as you answer 'yes' (when I asked if its just that easy)

and Im still un-sure/clear about you mentioning the v5 power being 'all the way around the breadboard' and going to pin 7...
this is ok?
it 'is' ok, but if I do this.. I need to 'do what I did above'...yes? (add a cap across pins 7 & 8)..
you used 'decoupling' which is throwing me? & squelching noise?

also did do the resistor portion correctly now? per your advice/post previously? (this was to quickly test the blink sketch on the chip)

If things are good so far..(and if you dont mind)..

I'd like to step things to the next step (your mention of analog functions & the series resistor for an activity led..or adding an activity led to the barebones set-up)

I know understand I should cap both sets of pins 20 & 22 / 21 & 22 (I'll go check the schematic again to see what size.) for a 'clean' power (right?).. but what is an example of an analog function? I guess vs digital? are these the PWM enabled type pins? Is that what that means? and the others are not? (trying to translate correct terminology to laymen understanding) haha..

and
you said something about having an activity led..(like to mirror a true arduino board?)
so to start my search.. I should be looking for:

RN2A (or RN2B)

on the schematic, and try to copy the layout/implementation?

thanks

Looks like you're good. You have the resistor & LED on pin 19 (which is D13). This is the Activity LED. You have that and the resistor that goes with (equivalent of RN2A or RN2B) in your diagram.

Put decoupling caps as noted above to take out noise on the power supply pins.

The analog input pins, A0-A5, are used to convert analog signals to digital normally.
The PWM pins are digital pins that are switched on/off to create a series of pulses.
These pulses are then filtered to approximate an analog output (basically charging a capacitor with a bleed off resistor).
Wider pulses will charge the cap to a higher voltage (approaching 5V) while narrow pulses will charge it less (approaching 0V).
The arduino program does this switching at around 500Hz with analogWrite(value), value from 0 to 255.