[LHC] [ArduInRio] Re: [GaroaHC] Re: Como estão os pinos do Arduino antes de executar comandos ?

Alejandro Mesias ale.mesias at gmail.com
Thu Apr 7 07:26:42 PDT 2016


Legal, que estou com um problema gravíssimo provavelmente por fuga de
corrente em algum lugar. Como colocamos muita eletrônica, tá dificil saber
onde está a fuga de corrente.

A questão principal é a seguinte: Algum fenomeno eletrônico está influindo
no microcontrolador de alguma forma que o Clock do processador fica maluco,
do nada estou gerando um clock de 1ms (que é muito) e isso cai para nano
segundos repentinamente quando vou receber dados de outro componente (uma
memória flash), depois normaliza quando estou enviando dados pelo SPI (SPI
em software).

2016-04-07 11:19 GMT-03:00 Leonardo Baracat <lbaracat at gmail.com>:

> Eu achei esse post. Achei bastante interessante.
>
> 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!!
>
> On Thu, Apr 7, 2016 at 10:25 AM Alejandro Mesias <ale.mesias at gmail.com>
> wrote:
>
>> Alta impedância faria muito sentido.
>>
>> Em 7 de abril de 2016 09:54, Marcelo Campos <marcelo.camposs182 at gmail.com
>> > escreveu:
>>
>>> do momento do Reset até você mandar definição dela, fica no 3o estado /
>>> alta impedância
>>>
>>
>>>
>>> Em quinta-feira, 7 de abril de 2016 09:39:51 UTC-3, Mesias escreveu:
>>>>
>>>> Procurei muito na internet mas não encontrei uma resposta clara, estou
>>>> usando um Arduino mega 2560. Qual seria o estado inicial dos pinos
>>>> digitais, pwm e analógicos antes que execute comando neles ?
>>>>
>>>> As possibilidades são:
>>>> -- Em alta (seria 5v mas acho pouco provável),
>>>> -- em baixa (0v ou terra).
>>>> -- alta impedância (o que ocorre em modo leitura).
>>>>
>>>> --
>>>> ======================================
>>>> Alejandro Mesias André Nebra Perez
>>>> Java/Python/Js/Something else Developer
>>>> Twitter: @meszias
>>>> Linux User #442506
>>>> Campinas - SP - Brasil - South America
>>>> ======================================
>>>>
>>> --
>>> -... . . -..- -.-. . .-.. .-.. . -. - - --- . .- -.-. .... --- - .... .
>>> .-.
>>> 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)
>>>
>>
>>
>>
>> --
>> ======================================
>> Alejandro Mesias André Nebra Perez
>> Java/Python/Js/Something else Developer
>> Twitter: @meszias
>> Linux User #442506
>> Campinas - SP - Brasil - South America
>> ======================================
>>
>> --
>> 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+unsubscribe at googlegroups.com.
>> Para mais opções, acesse https://groups.google.com/d/optout.
>>
> --
> 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+unsubscribe at googlegroups.com.
> Para mais opções, acesse https://groups.google.com/d/optout.
>



-- 
======================================
Alejandro Mesias André Nebra Perez
Java/Python/Js/Something else Developer
Twitter: @meszias
Linux User #442506
Campinas - SP - Brasil - South America
======================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.tia.mat.br/pipermail/hsc-tia.mat.br/attachments/20160407/e444471d/attachment.html>


More information about the HSC mailing list