Dale said:
Current is the motion of charge. Since electrons have negative charge, their motion is in the opposite direction of the current.
Again, because electrons are negatively charged their motion is by definition in the opposite direction of the current.
I think he means "Holes;" "Holes" carry the current (direct quotes in a letter from Mr. Benjamin Franklin, Esq. to Sig. Allessandro Volta). This is why book learned engineers and boots on the ground technicians don't often play well together. You should see some of the field fixes some of us have had to make in response to their "applied science." If you are an engineer with limited field experience, be sure to consult an experienced tech concerning ANY complicated project. For instance, Hondas are great cars, but you have to take the engine out of my wife's Honda to change her $10 transmission filter. No one asked a mechanic on where to place it, I'm sure of that.
kolleamm said:
I'm trying to build some robotics sensors but I'm trying to visualize what is actually happening in a circuit so I can have a better grasp on things.
You are working digitally if you are working in robotics; current really isn't the issue, potential is, so you are working with the voltage side of the equation. Most semiconductors have an IR drop of only 0.6V. You're dealing in about 5V DC for the controller, am I correct? And with a computer clock frequency? Your sensor, is it optical, a NO/NC micro switch, or a weight sensor/pressure pad, and I assume it is shielded to protect sensor output from EMI from the stepper motors nearby? The cable connecting it should be shielded too, at the least be a twisted pair.
If you are dealing with AC then you can cut one leg off of a transistor that can handle the power, and voila, you have a diode, but the new DC frequency will mix with your clock frequency in the controller and could create any of multiple new frequencies. Most people don't know the different touch tones on a phone are made by the mixing of only two audio frequencies. One bad diode in an alternator will cause all sorts of havoc in a late model car for this reason.
Of course, if this is a hobby robot then you probably won't be dealing with huge EMI.
Either way, I would suggest making the sensor as simple as possible, and keeping all of the controlling aspects in the controller. If you have to somehow make the sensor fit the controller, you need to find a different model sensor. [EDIT: I was thinking "component" when I said "sensor." My intent was to say something like this, an extreme example I know: if you have to build a power supply and its own controller to mount on the end of the robot's arm just to use the component you chose, you're doing something wrong.
I've heard of one company asking a new engineer to power an LED in an already laid out AC circuit just to have him come back with a beautifully designed bridge rectifier when a resistor would have sufficed.]