Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 06-17-2008, 09:18 AM   #21 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,032

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 156
Thanked 264 Times in 207 Posts
Hmm, the malloc version returns 318, if I replace the memoryTest function with the following I get 381. I suspect the stack pointer version is not as future proof or accurate though. But it may still be useful enough. Your *10 malloc version also highlights the fact that the free memory may not be contiguous, since that returns only 170 bytes free when retrieved in 10 byte chunks.

Code:
extern int  __bss_end;
extern int  *__brkval;
int memoryTest(){
  int free_memory;
  if((int)__brkval == 0)
    free_memory = ((int)&free_memory) - ((int)&__bss_end);
  else
    free_memory = ((int)&free_memory) - ((int)__brkval);
  return free_memory;
}

__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 06-17-2008, 06:42 PM   #22 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,032

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 156
Thanked 264 Times in 207 Posts
Actually I did several ram optimizations and the malloc version did not register a change, but the above function showed 484 bytes free. And you are having issues with the malloc version, so lets go with the above function till it bites us I'll put it in the next version.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 06-17-2008, 07:55 PM   #23 (permalink)
EcoModding Apprentice
 
awillard69's Avatar
 
Join Date: Feb 2008
Location: Streamwood, IL
Posts: 105

Dakota - '00 Dodge Dakota Club Cab, Sport
90 day: 18.57 mpg (US)

Jeep - '01 Jeep Wrangler TJ Sport
90 day: 18.46 mpg (US)
Thanks: 0
Thanked 1 Time in 1 Post
I tried it with a bare, unadorned board and got the same results. I'll plug in that function and see how it goes from there.

I don't have a non-Linux PC at home with a serial port to try. I'll have to rethink that one.
__________________

  Reply With Quote
Old 06-26-2008, 01:04 AM   #24 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,032

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 156
Thanked 264 Times in 207 Posts
Parity check

FYI, I currently have set up two guinos on the same signal generator running to see if there is any consistency. I expect the injector open times will be slightly different due to frequency variations, but the injector and vss counts should be very close and so far they are, but will let it run for a few days. Also it is all rigged to run on the one 7805, hence the heat sink wedged behind it I will try and leave it alone for a day or so.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 06-26-2008, 08:29 AM   #25 (permalink)
EcoModding Apprentice
 
awillard69's Avatar
 
Join Date: Feb 2008
Location: Streamwood, IL
Posts: 105

Dakota - '00 Dodge Dakota Club Cab, Sport
90 day: 18.57 mpg (US)

Jeep - '01 Jeep Wrangler TJ Sport
90 day: 18.46 mpg (US)
Thanks: 0
Thanked 1 Time in 1 Post
That will be nice to know.

You may need to mechanically affix the heat sync to the 7805. Something like a small screw, alligator clamp, etc. should do the trick and help dissipate the heat.

If/when you get your scope, hopefully it's a 2+ channel. Then you could run up both and look at the signals. You should be able to see any variance or drift.

But, then again, maybe it doesn't matter... It's only used for bench testing.
__________________

  Reply With Quote
Old 06-26-2008, 09:19 AM   #26 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,032

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 156
Thanked 264 Times in 207 Posts
Update:
@ 511 minutes:
trip MPG on green unit 64.80
trip MPG on blue unit 64.79
Distance on both 270.21
Injector and vss counts in synch
MPG variance %0.015

7805 seems happy.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 06-27-2008, 10:29 PM   #27 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,032

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 156
Thanked 264 Times in 207 Posts
Update
green Time: 2734.30 minutes
blue Time: 2734.30 minutes

green cumulative mpg 64.82
blue cumulative mpg 64.82

green distance 1316.3 miles
blue distance 1316.3 miles

green fuel 20.31 gallons
blue fuel 20.31 gallons


__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hydrogen Generator Experiment willy57 DIY / How-to 601 08-23-2016 05:53 AM
VSS, tach, injector signal logic wikityler Instrumentation 2 07-20-2008 11:02 PM
New freeway signs.. traffic signal conspiracy Chris D. EcoModding Central 36 06-02-2008 01:51 PM
Opengauge/MPGuino development: Freeduino signal processing dcb OpenGauge / MPGuino FE computer 6 04-16-2008 09:40 AM
Very clever knee brace generator - 5 watts while walking - no extra effort. MetroMPG The Lounge 6 02-09-2008 12:38 AM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com