Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

To communicate is the beginning of understanding. -- AT&T


devel / comp.lang.forth / Re: A NTC Thermistor on a ESP32

SubjectAuthor
* A NTC Thermistor on a ESP32Jos Ven
+* Re: A NTC Thermistor on a ESP32dxforth
|`* Re: A NTC Thermistor on a ESP32Jos Ven
| `* Re: A NTC Thermistor on a ESP32dxforth
|  `* Re: A NTC Thermistor on a ESP32Jos Ven
|   `* Re: A NTC Thermistor on a ESP32dxforth
|    +- Re: A NTC Thermistor on a ESP32Zbig
|    `* Re: A NTC Thermistor on a ESP32Lorem Ipsum
|     +* Re: A NTC Thermistor on a ESP32Jon Nicoll
|     |`- Re: A NTC Thermistor on a ESP32Lorem Ipsum
|     `* Re: A NTC Thermistor on a ESP32dxforth
|      `* Re: A NTC Thermistor on a ESP32S Jack
|       `* Re: A NTC Thermistor on a ESP32dxforth
|        `- Re: A NTC Thermistor on a ESP32John I. Helmers
`* Re: A NTC Thermistor on a ESP32Hans Bezemer
 +- Re: A NTC Thermistor on a ESP32Jos Ven
 `* Re: A NTC Thermistor on a ESP32Jos Ven
  `* Re: A NTC Thermistor on a ESP32Hans Bezemer
   `* Re: A NTC Thermistor on a ESP32Jos Ven
    `* Re: A NTC Thermistor on a ESP32Hans Bezemer
     +* Re: A NTC Thermistor on a ESP32dxforth
     |+* Re: A NTC Thermistor on a ESP32Hans Bezemer
     ||`- Re: A NTC Thermistor on a ESP32dxforth
     |`- Re: A NTC Thermistor on a ESP32Hans Bezemer
     `- Re: A NTC Thermistor on a ESP32Jos Ven

1
A NTC Thermistor on a ESP32

<1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20202&group=comp.lang.forth#20202

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:4729:b0:6ce:e55:b6ab with SMTP id bs41-20020a05620a472900b006ce0e55b6abmr4296238qkb.36.1663342436598;
Fri, 16 Sep 2022 08:33:56 -0700 (PDT)
X-Received: by 2002:a81:7986:0:b0:349:853d:d165 with SMTP id
u128-20020a817986000000b00349853dd165mr4840565ywc.467.1663342436289; Fri, 16
Sep 2022 08:33:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 16 Sep 2022 08:33:56 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
Subject: A NTC Thermistor on a ESP32
From: jos...@planet.nl (Jos Ven)
Injection-Date: Fri, 16 Sep 2022 15:33:56 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1655
 by: Jos Ven - Fri, 16 Sep 2022 15:33 UTC

Hi,
Often a digital censor is used to measure the temperature in a room.
On an ESP32 a NTC Thermistor is also a good alternative.

After some tests I now use:
- The Steinhart-Hart equation to calculate the temperature of the NTC.
- The ADC calibration bits of the ESP32. (Factory defaults)
- Multisampling
- A ring buffer

You can download the source ntc_sh.fth at:
http://home.kpn.nl/~josv/ from the Smart home page

The Steinhart-Hart equation should run on most ANSI Forth-systems
with a floating point extension.
(tested under Cforth, Gforth and Win32forth)

To monitor the NTC you need to add some ADC words if
you do not use cforth (LWIP branch).

Jos

Re: A NTC Thermistor on a ESP32

<tg3fj2$86a$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20203&group=comp.lang.forth#20203

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: A NTC Thermistor on a ESP32
Date: Sat, 17 Sep 2022 13:40:21 +1000
Organization: Aioe.org NNTP Server
Message-ID: <tg3fj2$86a$1@gioia.aioe.org>
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="8394"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: dxforth - Sat, 17 Sep 2022 03:40 UTC

On 17/09/2022 1:33 am, Jos Ven wrote:
> Hi,
> Often a digital censor is used to measure the temperature in a room.
> On an ESP32 a NTC Thermistor is also a good alternative.

Don't know much about ESP32 but how is a thermistor a good alternative
to a LM35 etc for this particular application? I mention this as a
Rinnai heater owner who has struggled with its hopeless temperature
sensing ability.

Re: A NTC Thermistor on a ESP32

<de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20204&group=comp.lang.forth#20204

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:e319:0:b0:6cd:f643:b6d6 with SMTP id y25-20020a37e319000000b006cdf643b6d6mr6789985qki.616.1663408655744;
Sat, 17 Sep 2022 02:57:35 -0700 (PDT)
X-Received: by 2002:a81:14c3:0:b0:34c:e28c:851f with SMTP id
186-20020a8114c3000000b0034ce28c851fmr407669ywu.391.1663408655390; Sat, 17
Sep 2022 02:57:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 17 Sep 2022 02:57:35 -0700 (PDT)
In-Reply-To: <tg3fj2$86a$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com> <tg3fj2$86a$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: jos...@planet.nl (Jos Ven)
Injection-Date: Sat, 17 Sep 2022 09:57:35 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2029
 by: Jos Ven - Sat, 17 Sep 2022 09:57 UTC

Op zaterdag 17 september 2022 om 05:40:21 UTC+2 schreef dxforth:
> On 17/09/2022 1:33 am, Jos Ven wrote:
> > Hi,
> > Often a digital censor is used to measure the temperature in a room.
> > On an ESP32 a NTC Thermistor is also a good alternative.
> Don't know much about ESP32 but how is a thermistor a good alternative
> to a LM35 etc for this particular application? I mention this as a
> Rinnai heater owner who has struggled with its hopeless temperature
> sensing ability.

Hi,
An ESP32 is a cheap MCU with several ADC's.
My objective was only to measure the temperature in a room.

> Don't know much about ESP32 but how is a thermistor a good alternative to a LM35 etc.

Not always, a thermistor lacks a digital output.
The response of a thermistor is non-lineair.
One advantage of a thermistor is that it can be mounted to a plate.
Not sure if you can do so easy with a LM35.
Jos

Re: A NTC Thermistor on a ESP32

<tg4f30$1421$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20205&group=comp.lang.forth#20205

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: A NTC Thermistor on a ESP32
Date: Sat, 17 Sep 2022 22:37:52 +1000
Organization: Aioe.org NNTP Server
Message-ID: <tg4f30$1421$1@gioia.aioe.org>
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org>
<de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="36929"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: dxforth - Sat, 17 Sep 2022 12:37 UTC

On 17/09/2022 7:57 pm, Jos Ven wrote:
> Op zaterdag 17 september 2022 om 05:40:21 UTC+2 schreef dxforth:
> ...
>> Don't know much about ESP32 but how is a thermistor a good alternative to a LM35 etc.
>
> Not always, a thermistor lacks a digital output.
> The response of a thermistor is non-lineair.
> One advantage of a thermistor is that it can be mounted to a plate.
> Not sure if you can do so easy with a LM35.
> Jos

LM35 is analog out (10mV/C). Flat-sided plastic pack makes mounting
easy (saddle clamp). Price difference for a few units is negligible.
Simpler software :)

Re: A NTC Thermistor on a ESP32

