Search found 5 matches

by schafon
Sat Jan 04, 2020 2:45 pm
Forum: General Discussion and Questions
Topic: Looking for a way to use a memory consuming array
Replies: 10
Views: 8516

Re: Looking for a way to use a memory consuming array

The temperature range I'm aiming for is 25 - 250 degrees c. I'm currently using 100K NTC resistor and 4.7K as a series resistor, where the NTC resistor is connected to Vin. My firsts tests show that I'm using the full range of the ADC input ( up to 3.1 V if I remember correctly) so the ATTN_6DB can'...
by schafon
Sat Jan 04, 2020 1:48 pm
Forum: General Discussion and Questions
Topic: Looking for a way to use a memory consuming array
Replies: 10
Views: 8516

Re: Looking for a way to use a memory consuming array

It's worth checking this out, BTW, the ADC reading is for a temperature sensors that can have an error of up to 3 degrees.
by schafon
Fri Jan 03, 2020 8:30 pm
Forum: General Discussion and Questions
Topic: Looking for a way to use a memory consuming array
Replies: 10
Views: 8516

Re: Looking for a way to use a memory consuming array

If speed does not matter, you can save it to a file. You may also add this table as a python module into frozen bytecode, like @pythoncoder and other do with font tables (see https://github.com/peterhinch/micropython-font-to-py). The drawback is, that you would have to create a specific image for e...
by schafon
Fri Jan 03, 2020 7:34 pm
Forum: General Discussion and Questions
Topic: Looking for a way to use a memory consuming array
Replies: 10
Views: 8516

Re: Looking for a way to use a memory consuming array

safetyfactorman wrote:
Fri Jan 03, 2020 7:07 pm
viewtopic.php?t=3899
Thanks for the answer but this is not the solution I'm looking for.
I'm developing a product and need to reduce the costs ;)
by schafon
Fri Jan 03, 2020 2:44 pm
Forum: General Discussion and Questions
Topic: Looking for a way to use a memory consuming array
Replies: 10
Views: 8516

Looking for a way to use a memory consuming array

Hello, I'm working with MicroPython for serval weeks now. My board is the ESP32. My goal is to get calibrated values from the ADC and in order to do so, I converted an ADC calibration script that someone has written in C++ for the Arduino to CPython module. The script returns (prints) and array cons...