giuino wrote:Buy a 16*2 display and you're ok
I'm reading your code...
there are some mistakes
First of all you're assuming a 5v source, so you assume you're sensor voltage swings 0-5v
In real world 5v will be more 4,5-4,8v
So, first of all find a convenient power source, test it and find your 5volt value;
then on:change 5.0 with your new voltage.Code: Select all
float voltage = average * (5.0 / 1023.0);
Second:no sense to use voltage and divide by 5... just use the averaged adc read:Code: Select all
float kpa = ((voltage / 5) - .5)/.2;
the delay should be only at the end of the loop no sense to stop the routine halfwayCode: Select all
float kpa = (average - .5)/.2;
same applies to voltage2 and kpa2
don't know your sensors linearity and scale, but I think you took them from a datasheet and be ok.
Ok, had some time to look into this.
I checked all 3 sensors as well as the datasheet for the diff pressure sensor. The A-D corrections now reflect what i found. I haven't ran the bench because my kids are sleeping, i'll try that tomorrow. The delays were also fixed, forgot to remove those as i added more to the code. lol
The averaged ADC read is still raw though, i need a voltage value in that formula to convert to Kpa.no sense to use voltage and divide by 5... just use the averaged adc read:Code: Select all
float kpa = (average - .5)/.2;
The 2nd MAP sensor is connected and working to correct Depression, it's corrected after the voltage to Kpa to WC conversion and and not ADC yet... That's a project for another night.
It's the temp correction that i'm now unsure about. My original plan was to use a GM Coolant temp or air intake temp sensor but i think an active sensor built for the arduino might be a better option.
I also just found the Guino Dashboard project, seems like it might be a cool deal and fit right in with what i'm looking for. need to see if it'll display text instead of just sliders and graphs though.
http://www.instructables.com/id/Guino-D ... r-Arduino/ Pretty cool.
giuino wrote:Yes, 'cause CFM is a volume measure and volume is affected by temp...Superdave wrote:Awesome, thanks for the advice!
I'll work that in tonight, last night I started to work on adding the 2nd MAP sensor to correct the depression numbers VS Baro.
Do you guys think it's worth correcting CFM vs air temp?
for baro correction use always a formula embedding the adc values (not the volt output)
I thought so, should be a fun addition.
you think using the ADC values VS the volt output will make that big of a difference?
Thanks again for all your input.
Later,
Dave