<102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20206&group=comp.lang.forth#20206

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:1255:b0:6ce:59a0:f2ee with SMTP id a21-20020a05620a125500b006ce59a0f2eemr7989970qkl.111.1663433850325;
Sat, 17 Sep 2022 09:57:30 -0700 (PDT)
X-Received: by 2002:a25:c086:0:b0:69c:a123:b18c with SMTP id
c128-20020a25c086000000b0069ca123b18cmr8747668ybf.237.1663433850099; Sat, 17
Sep 2022 09:57:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 17 Sep 2022 09:57:29 -0700 (PDT)
In-Reply-To: <tg4f30$1421$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org> <de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: jos...@planet.nl (Jos Ven)
Injection-Date: Sat, 17 Sep 2022 16:57:30 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1977
 by: Jos Ven - Sat, 17 Sep 2022 16:57 UTC

Op zaterdag 17 september 2022 om 14:37:56 UTC+2 schreef dxforth:
> On 17/09/2022 7:57 pm, Jos Ven wrote:
> > Op zaterdag 17 september 2022 om 05:40:21 UTC+2 schreef dxforth:
> > ...
> >> Don't know much about ESP32 but how is a thermistor a good alternative to a LM35 etc.
> >
> > Not always, a thermistor lacks a digital output.
> > The response of a thermistor is non-lineair.
> > One advantage of a thermistor is that it can be mounted to a plate.
> > Not sure if you can do so easy with a LM35.
> > Jos
> LM35 is analog out (10mV/C). Flat-sided plastic pack makes mounting
> easy (saddle clamp). Price difference for a few units is negligible.
> Simpler software :)

Thank you.
It seems there is not much room for a thermistor.
Jos

Re: A NTC Thermistor on a ESP32

<tg65co$k78$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20207&group=comp.lang.forth#20207

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: A NTC Thermistor on a ESP32
Date: Sun, 18 Sep 2022 14:04:40 +1000
Organization: Aioe.org NNTP Server
Message-ID: <tg65co$k78$1@gioia.aioe.org>
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org>
<de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org>
<102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="20712"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Sun, 18 Sep 2022 04:04 UTC

On 18/09/2022 2:57 am, Jos Ven wrote:
> Op zaterdag 17 september 2022 om 14:37:56 UTC+2 schreef dxforth:
>> On 17/09/2022 7:57 pm, Jos Ven wrote:
>>> Op zaterdag 17 september 2022 om 05:40:21 UTC+2 schreef dxforth:
>>> ...
>>>> Don't know much about ESP32 but how is a thermistor a good alternative to a LM35 etc.
>>>
>>> Not always, a thermistor lacks a digital output.
>>> The response of a thermistor is non-lineair.
>>> One advantage of a thermistor is that it can be mounted to a plate.
>>> Not sure if you can do so easy with a LM35.
>>> Jos
>> LM35 is analog out (10mV/C). Flat-sided plastic pack makes mounting
>> easy (saddle clamp). Price difference for a few units is negligible.
>> Simpler software :)
>
> Thank you.
> It seems there is not much room for a thermistor.
> Jos

There are several sensors in the range LM35, LM34, LM335. Shocked to
discover National Semiconductor had been taken over by Texas Instruments...

Re: A NTC Thermistor on a ESP32

<24acf661-d2ac-465e-8569-5e102ba04f35n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20208&group=comp.lang.forth#20208

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:ca:b0:35c:b8c3:ab05 with SMTP id p10-20020a05622a00ca00b0035cb8c3ab05mr10872291qtw.92.1663491481581;
Sun, 18 Sep 2022 01:58:01 -0700 (PDT)
X-Received: by 2002:a05:6902:124a:b0:6aa:1181:840a with SMTP id
t10-20020a056902124a00b006aa1181840amr11220049ybu.166.1663491481242; Sun, 18
Sep 2022 01:58:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 18 Sep 2022 01:58:01 -0700 (PDT)
In-Reply-To: <tg65co$k78$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:a31d:a246:1300:1cec:889e:3a9e:92a8;
posting-account=cxuXKwoAAABQpPOMD55A9IPz7pPrw6ml
NNTP-Posting-Host: 2a02:a31d:a246:1300:1cec:889e:3a9e:92a8
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org> <de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org> <102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
<tg65co$k78$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <24acf661-d2ac-465e-8569-5e102ba04f35n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: zbigniew...@gmail.com (Zbig)
Injection-Date: Sun, 18 Sep 2022 08:58:01 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1614
 by: Zbig - Sun, 18 Sep 2022 08:58 UTC

> There are several sensors in the range LM35, LM34, LM335. Shocked to

Maybe something like this: https://www.ebay.com/itm/275434342506
....or like this one: https://www.ebay.com/itm/402606493588
Not that expensive, so it may be worth to try them.

Re: A NTC Thermistor on a ESP32

<fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20211&group=comp.lang.forth#20211

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:644e:0:b0:6cb:cd57:f9a7 with SMTP id y75-20020a37644e000000b006cbcd57f9a7mr10932341qkb.57.1663530992200;
Sun, 18 Sep 2022 12:56:32 -0700 (PDT)
X-Received: by 2002:a25:e78a:0:b0:6a9:83:553f with SMTP id e132-20020a25e78a000000b006a90083553fmr11714680ybh.104.1663530991948;
Sun, 18 Sep 2022 12:56:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 18 Sep 2022 12:56:31 -0700 (PDT)
In-Reply-To: <tg65co$k78$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=63.114.57.174; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 63.114.57.174
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org> <de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org> <102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
<tg65co$k78$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: gnuarm.d...@gmail.com (Lorem Ipsum)
Injection-Date: Sun, 18 Sep 2022 19:56:32 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2564
 by: Lorem Ipsum - Sun, 18 Sep 2022 19:56 UTC

On Sunday, September 18, 2022 at 12:04:43 AM UTC-4, dxforth wrote:
> On 18/09/2022 2:57 am, Jos Ven wrote:
> > Op zaterdag 17 september 2022 om 14:37:56 UTC+2 schreef dxforth:
> >> On 17/09/2022 7:57 pm, Jos Ven wrote:
> >>> Op zaterdag 17 september 2022 om 05:40:21 UTC+2 schreef dxforth:
> >>> ...
> >>>> Don't know much about ESP32 but how is a thermistor a good alternative to a LM35 etc.
> >>>
> >>> Not always, a thermistor lacks a digital output.
> >>> The response of a thermistor is non-lineair.
> >>> One advantage of a thermistor is that it can be mounted to a plate.
> >>> Not sure if you can do so easy with a LM35.
> >>> Jos
> >> LM35 is analog out (10mV/C). Flat-sided plastic pack makes mounting
> >> easy (saddle clamp). Price difference for a few units is negligible.
> >> Simpler software :)
> >
> > Thank you.
> > It seems there is not much room for a thermistor.
> > Jos
> There are several sensors in the range LM35, LM34, LM335. Shocked to
> discover National Semiconductor had been taken over by Texas Instruments...

??? Really? That happened, what 10, 15 years ago?

--

Rick C.

- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209

Re: A NTC Thermistor on a ESP32

