Analog averaging techniques

Official FreeEMS vanilla firmware development, the heart and soul of the system!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Analog averaging techniques

Post 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.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
AbeFM
Post Whore!
Posts: 629
Joined: Sat Feb 16, 2008 12:11 am
Location: Sunny San Diego
Contact:

Re: Analog averaging techniques

Post by AbeFM »

A programmable RC circuit, which averages your analog signals analogly. :-)
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Analog averaging techniques

Post 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.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
EssEss
LQFP112 - Up with the play
Posts: 244
Joined: Thu Sep 10, 2009 9:23 am
Location: Dayton, OH

Re: Analog averaging techniques

Post 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 ?
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Analog averaging techniques

Post 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.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
EssEss
LQFP112 - Up with the play
Posts: 244
Joined: Thu Sep 10, 2009 9:23 am
Location: Dayton, OH

Re: Analog averaging techniques

Post 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.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Analog averaging techniques

Post 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.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
EssEss
LQFP112 - Up with the play
Posts: 244
Joined: Thu Sep 10, 2009 9:23 am
Location: Dayton, OH

Re: Analog averaging techniques

Post 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.
User avatar
EssEss
LQFP112 - Up with the play
Posts: 244
Joined: Thu Sep 10, 2009 9:23 am
Location: Dayton, OH

Re: Analog averaging techniques

Post 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.
User avatar
EssEss
LQFP112 - Up with the play
Posts: 244
Joined: Thu Sep 10, 2009 9:23 am
Location: Dayton, OH

Re: Analog averaging techniques

Post 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.
Post Reply