Page 1 of 2
Analog averaging techniques
Posted: Wed Apr 02, 2008 5:57 pm
by Fred
Again, just some links I needed to put up for discussion so I can close a few windows that have been open for weeks.
There must be a few ways to skin this cat, and I'm wondering if any of you have any statistical expertise in this regard?
http://www.tigoe.net/pcomp/code/categor ... owiring/37
http://www.tigoe.net/pcomp/code/categor ... owiring/42
http://www.tigoe.net/pcomp/code/categor ... ocessing/7
Thoughts?
Fred.
Re: Analog averaging techniques
Posted: Fri Apr 18, 2008 7:12 pm
by AbeFM
A programmable RC circuit, which averages your analog signals analogly.
Re: Analog averaging techniques
Posted: Mon Sep 14, 2009 10:46 pm
by Fred
We will almost certainly need this very soon :-) Who wants a job working on it? The skeleton is there, just replace the in = out code with averaging code and we are good to go.
High priority here.
Fred.
Re: Analog averaging techniques
Posted: Tue Sep 15, 2009 6:01 am
by EssEss
how about simply doing
this to start ?
any explanation is all right there. yes it's basic, but does it need to be any more complicated initially ?
whats the deadline ?
Re: Analog averaging techniques
Posted: Tue Sep 15, 2009 8:02 am
by Fred
Yes, that sounds reasonable! I'm OK accepting patches against my code to apply also (If you don't want to get up to speed with Git).
No specific deadline, but I may be longing for it by the weekend when having no filtering starts to hurt me :-)
If the system sucks without it (and other features) then I can just not use it and can just log the existing setup along side the inputs. Hence no real rush, take your time :-)
Fred.
Re: Analog averaging techniques
Posted: Tue Sep 15, 2009 4:12 pm
by EssEss
I'd like to do this proper, so I'll go to the back of the volunteer line until I get straight on what I need to setup exactly. I don't have the bandwidth right now to have something ready in a week. I will ask questions as I move along - I saw a few threads which will get me going.
Re: Analog averaging techniques
Posted: Tue Sep 15, 2009 10:40 pm
by Fred
No worries! Maybe we can pair program this when/if I get to your place. It's not like it's a particularly difficult one to do anyway :-)
Fred.
Re: Analog averaging techniques
Posted: Wed Sep 16, 2009 12:06 am
by EssEss
right - it really is simple, I could just rip it out and let you integrate it.
I never did any pair programming - let alone on something embedded - thats got to be a pretty rare event. I'd let you drive
(which I think is what you're getting at)
.. I was just talking to an IT guy and he recommended VirtualBox .. so I'm getting that setup now on my windows box. I'm doing a netinst of debian now.
Re: Analog averaging techniques
Posted: Wed Sep 16, 2009 11:16 pm
by EssEss
almost there
Code: Select all
sean@chernobyl:/usr/m68hc11/bin$ git --version
git version 1.5.6.5
sean@chernobyl:/usr/m68hc11/bin$
I had a problem w/eclipse - I just might fall back on vi
but I saw that Fred had some kind of template for eclipse, so I'd like to see if I could work it out first.
Re: Analog averaging techniques
Posted: Thu Sep 17, 2009 12:11 am
by EssEss
eclipse is sorted..
git is sorted ...
Code: Select all
sean@chernobyl:~$ git clone git://github.com/fredcooke/freeems-vanilla.git
Initialized empty Git repository in /home/sean/freeems-vanilla/.git/
remote: Counting objects: 1618, done.
remote: Compressing objects: 100% (974/974), done.
remote: Total 1618 (delta 1158), reused 866 (delta 582)
Receiving objects: 100% (1618/1618), 1.13 MiB | 187 KiB/s, done.
Resolving deltas: 100% (1158/1158), done.
sean@chernobyl:~$
build fail
:
Code: Select all
sean@chernobyl:~/freeems-vanilla/src$ make all
################################################################################
# Creating the preprocessedc directory.... #
################################################################################
mkdir -p preprocessedc/hack
rmdir preprocessedc/hack
################################################################################
# Running the C Pre Processor... #
################################################################################
m68hc11-gcc -g -Wall -Werror -Winline -O -m68hcs12 -mshort -ffunction-sections -fomit-frame-pointer -msoft-reg-count=8 -mauto-incdec -fsigned-char -E freeEMS.c > preprocessedc/freeEMS.pp.c
m68hc11-gcc -g -Wall -Werror -Winline -O -m68hcs12 -mshort -ffunction-sections -fomit-frame-pointer -msoft-reg-count=8 -mauto-incdec -fsigned-char -E staticInit.c > preprocessedc/staticInit.pp.c
m68hc11-gcc -g -Wall -Werror -Winline -O -m68hcs12 -mshort -ffunction-sections -fomit-frame-pointer -msoft-reg-count=8 -mauto-incdec -fsigned-char -E main.c > preprocessedc/main.pp.c
m68hc11-gcc -g -Wall -Werror -Winline -O -m68hcs12 -mshort -ffunction-sections -fomit-frame-pointer -msoft-reg-count=8 -mauto-incdec -fsigned-char -E tableLookup.c > preprocessedc/tableLookup.pp.c
m68hc11-gcc -g -Wall -Werror -Winline -O -m68hcs12 -mshort -ffunction-sections -fomit-frame-pointer -msoft-reg-count=8 -mauto-incdec -fsigned-char -E init.c > preprocessedc/init.pp.c
init.c:52:20: string.h: No such file or directory
make: *** [preprocessedc/init.pp.c] Error 1
sean@chernobyl:~/freeems-vanilla/src$
... gotta stop for now, I'll figure it out later. looks like a simple path problem.