<b70f78c0-c860-4260-8cb2-b06577dc3488n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20212&group=comp.lang.forth#20212

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:1ccc:b0:496:ab0a:896a with SMTP id g12-20020a0562141ccc00b00496ab0a896amr11854114qvd.36.1663535781428;
Sun, 18 Sep 2022 14:16:21 -0700 (PDT)
X-Received: by 2002:a05:6902:124a:b0:6aa:1181:840a with SMTP id
t10-20020a056902124a00b006aa1181840amr13048520ybu.166.1663535781276; Sun, 18
Sep 2022 14:16:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 18 Sep 2022 14:16:21 -0700 (PDT)
In-Reply-To: <fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.92.96.37; posting-account=xy4V0QkAAAAoGgkMsSsv6bfFPHkQXvOY
NNTP-Posting-Host: 84.92.96.37
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org> <de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org> <102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
<tg65co$k78$1@gioia.aioe.org> <fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b70f78c0-c860-4260-8cb2-b06577dc3488n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: jkn...@nicorp.f9.co.uk (Jon Nicoll)
Injection-Date: Sun, 18 Sep 2022 21:16:21 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2714
 by: Jon Nicoll - Sun, 18 Sep 2022 21:16 UTC

On Sunday, September 18, 2022 at 8:56:33 PM UTC+1, gnuarm.del...@gmail.com wrote:
> On Sunday, September 18, 2022 at 12:04:43 AM UTC-4, dxforth wrote:
> > On 18/09/2022 2:57 am, Jos Ven wrote:
> > > Op zaterdag 17 september 2022 om 14:37:56 UTC+2 schreef dxforth:
> > >> On 17/09/2022 7:57 pm, Jos Ven wrote:
> > >>> Op zaterdag 17 september 2022 om 05:40:21 UTC+2 schreef dxforth:
> > >>> ...
> > >>>> Don't know much about ESP32 but how is a thermistor a good alternative to a LM35 etc.
> > >>>
> > >>> Not always, a thermistor lacks a digital output.
> > >>> The response of a thermistor is non-lineair.
> > >>> One advantage of a thermistor is that it can be mounted to a plate.
> > >>> Not sure if you can do so easy with a LM35.
> > >>> Jos
> > >> LM35 is analog out (10mV/C). Flat-sided plastic pack makes mounting
> > >> easy (saddle clamp). Price difference for a few units is negligible.
> > >> Simpler software :)
> > >
> > > Thank you.
> > > It seems there is not much room for a thermistor.
> > > Jos
> > There are several sensors in the range LM35, LM34, LM335. Shocked to
> > discover National Semiconductor had been taken over by Texas Instruments...
> ??? Really? That happened, what 10, 15 years ago?

2011. I confess I thought it was earlier than that

Re: A NTC Thermistor on a ESP32

<d3de4333-d03c-41f5-896b-feac644f2b45n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20213&group=comp.lang.forth#20213

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:3c5:0:b0:6ce:3f31:e019 with SMTP id 188-20020a3703c5000000b006ce3f31e019mr11532129qkd.498.1663543743946;
Sun, 18 Sep 2022 16:29:03 -0700 (PDT)
X-Received: by 2002:a05:6902:138b:b0:64f:cb1c:9eac with SMTP id
x11-20020a056902138b00b0064fcb1c9eacmr13186459ybu.457.1663543743544; Sun, 18
Sep 2022 16:29:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 18 Sep 2022 16:29:03 -0700 (PDT)
In-Reply-To: <b70f78c0-c860-4260-8cb2-b06577dc3488n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=63.114.57.174; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 63.114.57.174
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org> <de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org> <102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
<tg65co$k78$1@gioia.aioe.org> <fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>
<b70f78c0-c860-4260-8cb2-b06577dc3488n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d3de4333-d03c-41f5-896b-feac644f2b45n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: gnuarm.d...@gmail.com (Lorem Ipsum)
Injection-Date: Sun, 18 Sep 2022 23:29:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3957
 by: Lorem Ipsum - Sun, 18 Sep 2022 23:29 UTC

On Sunday, September 18, 2022 at 5:16:22 PM UTC-4, Jon Nicoll wrote:
> On Sunday, September 18, 2022 at 8:56:33 PM UTC+1, gnuarm.del...@gmail.com wrote:
> > On Sunday, September 18, 2022 at 12:04:43 AM UTC-4, dxforth wrote:
> > > On 18/09/2022 2:57 am, Jos Ven wrote:
> > > > Op zaterdag 17 september 2022 om 14:37:56 UTC+2 schreef dxforth:
> > > >> On 17/09/2022 7:57 pm, Jos Ven wrote:
> > > >>> Op zaterdag 17 september 2022 om 05:40:21 UTC+2 schreef dxforth:
> > > >>> ...
> > > >>>> Don't know much about ESP32 but how is a thermistor a good alternative to a LM35 etc.
> > > >>>
> > > >>> Not always, a thermistor lacks a digital output.
> > > >>> The response of a thermistor is non-lineair.
> > > >>> One advantage of a thermistor is that it can be mounted to a plate.
> > > >>> Not sure if you can do so easy with a LM35.
> > > >>> Jos
> > > >> LM35 is analog out (10mV/C). Flat-sided plastic pack makes mounting
> > > >> easy (saddle clamp). Price difference for a few units is negligible.
> > > >> Simpler software :)
> > > >
> > > > Thank you.
> > > > It seems there is not much room for a thermistor.
> > > > Jos
> > > There are several sensors in the range LM35, LM34, LM335. Shocked to
> > > discover National Semiconductor had been taken over by Texas Instruments...
> > ??? Really? That happened, what 10, 15 years ago?
> 2011. I confess I thought it was earlier than that

Maybe you are thinking of Harris? I think TI acquired their logic lines some time ago and they have some overlap with National logic devices, which I think National acquired with Fairchild Semi in the late 80s. Fairchild was a hell of an entrepreneur. He started lots of companies, which helped define their respective industries.

I believe I've seen the same part sold by TI under two slightly different part numbers, because each was acquired from a different company. I know they are actually different because they still use the original data sheets with the TI name stuck somewhere. These were FFs and the action of asserting both set and reset simultaneously was different. I ended up doing a survey of available devices and found different behaviors from several sources.

--

Rick C.

+ Get 1,000 miles of free Supercharging
+ Tesla referral code - https://ts.la/richard11209

Re: A NTC Thermistor on a ESP32

<tg8jie$1783$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20214&group=comp.lang.forth#20214

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: A NTC Thermistor on a ESP32
Date: Mon, 19 Sep 2022 12:18:53 +1000
Organization: Aioe.org NNTP Server
Message-ID: <tg8jie$1783$1@gioia.aioe.org>
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org>
<de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org>
<102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
<tg65co$k78$1@gioia.aioe.org>
<fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="40195"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: dxforth - Mon, 19 Sep 2022 02:18 UTC

On 19/09/2022 5:56 am, Lorem Ipsum wrote:
> On Sunday, September 18, 2022 at 12:04:43 AM UTC-4, dxforth wrote:
>> Shocked to
>> discover National Semiconductor had been taken over by Texas Instruments...
>
> ??? Really? That happened, what 10, 15 years ago?

It's always a shock to discover players which had such a large influence
in one's early years and career had gone the way of the dodo. I won't
ask for minute's silence instead leave folks to mourn in their own way.

Re: A NTC Thermistor on a ESP32

<163eccd8-b57b-45bb-85af-58e88d661e75n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20216&group=comp.lang.forth#20216

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a0c:a88a:0:b0:474:7f16:f272 with SMTP id x10-20020a0ca88a000000b004747f16f272mr14755590qva.4.1663595384081;
Mon, 19 Sep 2022 06:49:44 -0700 (PDT)
X-Received: by 2002:a81:4f83:0:b0:349:cc19:7ccf with SMTP id
d125-20020a814f83000000b00349cc197ccfmr14367297ywb.308.1663595383858; Mon, 19
Sep 2022 06:49:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 19 Sep 2022 06:49:43 -0700 (PDT)
In-Reply-To: <tg8jie$1783$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:996a:e5a4:f152:719c;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:996a:e5a4:f152:719c
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org> <de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org> <102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
<tg65co$k78$1@gioia.aioe.org> <fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>
<tg8jie$1783$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <163eccd8-b57b-45bb-85af-58e88d661e75n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: sdwjac...@gmail.com (S Jack)
Injection-Date: Mon, 19 Sep 2022 13:49:44 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2904
 by: S Jack - Mon, 19 Sep 2022 13:49 UTC

On Sunday, September 18, 2022 at 9:18:59 PM UTC-5, dxforth wrote:

> It's always a shock to discover players which had such a large influence
> in one's early years and career had gone the way of the dodo. I won't
> ask for minute's silence instead leave folks to mourn in their own way.

Updates for my Dell chromebook ended in July; it had reached its end-of-life
date (AUE). I only had it for about three years. A purchaser needs to check
the AUE before buying to see how long the particular chromebook will be
supported.
With my chromebook now unsupported and I need more memory anyway I started
looking for a new one. I checked Chrome's list of partners and was
surprised that Dell wasn't listed. I checked around and found that Dell
had been outsourcing its chromebook to Taiwan and now
that company, ASUS, sells that chromebook under its brand. It appears Dell
lost its chomebook because of outsourcing decisions.
More checking found these Taiwan companies are just store fronts for
mainland China; manufacturing is mainland at some big hub (Suzhou) west
of Shanghai where most of worlds computers are built including the likes
of HP and ACR.
I just did another search to get the name of manufacturing town that
I had found in July. Search results are now much different; harder
to link ASUS and others to the mainland. Ask where ASUS is manufactured
and get that it's headquarters is in Taiwan (Not what I asked!).
--
me

Re: A NTC Thermistor on a ESP32

<tgb730$u4l$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20220&group=comp.lang.forth#20220

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: A NTC Thermistor on a ESP32
Date: Tue, 20 Sep 2022 12:04:17 +1000
Organization: Aioe.org NNTP Server
Message-ID: <tgb730$u4l$1@gioia.aioe.org>
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org>
<de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org>
<102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
<tg65co$k78$1@gioia.aioe.org>
<fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>
<tg8jie$1783$1@gioia.aioe.org>
<163eccd8-b57b-45bb-85af-58e88d661e75n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="30869"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Tue, 20 Sep 2022 02:04 UTC

On 19/09/2022 11:49 pm, S Jack wrote:
> On Sunday, September 18, 2022 at 9:18:59 PM UTC-5, dxforth wrote:
>
>> It's always a shock to discover players which had such a large influence
>> in one's early years and career had gone the way of the dodo. I won't
>> ask for minute's silence instead leave folks to mourn in their own way.
>
> Updates for my Dell chromebook ended in July; it had reached its end-of-life
> date (AUE). I only had it for about three years. A purchaser needs to check
> the AUE before buying to see how long the particular chromebook will be
> supported.

Caveat emptor. Even so, there may be nothing from the manufacturer to
indicate what support it will provide. Like you I got burned with a
Samsung phone that never received an Android update contrary to other
regions for the same model. For me the update was critical to run a
COVID check-in app. I now take the view anything requiring connection
to the internet is inherently obsolete. Brand loyalty - forget it.

Re: A NTC Thermistor on a ESP32

<fe6597ba-eb4c-45c7-8f13-f9b5a59f0681n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20225&group=comp.lang.forth#20225

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a0c:c98a:0:b0:4ac:9f4b:efed with SMTP id b10-20020a0cc98a000000b004ac9f4befedmr21625109qvk.35.1663716205231;
Tue, 20 Sep 2022 16:23:25 -0700 (PDT)
X-Received: by 2002:a81:73d6:0:b0:348:a7b7:10e6 with SMTP id
o205-20020a8173d6000000b00348a7b710e6mr21671392ywc.61.1663716204880; Tue, 20
Sep 2022 16:23:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Tue, 20 Sep 2022 16:23:24 -0700 (PDT)
In-Reply-To: <tgb730$u4l$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=71.37.203.149; posting-account=ElGQGAoAAADvWBG34BX-rf23qagaAaAE
NNTP-Posting-Host: 71.37.203.149
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<tg3fj2$86a$1@gioia.aioe.org> <de246d59-c47a-44d6-924a-14b07368ee34n@googlegroups.com>
<tg4f30$1421$1@gioia.aioe.org> <102a5bea-d7ed-41ef-bc2c-68e6604b2b3fn@googlegroups.com>
<tg65co$k78$1@gioia.aioe.org> <fc741316-7f6a-4499-ac22-363d44342e8en@googlegroups.com>
<tg8jie$1783$1@gioia.aioe.org> <163eccd8-b57b-45bb-85af-58e88d661e75n@googlegroups.com>
<tgb730$u4l$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fe6597ba-eb4c-45c7-8f13-f9b5a59f0681n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: helmers....@gmail.com (John I. Helmers)
Injection-Date: Tue, 20 Sep 2022 23:23:25 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2756
 by: John I. Helmers - Tue, 20 Sep 2022 23:23 UTC

On Monday, September 19, 2022 at 9:04:23 PM UTC-5, dxforth wrote:
> On 19/09/2022 11:49 pm, S Jack wrote:
> > On Sunday, September 18, 2022 at 9:18:59 PM UTC-5, dxforth wrote:
> >
> >> It's always a shock to discover players which had such a large influence
> >> in one's early years and career had gone the way of the dodo. I won't
> >> ask for minute's silence instead leave folks to mourn in their own way.
> >
> > Updates for my Dell chromebook ended in July; it had reached its end-of-life
> > date (AUE). I only had it for about three years. A purchaser needs to check
> > the AUE before buying to see how long the particular chromebook will be
> > supported.
> Caveat emptor. Even so, there may be nothing from the manufacturer to
> indicate what support it will provide. Like you I got burned with a
> Samsung phone that never received an Android update contrary to other
> regions for the same model. For me the update was critical to run a
> COVID check-in app. I now take the view anything requiring connection
> to the internet is inherently obsolete. Brand loyalty - forget it.

here is the Google site to check a chromebook model for its scheduled end-of-life:https://support.google.com/chrome/a/answer/6220366?

Re: A NTC Thermistor on a ESP32

<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20252&group=comp.lang.forth#20252

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ae9:c103:0:b0:6ce:1a9f:9f76 with SMTP id z3-20020ae9c103000000b006ce1a9f9f76mr6220760qki.306.1663948884067;
Fri, 23 Sep 2022 09:01:24 -0700 (PDT)
X-Received: by 2002:a05:6902:138b:b0:64f:cb1c:9eac with SMTP id
x11-20020a056902138b00b0064fcb1c9eacmr10621196ybu.457.1663948883610; Fri, 23
Sep 2022 09:01:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 23 Sep 2022 09:01:23 -0700 (PDT)
In-Reply-To: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Fri, 23 Sep 2022 16:01:24 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2003
 by: Hans Bezemer - Fri, 23 Sep 2022 16:01 UTC

On Friday, September 16, 2022 at 5:33:57 PM UTC+2, Jos Ven wrote:
> The Steinhart-Hart equation should run on most ANSI Forth-systems
> with a floating point extension.
> (tested under Cforth, Gforth and Win32forth)
I ported it to 4tH. The only problems I found was:
- A separate FP stack (not a problem - I got both);
- The use of FVALUE - I had to replace that one;
- You can't erase FLOATs (or any other non-character datatype). So I made a replacement. It's not required, since all 4tH memory is zeroed on startup - but still.
The rest was quietly handled by some stubs (KEY) and the preprocessor.
> To monitor the NTC you need to add some ADC words if
> you do not use cforth (LWIP branch).
I faked those sensors with a bit of S/W. 1500 mV gave me about room temperature. And then let it run and see the temperature slowly sway ;-)

Hans Bezemer

Re: A NTC Thermistor on a ESP32

<7e7bd613-88c8-4344-9766-b0eb777a3dfan@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20281&group=comp.lang.forth#20281

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:4310:b0:6ac:f9df:178d with SMTP id u16-20020a05620a431000b006acf9df178dmr11246435qko.773.1664099939932;
Sun, 25 Sep 2022 02:58:59 -0700 (PDT)
X-Received: by 2002:a25:37cb:0:b0:6b1:db19:83cf with SMTP id
e194-20020a2537cb000000b006b1db1983cfmr17517109yba.391.1664099939750; Sun, 25
Sep 2022 02:58:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 25 Sep 2022 02:58:59 -0700 (PDT)
In-Reply-To: <0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com> <0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7e7bd613-88c8-4344-9766-b0eb777a3dfan@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: jos...@planet.nl (Jos Ven)
Injection-Date: Sun, 25 Sep 2022 09:58:59 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2156
 by: Jos Ven - Sun, 25 Sep 2022 09:58 UTC

Op vrijdag 23 september 2022 om 18:01:25 UTC+2 schreef the.bee...@gmail.com:
> On Friday, September 16, 2022 at 5:33:57 PM UTC+2, Jos Ven wrote:
> > The Steinhart-Hart equation should run on most ANSI Forth-systems
> > with a floating point extension.
> > (tested under Cforth, Gforth and Win32forth)
> I ported it to 4tH. The only problems I found was:
> - A separate FP stack (not a problem - I got both);
> - The use of FVALUE - I had to replace that one;
> - You can't erase FLOATs (or any other non-character datatype). So I made a replacement. It's not required, since all 4tH memory is zeroed on startup - but still.
> The rest was quietly handled by some stubs (KEY) and the preprocessor.
> > To monitor the NTC you need to add some ADC words if
> > you do not use cforth (LWIP branch).
> I faked those sensors with a bit of S/W. 1500 mV gave me about room temperature. And then let it run and see the temperature slowly sway ;-)
>
> Hans Bezemer

Re: A NTC Thermistor on a ESP32

<26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20282&group=comp.lang.forth#20282

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:5d69:0:b0:4ad:6a63:b4a0 with SMTP id fn9-20020ad45d69000000b004ad6a63b4a0mr13094281qvb.122.1664100116128;
Sun, 25 Sep 2022 03:01:56 -0700 (PDT)
X-Received: by 2002:a25:4286:0:b0:6ae:6f2b:a8d4 with SMTP id
p128-20020a254286000000b006ae6f2ba8d4mr17611590yba.530.1664100115878; Sun, 25
Sep 2022 03:01:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 25 Sep 2022 03:01:55 -0700 (PDT)
In-Reply-To: <0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com> <0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: jos...@planet.nl (Jos Ven)
Injection-Date: Sun, 25 Sep 2022 10:01:56 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2467
 by: Jos Ven - Sun, 25 Sep 2022 10:01 UTC

Op vrijdag 23 september 2022 om 18:01:25 UTC+2 schreef th..ail.com:
> On Friday, September 16, 2022 at 5:33:57 PM UTC+2, Jos Ven wrote:
> > The Steinhart-Hart equation should run on most ANSI Forth-systems
> > with a floating point extension.
> > (tested under Cforth, Gforth and Win32forth)
> I ported it to 4tH. The only problems I found was:
> - A separate FP stack (not a problem - I got both);
> - The use of FVALUE - I had to replace that one;
> - You can't erase FLOATs (or any other non-character datatype). So I made a replacement. It's not required, since all 4tH memory is zeroed on startup - but still.
> The rest was quietly handled by some stubs (KEY) and the preprocessor.
> > To monitor the NTC you need to add some ADC words if
> > you do not use cforth (LWIP branch).
> I faked those sensors with a bit of S/W. 1500 mV gave me about room temperature. And then let it run and see the temperature slowly sway ;-)
>
> Hans Bezemer

Hi,

Thank you for looking so close to my source.

In the other Forth systems, I got the following:
For Cforth:
- Has no find
- Must use f# to get a float on the stack

For Gforth version 0.7.9_20210930:
- Has no f#

What happens in your Forth when you use:
create &buf 4 floats allot
&buf f@ f.

Jos

Re: A NTC Thermistor on a ESP32

<efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20285&group=comp.lang.forth#20285

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:f6d:b0:4ac:a1ca:9de4 with SMTP id iy13-20020a0562140f6d00b004aca1ca9de4mr13598333qvb.62.1664107455990;
Sun, 25 Sep 2022 05:04:15 -0700 (PDT)
X-Received: by 2002:a25:c74b:0:b0:6b4:8d79:ee67 with SMTP id
w72-20020a25c74b000000b006b48d79ee67mr17088459ybe.93.1664107455694; Sun, 25
Sep 2022 05:04:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 25 Sep 2022 05:04:15 -0700 (PDT)
In-Reply-To: <26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com> <26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Sun, 25 Sep 2022 12:04:15 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Hans Bezemer - Sun, 25 Sep 2022 12:04 UTC

On Sunday, September 25, 2022 at 12:01:57 PM UTC+2, Jos Ven wrote:
> Thank you for looking so close to my source.
I should thank you! It was a an entertaining and satisfying exercise.
> In the other Forth systems, I got the following:
> For Cforth:
> - Has no find
> - Must use f# to get a float on the stack
Guilty on both. I used [DEFINED] for it. I don't have F# either (name clash),
but its equivalent is F%.

And as I said: I don't have FVALUE or a "true" KEY? The latter is an alias
for FALSE. And finally: MS has a resolution of 1000 MS ;-)

> What happens in your Forth when you use:
create &buf
Creates a table for R/O integer constants;

