Re: Arduino + MCP9600 + thermocouple help needed

Liste des GroupesRevenir à rc metalworking 
Sujet : Re: Arduino + MCP9600 + thermocouple help needed
De : no (at) *nospam* no.no (James Waldby)
Groupes : rec.crafts.metalworking
Date : 21. Mar 2024, 07:25:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utgjs3$222s3$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-100-generic (x86_64))
Clare Snyder <clare@snyder.on.ca> wrote:
On Wed, 20 Mar 2024 07:47:03 -0000 (UTC), (James Waldby) wrote:
Richard Smith <null@void.com> wrote:
"Jim Wilkins" <muratlanne@gmail.com> writes:
"Richard Smith"  wrote in message news:m1ttl3qahq.fsf@void.com...
"Second picture is where commented-out "pinMode(2,
INPUT_PULLUP);". Initially LED lighting randomly when button not
pressed. Then added in the circuit the "pull-up" resistor connected to
on-board supply voltage and the circuit behaved like the first
circuit."
[snip]
Unconnected inputs are sensitive antennas that pick up secret messages
from space, or noise from fluorescent lights and radio/TV
transmitters. Some even float to a middle level where they partly turn
on both the input high and input low circuits, causing oscillation or
higher power consumption. They are all best made high or low if not
used. [...]

Setting an open IO to low or high output like that is one approach,
but on the Arduino Uno a simpler / less risky approach is to set
pinMode to INPUT_PULLUP.  Note, ATmega328P microcontroller chip
hardware as on an Uno sets all IO pins to INPUT during Reset, but boot
firmware changes the modes of some pins like D0, D1, D13 as per eg
<https://forum.arduino.cc/t/behavior-of-pins-during-reset-state/640285/12>
[snip]

The arduino instructions say to tie all unused digital inputs either
high or low and all analog inputs low to prevent ambiguous outputs.

That's probably ok advice in general, particularly for an Arduino Uno
being used for numerous projects.  But setting the modes of unused
inputs to INPUT_PULLUP seems safer, because then they won't be at risk
of Gnd-to-V+ shorts due to program glitches.  That aside, I should do
some measurements to see which is best among the various INPUT /
OUTPUT / INPUT_PULLUP modes, with input left open / connected to Gnd /
connected to V+.  Note, some Arduino inputs don't have internal
pullups available.  For example, A6 and A7 on Arduinos with ATmega -P
and -PA processors, and most IO pins on ESP8266-based micros.


Date Sujet#  Auteur
18 Mar 24 * Arduino + MCP9600 + thermocouple help needed44Richard Smith
19 Mar 24 +* Re: Arduino + MCP9600 + thermocouple help needed41Jim Wilkins
19 Mar 24 i`* Re: Arduino + MCP9600 + thermocouple help needed40Jim Wilkins
19 Mar 24 i +* Re: Arduino + MCP9600 + thermocouple help needed38Richard Smith
19 Mar 24 i i+* Re: Arduino + MCP9600 + thermocouple help needed8David Billington
19 Mar 24 i ii`* Re: Arduino + MCP9600 + thermocouple help needed7Richard Smith
20 Mar 24 i ii +* Re: Arduino + MCP9600 + thermocouple help needed5Jim Wilkins
20 Mar 24 i ii i`* Re: Arduino + MCP9600 + thermocouple help needed4Richard Smith
20 Mar 24 i ii i +- Re: Arduino + MCP9600 + thermocouple help needed1Jim Wilkins
20 Mar 24 i ii i +- Re: Arduino + MCP9600 + thermocouple help needed1Jim Wilkins
20 Mar 24 i ii i `- Re: Arduino + MCP9600 + thermocouple help needed1Clare Snyder
20 Mar 24 i ii `- Re: Arduino + MCP9600 + thermocouple help needed1Jim Wilkins
19 Mar 24 i i`* Re: Arduino + MCP9600 + thermocouple help needed29Jim Wilkins
19 Mar 24 i i `* Re: Arduino + MCP9600 + thermocouple help needed28Richard Smith
19 Mar 24 i i  +* Re: Arduino + MCP9600 + thermocouple help needed13Jim Wilkins
19 Mar 24 i i  i`* Re: Arduino + MCP9600 + thermocouple help needed12Leon Fisk
19 Mar 24 i i  i +* Re: Arduino + MCP9600 + thermocouple help needed8Jim Wilkins
19 Mar 24 i i  i i`* Re: Arduino + MCP9600 + thermocouple help needed7Leon Fisk
19 Mar 24 i i  i i +* Re: Arduino + MCP9600 + thermocouple help needed5Jim Wilkins
19 Mar 24 i i  i i i`* Re: Arduino + MCP9600 + thermocouple help needed4Leon Fisk
19 Mar 24 i i  i i i `* Re: Arduino + MCP9600 + thermocouple help needed3Jim Wilkins
20 Mar 24 i i  i i i  `* Re: Arduino + MCP9600 + thermocouple help needed2Leon Fisk
20 Mar 24 i i  i i i   `- Re: Arduino + MCP9600 + thermocouple help needed1Clare Snyder
20 Mar 24 i i  i i `- Re: Arduino + MCP9600 + thermocouple help needed1Clare Snyder
20 Mar 24 i i  i `* Re: Arduino + MCP9600 + thermocouple help needed3Clare Snyder
20 Mar 24 i i  i  `* Re: Arduino + MCP9600 + thermocouple help needed2Leon Fisk
21 Mar 24 i i  i   `- Re: Arduino + MCP9600 + thermocouple help needed1Clare Snyder
19 Mar 24 i i  +- Re: Arduino + MCP9600 + thermocouple help needed1Jim Wilkins
20 Mar 24 i i  `* Re: Arduino + MCP9600 + thermocouple help needed13James Waldby
20 Mar 24 i i   +* Re: Arduino + MCP9600 + thermocouple help needed5Jim Wilkins
21 Mar 24 i i   i`* Re: Arduino + MCP9600 + thermocouple help needed4James Waldby
21 Mar 24 i i   i +- Re: Arduino + MCP9600 + thermocouple help needed1Jim Wilkins
21 Mar 24 i i   i `* Re: Arduino + MCP9600 + thermocouple help needed2Jim Wilkins
22 Mar 24 i i   i  `- Re: Arduino + MCP9600 + thermocouple help needed1Leon Fisk
20 Mar 24 i i   +* Re: Arduino + MCP9600 + thermocouple help needed3Richard Smith
20 Mar 24 i i   i+- Re: Arduino + MCP9600 + thermocouple help needed1Clare Snyder
21 Mar 24 i i   i`- Re: Arduino + MCP9600 + thermocouple help needed1Jim Wilkins
20 Mar 24 i i   `* Re: Arduino + MCP9600 + thermocouple help needed4Clare Snyder
21 Mar 24 i i    `* Re: Arduino + MCP9600 + thermocouple help needed3James Waldby
21 Mar 24 i i     `* Re: Arduino + MCP9600 + thermocouple help needed2Jim Wilkins
22 Mar 24 i i      `- Re: Arduino + MCP9600 + thermocouple help needed1Richard Smith
19 Mar 24 i `- Re: Arduino + MCP9600 + thermocouple help needed1Jim Wilkins
19 Mar 24 `* Re: Arduino + MCP9600 + thermocouple help needed2Jim Wilkins
19 Mar 24  `- Re: Arduino + MCP9600 + thermocouple help needed1Richard Smith

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal