Go Down

Topic: Arduino UNO Pin 0 as input isn't working (Read 1 time) previous topic - next topic

Met88


Quote
So you never use pin0 as input/output?

Or pin 1, if you can avoid it. They are the serial port pins.

Your schematic shows that you are not using pin 0, anyway. I'm confused.


that's not exactly my schematic, but an example taken from arduino.cc  but it is very similar, just imagine the wire going into pin0 instead of pin 2  :)

PaulS

#11
Jan 09, 2013, 12:36 am Last Edit: Jan 09, 2013, 12:43 am by PaulS Reason: 1
Quote
but an example taken from arduino.cc  but it is very similar

That was done with Fritzing - a free application. It's worth spending a little time learning how to use it, so that you can provide schematics the way YOU wired stuff, when you differ from the suggested way.

Edit: stupid fat fingers and itty bitty keyboard laid out by a moron.

Arrch

#12
Jan 09, 2013, 12:37 am Last Edit: Jan 09, 2013, 12:39 am by Arrch Reason: 1

So you never use pin0 as input/output?


Nope. I have a habit of leaving that for serial communication, even if the project doesn't require it.

Quote

I'm curious, which resistor should I use if I want to set it to LOW?


Well according to the datasheet, 0.2V is the maximum for detecting an input as LOW, so (in theory) the maximum voltage you could use would need to satisfy the equation voltage division equation: 0.2 = 5 * R / ( R + 1K).

Met88

forgive me Pauls, I'm just getting into this world and I have to learn a lot of things.

thanks to Arrch too, now I know the rule "dont use pin0 and pin 1"  :D

everything's clear now!

I have other things to ask, but I want to try solving them on my own first.

thanks to all!!! 

PaulS

Quote
forgive me Pauls, I'm just getting into this world and I have to learn a lot of things.

Nothing to forgive. Just pencil it in for something to do in the future.

Go Up