Andurist AC lugemine
#63
Kui anduri ühendamisel rohkem agasid pole, ja võimalusi ka mitte, siis tuleb vist leppida, et targaga peab midagi ette võtma.
Samas, Arduino sisuga rohkem midagi väga teha ei saa, seega jääb koodis tulemuse silumine. Samas, kui polüga ei tule toime, saab mõõteulatuse tinglikult sektoriteks jagada (selekteerida alam-lineaarsed osad välja), ning koefitsente vastavalt vahemikele rakendada. Üsna astmeliseks võib minna, eriti üleminekukohtades.
Aga WolframAlpha pakkus seda lahendust küll, et annad sisse x ja y erinevad väärtused pikas vahemikus, ning arvutas välja koefitsendi, mis vastavalt neile peaks andma võimalikult ligilähedase olukorra, ehk et kui x on anduri lugem, ja y vajalik näit, siis saaks kätte A:

y=A*x, kus A=f(x).

Aga see f on kole pikk ja lohisev.

Aga ei midagi ülejõu käivat.



Sisendisse mingi ahela toppimine ka ei pruugi avitada vist väga? Passiivse ma mõtlen...
Selles ometi ei saa ju viga olla, et andur otse sisendis on, kuigi tal samasugune 50Hz väljund nagu voolul, mida ta mõõdab. Lineaarsus ikka ära ei tohi minna, ja koefitsent peaks ka erinevate sisendite puhul olema püsiv...

PS! Ahsoo, sa mõtled, et kui teisest väljundist lasta sisendisse siinuselist signaali, ja vaadata, mis sellega omakorda tehakse? Jajaa...
Vasta


