do momento do Reset até você mandar definição dela, fica no 3o estado / alta impedância
--
-... . . -..- -.-. . .-.. .-.. . -. - - --- . .- -.-. .... --- - .... . .-.
Regras da Lista: https://garoa.net.br/wiki/Lista:LeiaAntesDeClicarNoSend
Para mais informações sobre o Garoa Hacker Clube acesse https://garoa.net.br
Maiores opções sobre o Google Groups, visite: https://groups.google.com/group/hackerspacesp
.--. .- .-. .- -- .- .. ... .. -. ..-. --- .-. -- .- . ... .- -.-. . ... ... . --- .-- .. -.- ..
Epoch 0 <=> Fundação: 1298244863 s ~ 2.408064*10^52 tP (tempos de Planck)
Default state of output 0-5 is input! You see, without knowing what kind of circuit you've got hooked up, the CPU doesn't know whether it should leave things turned off by outputting +3.3V or turned off by outputting 0V. So it doesn't source or sink any current at all. It leaves the pin in a third state -- neither on nor off, but tristated.
Once you turn the pin into an output pin, then it will sink current (that is, it will let current go to ground) when you output a zero, and source current (send your circuit current from the +3.3V supply) when you output a one. Note, though, that there is a limit to the amount of current that the chip can source or sink. You should check the specifications on your coil and the Bean to see if it can source or sink enough current. Note that it's likely that it can sink more current than it can source. If that's the case, then you want to connect one end of the relay coil to +3.3V and the other to the output pin. Then, when you send the pin a ZERO, it turns the relay ON.
http://beantalk.punchthrough.com/t/output-pin-state-during-power-up/965/4
Abs!!
--
Você recebeu essa mensagem porque está inscrito no grupo "ArduInRio" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para arduinrio+...@googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.