4 floats
Throws the size for 4 floating points numbers on the stack (not
quite - but let's not go into detail);

allot
Syntax error: No such word. In order to do what you want to do
I have to write:

4 FLOATS ARRAY &BUF

That does it.

> &buf f@ f.
No problem. It will work as intended.

Hans Bezemer

BTW, here is a list of changes to your code:

> cr decimal fclear
FCLEAR initializes floating point properly

> f% 3300 fvariable Vs latest f! \ In mV, measure it
> f% 10000 fvariable R0 latest f! \ 10K
> f% 298.15e0 fconstant T0 \ Temperature in Kelvin at 25C
> f% 273.15e0 fconstant 0C \ Temperature in Kelvin at 0C
> f% 0.7556958984e-3 fvariable A_sh latest f!
> f% 2.334204104e-4 fvariable B_sh latest f!
> f% 0.6102744539e-7 fvariable C_sh latest f!
> : 1/f ( F: f - 1/f ) f% 1 fswap f/ ;
Obviously due to the use of F% and FVALUE conversion

> Vs f@ s>f f- ;
> fdup R0 f@ f* Vs f@ frot f- f/ ;
> fln fdup fdup fdup f* f* C_sh f@ f* \ C*(ln(Rnct))^3
> fswap B_sh f@ f* f+
> A_sh f@ f+ \ 1/T
> cr .( A: ) A_sh f@ f.
> cr .( B: ) B_sh f@ f.
> cr .( C: ) C_sh f@ f.
> cr .( Vs: ) Vs f@ f. ( mV )
> cr .( Resistor R0:) R0 f@ f.
Obviously to the conversion of FVALUE to FVARIABLE

> cr .( Rt:) f% 29456 fdup f>s . ntc-sh
Another due to the use of F%

> [defined] adc-mv [if] \ For Cforth on a ESP32:
Here you got your FIND

> 32 constant /adc_chars
I don't do prefixed numbers

> /adc_chars floats array &adc_chars
Here you got my ARRAY

> 1500000 value Mv \ fake sensor reading
> : read-adc-mv drop Mv 1000 / 10001 choose 5000 - +to Mv ;
> : init-adc drop drop drop ;
This is my fake sensor

> cr .( to monitor the NTC.) cr cr
> [then]
Obviously - I can't QUIT here

> f% 1.292290081e-3 A_sh f!
> f% 2.164041451e-4 B_sh f!
> f% 0.8776278596e-7 C_sh f!
> f% 0 fvariable av-trim latest f! \ if needed
> cr .( A ) A_sh f@ f.
> cr .( B ) B_sh f@ f.
> cr .( C ) C_sh f@ f.
> cr .( av-trim :) av-trim f@ f.
> cr .( Vs :) Vs f@ f.
> cr .( Resistor R0:) R0 f@ f.
More FVALUE and F% stuff

> 10 constant #samples
I don't do prefixed numbers

> 60 constant /ring-buf \ To reduce the ADC noise further
In 4tH, you can't initialize with a VALUE

> /ring-buf floats array &ring-buf
Here you got my ARRAY again

> f% 0 ring-buf-count /ring-buf min dup 0
Obviously due to the use of F%

> dup 3 3 init-adc 3 set-precision
I just liked a slightly higher precision ;-)

> 0 to ring-buf-count
I split this line in two lines

> /ring-buf 0 ?do f% 0 &ring-buf i floats + f! loop \ erase
All memory is zero-ed at startup, but let's stay in the spirit ;-)

> ring-buf-count . av-ntc av-trim f@ f+ f.
Another victim of FVALUE

> 5 monitor-ntc
In 4tH, you have to start something. If not, it just compiles it
and quits immediately.

Running your program (first 12 "measurements"):

$ pp4th -x ntc_sh.4pp

ntc_sh.fth the Steinhart-Hart equation.

ntc-sh ( Rt - Celsius ) can be used.

adc-mv ( adc_chars reading - mV ) is missing.
See: https://github.com/MitchBradley/cforth/tree/WIP
Or define your own accurate read-adc-mv and init-adc here
to monitor the NTC.

Parameters for NTC B57164K0103:
A 0.0012922900810
B 0.0002164041451
C 0.0000000877627

av-trim :0.00
Vs :33
Resistor R0:10

To monitor the NTC on adc-channel 5 enter: 5 monitor-ntc

Sec C
1 21.0
2 21.0
3 21.0
4 21.1
5 21.2
6 21.2
7 21.2
8 21.2
9 21.2
10 21.2
11 21.2
12 21.2

Re: A NTC Thermistor on a ESP32

<29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20286&group=comp.lang.forth#20286

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:1a0a:b0:6ce:bd2c:d32e with SMTP id bk10-20020a05620a1a0a00b006cebd2cd32emr11315078qkb.756.1664109739583;
Sun, 25 Sep 2022 05:42:19 -0700 (PDT)
X-Received: by 2002:a0d:d716:0:b0:345:1ca0:49d5 with SMTP id
z22-20020a0dd716000000b003451ca049d5mr16457519ywd.166.1664109739260; Sun, 25
Sep 2022 05:42:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 25 Sep 2022 05:42:18 -0700 (PDT)
In-Reply-To: <efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com> <26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
<efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: jos...@planet.nl (Jos Ven)
Injection-Date: Sun, 25 Sep 2022 12:42:19 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 6063
 by: Jos Ven - Sun, 25 Sep 2022 12:42 UTC

