Go Down

Topic: Question about tutorial (Read 599 times) previous topic - next topic

Xirzonas

Hello,

I'm followingthis and first I'm wondering wha ground actually means, I understand that it's safer to ground somewhere in a circuit.. is this right? And also, why is there a resister placed at the end of the circuit? Need to get into electronics still :)

Thanks in advance!

larryd


http://electronics.stackexchange.com/questions/56210/what-is-ground-and-what-does-it-do
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

Hackscribble

Quote
why is there a resister placed at the end of the circuit?


When the switch is closed, it connects the Arduino's digital input pin to +5V, so digitalRead() reads HIGH.

However, without the resistor, when the switch is open, the digital input pin is left floating.  It can pick up electrical noise and falsely give a HIGH result to digitalRead().

The resistor (known as a pull-down resistor) connects the input pin to 0V (ground) when the switch is open.  This guarantees that digitalRead() gives a LOW reading.  When the switch is closed, a small current flows through the resistor, but it is not enough to affect the HIGH reading.

Hackscribble.  Writing about making things
hackscribble@outlook.com

MarkT


Hello,

I'm followingthis and first I'm wondering wha ground actually means, I understand that it's safer to ground somewhere in a circuit.. is this right? And also, why is there a resister placed at the end of the circuit? Need to get into electronics still :)

Thanks in advance!


You are confusing circuit ground, which is the reference voltage (zero volts) in the
circuit from which all signals are measured and _earthing_, which is done in mains
circuitry to prevent a live-short-to-case being lethal.  The earthed chassis of the machine
causes massive current to flow and the fuse will blow.

Sometimes ground and earth are the same, often earth isn't present, the device is
low voltage or double-insulated / fully isolated from mains.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up