0

I'm new to the arduino and to EE in general. I've built the basic examples and a, now trying to get a deeper understanding of what the physics is doing. As such, I'd like some help in understanding the diagram here:

https://www.arduino.cc/en/Tutorial/Blink

Question 1:

Specifically,it seems that the flow is going from Pin 13 to Ground. Is the diagram using the conventional flow or the electron flow approach.

Specifically, is it the electrons flowing from Pin 13 to ground or does the diagram show protons flowing? It seems that its showing the electron flow as the diagram has the anode attached to the resistor so the electrons flow from the pin to the resistor to the positive end (anode) of the LED.

Question 2: This is about bread boards, like one shown here:

https://www.google.com/search?q=arduino+breadboard&biw=1696&bih=988&tbm=isch&tbo=u&source=univ&sa=X&ved=0CFEQsARqFQoTCIjsw5WhkMgCFdWYiAodttcKIw#tbm=isch&q=breadboard&imgrc=KwnTrtjnYJdB1M%3A

1) Would I connect Pin 13 (or say the 5V pin) to the + (the red line). Then I would connect the blue line (the -) to the ground on the arduino? Do I need to connect the blue line?

2) Also, is it again the electron flow notation so that from Pin 13, the electrons flow to the + (red), then to one of the lettered columns and then to whatever component I have?

Thank you for your help! I realize these are basic questions but I want to go a little beyond building the examples and start trying things out myself. As such I want to make sure I'm getting the theory behind it right!

5

The thing to remember about electrons is they are a negative charge. That means that the direction of current flow (positive charge) is opposite to the direction of flow of the actual electrons (negative charge). Picture it like those "compression jams" you get on the motorway (freeway) where cars that are travelling too close together have to slam their breaks on to avoid running into each other. The one at the front slams its breaks on briefly then carries on. The one behind has to do the same, and so on and so forth. You then get a wave effect travelling in the opposite direction to the direction of travel of cars as they slam their breaks on in turn. The cars are moving forwards, but the compression jam is moving backwards. Similar in a circuit - the electrons are moving forward, but the charge is moving backwards.

Another way to visualize it is as a bubble in a pipe of stationary water. The bubble moves in one direction, but in order for it to do that the water has to flow past the bubble in the opposite direction.*

So the current flows out of pin 13 through the LED and to ground, but the electrons themselves are actually flowing from ground through the LED and in to pin 13 (where they eventually return back to ground through the power supply).

For how the IO pin works it's best to picture it as a pair of switches - one connected to Vcc and one connected to GND. For instance, this is the LED wired up with the IO pin set to HIGH:

enter image description here

You can see that S1, being on, forms a circuit between the battery and the LED to allow the current to flow.

When the IO pin is set to LOW the circuit looks a bit like this:

enter image description here

You see that S1 is now turned off, and S2 is turned on. the connection from that battery is now broken, and current can't flow.

But, you ask, what is the point of S2 here? It doesn't actually do anything. No, not in that circuit it doesn't. But consider if you re-arrange the circuit to be like this:

enter image description here

Now it's S2 that is controlling the connection to the battery. S1 is now the redundant switch.

This leads to some terminology.

When S1 is closed the IO pin is said to source current since it is pretty much connected directly to the positive power source.

When S2 is closed instead the IO pin is said to sink current since it is connected to ground, so current can "sink" down to ground through it.

As far as breadboards are concerned - they are just collections of metal strips that are used to join wires and component leads together in whatever way you need to. There is no one part of it that is any different to any other, and there is nothing that says you must use this bit in a certain way, or that bit in another way.

Your typical breadboard has sprung metal clips that are arranged in this pattern:

enter image description here

You can use any collection of holes for any purpose you choose.

That said, normally the blue (or black) marked line of holes down each side is used for ground, and the red line of holes is used for power. As both sides of the board are separate it is possible to use different voltages on each side, or the same voltage on both sides, etc. That can be especially useful when you're working on a circuit that has, say, +3.3V and +5V in it. Another common split usage is for a positive voltage on one side and a negative voltage on the other - common when working with op-amps. Just remember which is which.