Op zondag 25 september 2022 om 14:04:17 UTC+2 schreef the.bee..om:
> On Sunday, September 25, 2022 at 12:01:57 PM UTC+2, Jos Ven wrote:
> > Thank you for looking so close to my source.
> I should thank you! It was a an entertaining and satisfying exercise.
> > In the other Forth systems, I got the following:
> > For Cforth:
> > - Has no find
> > - Must use f# to get a float on the stack
> Guilty on both. I used [DEFINED] for it. I don't have F# either (name clash),
> but its equivalent is F%.
>
> And as I said: I don't have FVALUE or a "true" KEY? The latter is an alias
> for FALSE. And finally: MS has a resolution of 1000 MS ;-)
> > What happens in your Forth when you use:
> create &buf
> Creates a table for R/O integer constants;
>
> 4 floats
> Throws the size for 4 floating points numbers on the stack (not
> quite - but let's not go into detail);
>
> allot
> Syntax error: No such word. In order to do what you want to do
> I have to write:
>
> 4 FLOATS ARRAY &BUF
>
> That does it.
>
> > &buf f@ f.
> No problem. It will work as intended.
>
> Hans Bezemer
>
> BTW, here is a list of changes to your code:
>
> > cr decimal fclear
> FCLEAR initializes floating point properly
>
> > f% 3300 fvariable Vs latest f! \ In mV, measure it
> > f% 10000 fvariable R0 latest f! \ 10K
> > f% 298.15e0 fconstant T0 \ Temperature in Kelvin at 25C
> > f% 273.15e0 fconstant 0C \ Temperature in Kelvin at 0C
> > f% 0.7556958984e-3 fvariable A_sh latest f!
> > f% 2.334204104e-4 fvariable B_sh latest f!
> > f% 0.6102744539e-7 fvariable C_sh latest f!
> > : 1/f ( F: f - 1/f ) f% 1 fswap f/ ;
> Obviously due to the use of F% and FVALUE conversion
>
> > Vs f@ s>f f- ;
> > fdup R0 f@ f* Vs f@ frot f- f/ ;
> > fln fdup fdup fdup f* f* C_sh f@ f* \ C*(ln(Rnct))^3
> > fswap B_sh f@ f* f+
> > A_sh f@ f+ \ 1/T
> > cr .( A: ) A_sh f@ f.
> > cr .( B: ) B_sh f@ f.
> > cr .( C: ) C_sh f@ f.
> > cr .( Vs: ) Vs f@ f. ( mV )
> > cr .( Resistor R0:) R0 f@ f.
> Obviously to the conversion of FVALUE to FVARIABLE
>
> > cr .( Rt:) f% 29456 fdup f>s . ntc-sh
> Another due to the use of F%
>
> > [defined] adc-mv [if] \ For Cforth on a ESP32:
> Here you got your FIND
>
> > 32 constant /adc_chars
> I don't do prefixed numbers
>
> > /adc_chars floats array &adc_chars
> Here you got my ARRAY
>
> > 1500000 value Mv \ fake sensor reading
> > : read-adc-mv drop Mv 1000 / 10001 choose 5000 - +to Mv ;
> > : init-adc drop drop drop ;
> This is my fake sensor
>
> > cr .( to monitor the NTC.) cr cr
> > [then]
> Obviously - I can't QUIT here
>
> > f% 1.292290081e-3 A_sh f!
> > f% 2.164041451e-4 B_sh f!
> > f% 0.8776278596e-7 C_sh f!
> > f% 0 fvariable av-trim latest f! \ if needed
> > cr .( A ) A_sh f@ f.
> > cr .( B ) B_sh f@ f.
> > cr .( C ) C_sh f@ f.
> > cr .( av-trim :) av-trim f@ f.
> > cr .( Vs :) Vs f@ f.
> > cr .( Resistor R0:) R0 f@ f.
> More FVALUE and F% stuff
>
> > 10 constant #samples
> I don't do prefixed numbers
>
> > 60 constant /ring-buf \ To reduce the ADC noise further
> In 4tH, you can't initialize with a VALUE
>
> > /ring-buf floats array &ring-buf
> Here you got my ARRAY again
>
> > f% 0 ring-buf-count /ring-buf min dup 0
> Obviously due to the use of F%
>
> > dup 3 3 init-adc 3 set-precision
> I just liked a slightly higher precision ;-)
>
> > 0 to ring-buf-count
> I split this line in two lines
>
> > /ring-buf 0 ?do f% 0 &ring-buf i floats + f! loop \ erase
> All memory is zero-ed at startup, but let's stay in the spirit ;-)
>
> > ring-buf-count . av-ntc av-trim f@ f+ f.
> Another victim of FVALUE
>
> > 5 monitor-ntc
> In 4tH, you have to start something. If not, it just compiles it
> and quits immediately.
>
> Running your program (first 12 "measurements"):
>
> $ pp4th -x ntc_sh.4pp
>
> ntc_sh.fth the Steinhart-Hart equation.
>
> ntc-sh ( Rt - Celsius ) can be used.
>
> adc-mv ( adc_chars reading - mV ) is missing.
> See: https://github.com/MitchBradley/cforth/tree/WIP
> Or define your own accurate read-adc-mv and init-adc here
> to monitor the NTC.
>
>
> Parameters for NTC B57164K0103:
> A 0.0012922900810
> B 0.0002164041451
> C 0.0000000877627
>
> av-trim :0.00
> Vs :33
> Resistor R0:10
>
> To monitor the NTC on adc-channel 5 enter: 5 monitor-ntc
>
> Sec C
> 1 21.0
> 2 21.0
> 3 21.0
> 4 21.1
> 5 21.2
> 6 21.2
> 7 21.2
> 8 21.2
> 9 21.2
> 10 21.2
> 11 21.2
> 12 21.2

> I used [DEFINED] for it.
That was an extra problem under Cforth.
Cforth has no [DEFINED].
In the end I was forced to use catch.

Jos

Re: A NTC Thermistor on a ESP32

<512d5881-1ebf-4c9f-9e32-92ff1fdec486n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20311&group=comp.lang.forth#20311

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5c91:0:b0:35b:bc2d:527 with SMTP id r17-20020ac85c91000000b0035bbc2d0527mr18388838qta.674.1664206023490;
Mon, 26 Sep 2022 08:27:03 -0700 (PDT)
X-Received: by 2002:a81:5705:0:b0:350:f11b:fb2b with SMTP id
l5-20020a815705000000b00350f11bfb2bmr2677266ywb.457.1664206023087; Mon, 26
Sep 2022 08:27:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 26 Sep 2022 08:27:02 -0700 (PDT)
In-Reply-To: <29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com> <26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
<efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com> <29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <512d5881-1ebf-4c9f-9e32-92ff1fdec486n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Mon, 26 Sep 2022 15:27:03 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1933
 by: Hans Bezemer - Mon, 26 Sep 2022 15:27 UTC

On Sunday, September 25, 2022 at 2:42:20 PM UTC+2, Jos Ven wrote:
> That was an extra problem under Cforth.
> Cforth has no [DEFINED].
> In the end I was forced to use catch.

Well, you won't be able to completely discard that CForth solution,
but according to your own stack comments and those I retrieved
from CForths Github, may be this helps?

: (defined) parse-word $find nip ;
: [defined] (defined) ; immediate
: [undefined] (defined) 0= ; immediate

Unfortunately, I couldn't find any documentation there, so it's
still a guess.

Hans Bezemer

Re: A NTC Thermistor on a ESP32

<tgsms2$1fa6$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20313&group=comp.lang.forth#20313

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: A NTC Thermistor on a ESP32
Date: Tue, 27 Sep 2022 03:17:55 +1000
Organization: Aioe.org NNTP Server
Message-ID: <tgsms2$1fa6$1@gioia.aioe.org>
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com>
<26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
<efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com>
<29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>
<512d5881-1ebf-4c9f-9e32-92ff1fdec486n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="48454"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.3.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Mon, 26 Sep 2022 17:17 UTC

On 27/09/2022 1:27 am, Hans Bezemer wrote:
> On Sunday, September 25, 2022 at 2:42:20 PM UTC+2, Jos Ven wrote:
>> That was an extra problem under Cforth.
>> Cforth has no [DEFINED].
>> In the end I was forced to use catch.
>
> Well, you won't be able to completely discard that CForth solution,
> but according to your own stack comments and those I retrieved
> from CForths Github, may be this helps?
>
> : (defined) parse-word $find nip ;
> : [defined] (defined) ; immediate
> : [undefined] (defined) 0= ; immediate
>
> Unfortunately, I couldn't find any documentation there, so it's
> still a guess.

This def from Cforth indicates $find has unbalanced output:

: $defined ( "name" -- adr len 0 | xt +-1 ) safe-parse-word $find ;

try:

: (defined) $defined ?dup >r 2drop r> ;
: [defined] (defined) ; immediate
: [undefined] (defined) 0= ; immediate

I doubt Cforth was ever intended to be standard.

Re: A NTC Thermistor on a ESP32

<7dbb0cf0-8f60-4032-a951-f38074511b50n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20314&group=comp.lang.forth#20314

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:17aa:b0:6ce:5fe3:1c35 with SMTP id ay42-20020a05620a17aa00b006ce5fe31c35mr15130723qkb.337.1664212715697;
Mon, 26 Sep 2022 10:18:35 -0700 (PDT)
X-Received: by 2002:a05:6902:124a:b0:6aa:1181:840a with SMTP id
t10-20020a056902124a00b006aa1181840amr23102501ybu.166.1664212714808; Mon, 26
Sep 2022 10:18:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 26 Sep 2022 10:18:34 -0700 (PDT)
In-Reply-To: <512d5881-1ebf-4c9f-9e32-92ff1fdec486n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com> <26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
<efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com> <29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>
<512d5881-1ebf-4c9f-9e32-92ff1fdec486n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7dbb0cf0-8f60-4032-a951-f38074511b50n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: jos...@planet.nl (Jos Ven)
Injection-Date: Mon, 26 Sep 2022 17:18:35 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2240
 by: Jos Ven - Mon, 26 Sep 2022 17:18 UTC