Sõnumeid selles teemas
Andurist AC lugemine - Autor: W@ldur - 18-02-2013, 10:40 PM
RE: Andurist AC lugemine - Autor: madis - 18-02-2013, 11:49 PM
RE: Andurist AC lugemine - Autor: W@ldur - 19-02-2013, 12:12 AM
RE: Andurist AC lugemine - Autor: madis - 19-02-2013, 05:40 PM
RE: Andurist AC lugemine - Autor: W@ldur - 19-02-2013, 09:18 PM
RE: Andurist AC lugemine - Autor: martinr112 - 20-02-2013, 01:22 AM
RE: Andurist AC lugemine - Autor: W@ldur - 20-02-2013, 09:01 AM
RE: Andurist AC lugemine - Autor: madis - 20-02-2013, 10:49 AM
RE: Andurist AC lugemine - Autor: W@ldur - 20-02-2013, 12:06 PM
RE: Andurist AC lugemine - Autor: redart - 20-02-2013, 02:08 PM
RE: Andurist AC lugemine - Autor: martinr112 - 20-02-2013, 11:24 PM
RE: Andurist AC lugemine - Autor: madis - 20-02-2013, 11:28 PM
RE: Andurist AC lugemine - Autor: A.R. - 21-02-2013, 10:14 AM
RE: Andurist AC lugemine - Autor: W@ldur - 23-02-2013, 02:17 PM
RE: Andurist AC lugemine - Autor: A.R. - 23-02-2013, 03:35 PM
RE: Andurist AC lugemine - Autor: W@ldur - 23-02-2013, 03:40 PM
RE: Andurist AC lugemine - Autor: felch - 24-02-2013, 09:16 PM
RE: Andurist AC lugemine - Autor: A.R. - 25-02-2013, 09:45 AM
RE: Andurist AC lugemine - Autor: W@ldur - 25-02-2013, 12:34 PM
RE: Andurist AC lugemine - Autor: A.R. - 25-02-2013, 02:45 PM
RE: Andurist AC lugemine - Autor: W@ldur - 25-02-2013, 03:08 PM
RE: Andurist AC lugemine - Autor: andrei - 25-02-2013, 06:54 PM
RE: Andurist AC lugemine - Autor: A.R. - 25-02-2013, 06:07 PM
RE: Andurist AC lugemine - Autor: W@ldur - 25-02-2013, 07:23 PM
RE: Andurist AC lugemine - Autor: raivo - 25-02-2013, 09:13 PM
RE: Andurist AC lugemine - Autor: andrei - 25-02-2013, 09:48 PM
RE: Andurist AC lugemine - Autor: A.R. - 25-02-2013, 09:01 PM
RE: Andurist AC lugemine - Autor: W@ldur - 25-02-2013, 09:07 PM
RE: Andurist AC lugemine - Autor: W@ldur - 25-02-2013, 09:53 PM
RE: Andurist AC lugemine - Autor: andrei - 25-02-2013, 10:10 PM
RE: Andurist AC lugemine - Autor: W@ldur - 25-02-2013, 10:18 PM
RE: Andurist AC lugemine - Autor: raivo - 25-02-2013, 10:32 PM
RE: Andurist AC lugemine - Autor: W@ldur - 25-02-2013, 10:39 PM
RE: Andurist AC lugemine - Autor: andrei - 25-02-2013, 11:13 PM
RE: Andurist AC lugemine - Autor: W@ldur - 25-02-2013, 11:21 PM
RE: Andurist AC lugemine - Autor: madis - 26-02-2013, 12:28 AM
RE: Andurist AC lugemine - Autor: W@ldur - 26-02-2013, 12:49 AM
RE: Andurist AC lugemine - Autor: andrei - 26-02-2013, 01:33 AM
RE: Andurist AC lugemine - Autor: felch - 26-02-2013, 08:52 AM
RE: Andurist AC lugemine - Autor: A.R. - 26-02-2013, 11:09 AM
RE: Andurist AC lugemine - Autor: felch - 06-03-2013, 08:45 AM
RE: Andurist AC lugemine - Autor: A.R. - 06-03-2013, 01:02 PM
RE: Andurist AC lugemine - Autor: felch - 06-03-2013, 05:14 PM
RE: Andurist AC lugemine - Autor: A.R. - 06-03-2013, 06:51 PM
RE: Andurist AC lugemine - Autor: felch - 06-03-2013, 10:47 PM
RE: Andurist AC lugemine - Autor: W@ldur - 24-11-2013, 10:34 PM
RE: Andurist AC lugemine - Autor: martinr112 - 25-11-2013, 03:31 AM
RE: Andurist AC lugemine - Autor: W@ldur - 25-11-2013, 10:39 AM
RE: Andurist AC lugemine - Autor: martinr112 - 25-11-2013, 09:20 PM
RE: Andurist AC lugemine - Autor: madis - 26-11-2013, 12:41 AM
RE: Andurist AC lugemine - Autor: W@ldur - 08-01-2014, 12:03 PM
RE: Andurist AC lugemine - Autor: A.R. - 08-01-2014, 01:34 PM
RE: Andurist AC lugemine - Autor: W@ldur - 08-01-2014, 01:43 PM
RE: Andurist AC lugemine - Autor: A.R. - 08-01-2014, 02:38 PM
RE: Andurist AC lugemine - Autor: W@ldur - 08-01-2014, 03:21 PM
RE: Andurist AC lugemine - Autor: A.R. - 08-01-2014, 04:12 PM
RE: Andurist AC lugemine - Autor: madis - 08-01-2014, 05:39 PM
RE: Andurist AC lugemine - Autor: W@ldur - 08-01-2014, 08:20 PM
RE: Andurist AC lugemine - Autor: W@ldur - 09-01-2014, 11:04 AM
RE: Andurist AC lugemine - Autor: madis - 09-01-2014, 01:01 PM
RE: Andurist AC lugemine - Autor: W@ldur - 09-01-2014, 01:10 PM
RE: Andurist AC lugemine - Autor: A.R. - 09-01-2014, 02:32 PM
RE: Andurist AC lugemine - Autor: W@ldur - 09-01-2014, 02:43 PM
RE: Andurist AC lugemine - Autor: A.R. - 09-01-2014, 03:30 PM
RE: Andurist AC lugemine - Autor: madis - 09-01-2014, 05:30 PM
RE: Andurist AC lugemine - Autor: W@ldur - 09-01-2014, 05:40 PM
RE: Andurist AC lugemine - Autor: A.R. - 09-01-2014, 06:10 PM
RE: Andurist AC lugemine - Autor: madis - 09-01-2014, 08:01 PM
RE: Andurist AC lugemine - Autor: W@ldur - 09-01-2014, 09:09 PM
RE: Andurist AC lugemine - Autor: madis - 09-01-2014, 09:42 PM
RE: Andurist AC lugemine - Autor: W@ldur - 09-01-2014, 10:40 PM
RE: Andurist AC lugemine - Autor: madis - 09-01-2014, 11:24 PM
RE: Andurist AC lugemine - Autor: W@ldur - 10-01-2014, 12:00 AM
RE: Andurist AC lugemine - Autor: martinr112 - 10-01-2014, 01:56 AM
RE: Andurist AC lugemine - Autor: W@ldur - 10-01-2014, 10:37 AM
RE: Andurist AC lugemine - Autor: W@ldur - 13-01-2014, 12:31 PM
RE: Andurist AC lugemine - Autor: A.R. - 14-01-2014, 01:32 PM
RE: Andurist AC lugemine - Autor: A.R. - 21-01-2014, 10:15 AM

Alamfoorumi hüpe:


Kasutaja, kes vaatavad seda teemat: 9 külali(st)ne