* This is a complete lie, but it's as close as you need to know at this point in your education. https://en.wikipedia.org/wiki/Lie-to-children

  • So if the electrons leave ground, then from the first diagram, the thing they hit is the LED before it hits the resistor. Is that not a problem in that too much voltage is going through the LED? I understand it's a series circuit, but to be safe, wouldn't it make more sense to have it before the LED? – user1357015 Sep 24 '15 at 23:14
  • @user1357015 No, because the LED and resistor are in series. At all points in the circuit the current is equal. It's only the voltage that changes at different points in the circuit. – Majenko Sep 24 '15 at 23:17
  • @user1357015 Theory to learn: en.wikipedia.org/wiki/… – Majenko Sep 24 '15 at 23:17
  • But what would actually burn out the LED? The voltage or the Current? I'm a little confused why it can't be either. If there's too much force (voltage) it breaks (similar to how a water wheel would break if spun to fast)? If there are too many coulombs/sec (current) it breaks as well? Or are you saying that since I = V/R, that since the resistor is there, regardless of how the voltage drops, the current through the circuit is always the same? – user1357015 Sep 24 '15 at 23:23
  • The LED will blow if too much current flows through it. That is the only reason it will blow. It is what is called a non-linear device in that it doesn't (directly) obey Ohm's Law. it has a fixed voltage drop (Vf) which is used in conjunction with the resistor and Ohm's law (applied to the resistor) to limit the amount of current that is able to flow. Think of the current as the chain on a bicycle. You can't have more chain in one place than in another. Apply the brakes to the bike wheel (resistor) and the whole chain movement is slowed. – Majenko Sep 24 '15 at 23:25
2

It doesn't matter whether you use conventional current or electron current to describe a circuit; in the end they give the same results.

Protons are not a charge carrier in 99.99999% of circuits; positive charge carriers are the quasiparticles known as holes, but they only flow in semiconductors.

The power rails on a breadboard should be used for power only, never signals. It is possible to use them for other things, and it is possible to not use them at all, but when they are used they should only be used for supply in order to cause the least confusion.

1

Protons don't flow. They are part of the atom nucleus. If they flowed the copper wire would be flowing. Electrons are what flow, particularly if there are some free ones hanging around, like teenagers hanging around a mall.

You don't need to worry about that however. Most people think of current as flowing from positive to negative (ie. pin 13 to ground) even if in fact the electrons are flowing from ground to pin 13.

See Conventional Versus Electron Flow. I quote:

When Benjamin Franklin made his conjecture regarding the direction of charge flow (from the smooth wax to the rough wool), he set a precedent for electrical notation that exists to this day, despite the fact that we know electrons are the constituent units of charge, and that they are displaced from the wool to the wax—not from the wax to the wool—when those two substances are rubbed together. This is why electrons are said to have a negative charge: because Franklin assumed electric charge moved in the opposite direction that it actually does, and so objects he called “negative” (representing a deficiency of charge) actually have a surplus of electrons.

By the time the true direction of electron flow was discovered, the nomenclature of “positive” and “negative” had already been so well established in the scientific community that no effort was made to change it, although calling electrons “positive” would make more sense in referring to “excess” charge. You see, the terms “positive” and “negative” are human inventions, and as such have no absolute meaning beyond our own conventions of language and scientific description. Franklin could have just as easily referred to a surplus of charge as “black” and a deficiency as “white,” in which case scientists would speak of electrons having a “white” charge (assuming the same incorrect conjecture of charge position between wax and wool).

Quote courtesy of Design Science under this license.


Would I connect Pin 13 (or say the 5V pin) to the + (the red line). Then I would connect the blue line (the -) to the ground on the arduino? Do I need to connect the blue line?

When using a breadboard I connect the 5V pin to the red line, the Gnd pin to the blue line, and other things (signals) to the internal (numbered) holes. The internal ones are connected cross-ways, so that is useful, for example, to put a series resistor for the LED there.

I trust you are using a resistor for the LED, if not you might damage both the LED and the Arduino. See The care and feeding of LEDs.

  • I am using a resistor yes. Right, so if I have the 13 signal connected to a lettered whole, does that not mean that the arduino is feeding electrons from the 13 pin TO the resistor, the resistor then feeds the electrons TO the LED and the LED then feeds the electrons to the Ground? Specifically, it is the Electrons leaving pin 13 yes? That is why the anode is connected next to pin 13 -- electrons flow to the positive end of the diode? – user1357015 Sep 24 '15 at 21:30
  • No, the electrons leave ground and head towards the positive side (pin 13). You don't really need to worry about which way the electrons move. In what way will that change what you are doing? I personally think of current leaving pin 13, going through the resistor, then the LED and then to ground. Strictly speaking though, the electrons are going the opposite way. – Nick Gammon Sep 24 '15 at 21:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.