Op maandag 26 september 2022 om 17:27:04 UTC+2 schreef the.be.om:
> On Sunday, September 25, 2022 at 2:42:20 PM UTC+2, Jos Ven wrote:
> > That was an extra problem under Cforth.
> > Cforth has no [DEFINED].
> > In the end I was forced to use catch.
> Well, you won't be able to completely discard that CForth solution,
> but according to your own stack comments and those I retrieved
> from CForths Github, may be this helps?
>
> : (defined) parse-word $find nip ;
> : [defined] (defined) ; immediate
> : [undefined] (defined) 0= ; immediate
>
> Unfortunately, I couldn't find any documentation there, so it's
> still a guess.
>
> Hans Bezemer

Thanks,

Cforth has [ifdef] so [defined] is not needed.
When I writing ntc_sh.fth I was looking for a
solution that has the least impact.

Jos

Re: A NTC Thermistor on a ESP32

<c1a3416a-6965-443c-b503-f2a6214d7488n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20316&group=comp.lang.forth#20316

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5705:0:b0:35c:d722:175d with SMTP id 5-20020ac85705000000b0035cd722175dmr19193221qtw.192.1664225015775;
Mon, 26 Sep 2022 13:43:35 -0700 (PDT)
X-Received: by 2002:a0d:eb49:0:b0:351:aa94:4e82 with SMTP id
u70-20020a0deb49000000b00351aa944e82mr485163ywe.166.1664225015584; Mon, 26
Sep 2022 13:43:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 26 Sep 2022 13:43:35 -0700 (PDT)
In-Reply-To: <tgsms2$1fa6$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com> <26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
<efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com> <29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>
<512d5881-1ebf-4c9f-9e32-92ff1fdec486n@googlegroups.com> <tgsms2$1fa6$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c1a3416a-6965-443c-b503-f2a6214d7488n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Mon, 26 Sep 2022 20:43:35 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1848
 by: Hans Bezemer - Mon, 26 Sep 2022 20:43 UTC

On Monday, September 26, 2022 at 7:18:06 PM UTC+2, dxforth wrote:
> This def from Cforth indicates $find has unbalanced output:
> : $defined ( "name" -- adr len 0 | xt +-1 ) safe-parse-word $find ;

Not according to this definition (or the stack comment must be wrong):

: $find ( str cnt -- str 0 | cfa flag ) pad place pad find ;

I can only do a proper job when the documentation is correct ;-)

Hans Bezemer

Re: A NTC Thermistor on a ESP32

<fb405675-6261-4960-a196-6ec6c91bf019n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20317&group=comp.lang.forth#20317

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1014:b0:35c:e8ef:a406 with SMTP id d20-20020a05622a101400b0035ce8efa406mr19997539qte.306.1664227437134;
Mon, 26 Sep 2022 14:23:57 -0700 (PDT)
X-Received: by 2002:a25:391:0:b0:6b3:e8a5:18f2 with SMTP id
139-20020a250391000000b006b3e8a518f2mr22902683ybd.635.1664227436858; Mon, 26
Sep 2022 14:23:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.niel.me!glou.org!news.glou.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 26 Sep 2022 14:23:56 -0700 (PDT)
In-Reply-To: <tgsms2$1fa6$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com> <26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
<efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com> <29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>
<512d5881-1ebf-4c9f-9e32-92ff1fdec486n@googlegroups.com> <tgsms2$1fa6$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fb405675-6261-4960-a196-6ec6c91bf019n@googlegroups.com>
Subject: Re: A NTC Thermistor on a ESP32
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Mon, 26 Sep 2022 21:23:57 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Hans Bezemer - Mon, 26 Sep 2022 21:23 UTC

On Monday, September 26, 2022 at 7:18:06 PM UTC+2, dxforth wrote:
> I doubt Cforth was ever intended to be standard.
I doubt it too. On the other hand, I had little trouble with the rest of it.
I have little trouble with $FIND as well - although I do find its use in
conditional compilation butt ugly.

My eyes always scan for "square bracket" words in order to pick out
the stuff that is compilation specific. Part of that habit is that in 4tH
virtually everything compilation related IS bracketed.

And sure - in the Forth world is not a major sin to make something that
is non-standard. What I find unforgivable is when the most important
words related to picking version specific stuff is missing:

(1) A word or constant related to that specific version - it may double
as something useful, e.g. in 4tH the word 4TH# holds the version number;
(2) [DEFINED] and/or [UNDEFINED].

Ad 1. In C this is pretty common. __TURBOC__, __MINGW__, __GCC__ are
a few examples.

Ad 2. This way you can catch specific stuff like:
[UNDEFINED] gforth [IF] : [IFDEF] [COMPILE] [DEFINED] [COMPILE] [IF] ; [THEN]

It's the easiest way to cater for all those tiny little differences. Although 4tH is not
the champion where standards are concerned, I made plenty of programs that
can be fed to either 4tH or Gforth without any edits.

That's why I'm always a bit, let's say: disappointed when I encounter a compiler
that doesn't get that little thing right.

Hans Bezemer

Re: A NTC Thermistor on a ESP32

<tgte86$qbr$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20318&group=comp.lang.forth#20318

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: A NTC Thermistor on a ESP32
Date: Tue, 27 Sep 2022 09:56:54 +1000
Organization: Aioe.org NNTP Server
Message-ID: <tgte86$qbr$1@gioia.aioe.org>
References: <1d6a1604-889c-4f39-97f0-88f6afca1d04n@googlegroups.com>
<0d537f6d-dfac-45ba-920c-03577f1ff72cn@googlegroups.com>
<26262618-7c47-483c-a3bd-ea378f5e62fcn@googlegroups.com>
<efd8f824-269f-4ed9-8a53-2433ed215912n@googlegroups.com>
<29b42e70-f153-4e96-92a7-6892758a4c4dn@googlegroups.com>
<512d5881-1ebf-4c9f-9e32-92ff1fdec486n@googlegroups.com>
<tgsms2$1fa6$1@gioia.aioe.org>
<c1a3416a-6965-443c-b503-f2a6214d7488n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="27003"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.3.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: dxforth - Mon, 26 Sep 2022 23:56 UTC

On 27/09/2022 6:43 am, Hans Bezemer wrote:
> On Monday, September 26, 2022 at 7:18:06 PM UTC+2, dxforth wrote:
>> This def from Cforth indicates $find has unbalanced output:
>> : $defined ( "name" -- adr len 0 | xt +-1 ) safe-parse-word $find ;
>
> Not according to this definition (or the stack comment must be wrong):
>
> : $find ( str cnt -- str 0 | cfa flag ) pad place pad find ;
>
> I can only do a proper job when the documentation is correct ;-)

Seems to be missing from the zip I d/loaded. Not sure I want to dig further...

On 27/09/2022 7:23 am, Hans Bezemer wrote:
> On Monday, September 26, 2022 at 7:18:06 PM UTC+2, dxforth wrote:
>> I doubt Cforth was ever intended to be standard.
>
> I doubt it too. On the other hand, I had little trouble with the rest of it.
> I have little trouble with $FIND as well - although I do find its use in
> conditional compilation butt ugly.
> ...
> And sure - in the Forth world is not a major sin to make something that
> is non-standard.

And surprising since Bradley was such a key player in standardization.
Perhaps he decided to go back to his roots.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor