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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 08-21-2014, 02:36 PM   #11 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,808

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 831
Thanked 709 Times in 457 Posts
Quote:
Originally Posted by alexander.foti View Post
I would say thats the issue as well, although I would like somebody who is experienced with the code to let me know if it is.

Surely I can just use a freq divider on the VSS signal to keep it seperate from the mpguino? Im no good with IDE like the arduino, and OK with electronics (if following instructions )
With 120,000 pulses per mile, and going 78 MPH, your MPGuino is seeing a pulse about every 385 microseconds. That's about the time needed for the MPGuino hardware to respond to the interrupt request caused by the VSS pulse; and for MPGuino to execute the ISR for it, and return to the main display routine. If you go faster than 78 MPH at this point, the MPGuino will receive a second pulse as it is trying to process the first pulse, and the MPGuino will simply ignore the second pulse. 385 microseconds corresponds to 2600 Hz, which appears to be the VSS sampling cutoff frequency for the MPGuino.

The addition of a vss debounce of 1 ms is going to trash that VSS pulse length.

You're on the correct path. Putting a divide-by-16 circuit will drop down the VSS pulse frequency to something that MPGuino will handle.

  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
alexander.foti (08-21-2014)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 08-21-2014, 02:41 PM   #12 (permalink)
EcoModding Lurker
 
Join Date: Nov 2008
Location: London UK
Posts: 95
Thanks: 3
Thanked 7 Times in 4 Posts
Thanks t-vago

Its nice to know that my random thoughts are backed up by some numbers from inside the mpguino brain.

That circuit I posted, should divide by 16 and give me approximate 7500 pulses per mile!

Not quite sure why my bike has so many pulses per mile.
  Reply With Quote
Old 08-24-2014, 01:13 PM   #13 (permalink)
Master EcoModder
 
P-hack's Avatar
 
Join Date: Oct 2012
Location: USA
Posts: 1,408

awesomer - '04 Toyota prius
Thanks: 102
Thanked 252 Times in 204 Posts
sounds like an abs sensor (high resolution). Is there another vss on the bike (how does the speedo work?)
  Reply With Quote
Old 08-24-2014, 01:24 PM   #14 (permalink)
EcoModding Lurker
 
Join Date: Nov 2008
Location: London UK
Posts: 95
Thanks: 3
Thanked 7 Times in 4 Posts
Quote:
Originally Posted by P-hack View Post
sounds like an abs sensor (high resolution). Is there another vss on the bike (how does the speedo work?)
It's the speed sensor from the gearbox that drives the speedometer that I have tapped into. I avoided the abs sensors on purpose. Honda motorbike vss's are very high resolution. My xl125 had a similar high number but couldn't go past 75, so was never an issue.
  Reply With Quote
Old 08-24-2014, 02:44 PM   #15 (permalink)
Master EcoModder
 
P-hack's Avatar
 
Join Date: Oct 2012
Location: USA
Posts: 1,408

awesomer - '04 Toyota prius
Thanks: 102
Thanked 252 Times in 204 Posts
interesting, fyi I don't reach for discrete chips much anymore, since the micro-controllers are so cheap and I have a better chance of debugging them.

There is a standard arduino example in Arduino - ButtonStateChange

remove all the serial crap, modify it to divide by 24 instead of 4, and use the led pin as the output to the mpguino vss input.

If you have an uno, you can use it to program one of these (atmega w/uno bootloader, $1.98):
New ATMEGA328P PU with Arduino Uno Bootloader ATMEL Free Shipping from USA 2014 | eBay

and get the size down to one chip. I don't know much about flip flops, except that they leave me with a soft forehead.
  Reply With Quote
The Following User Says Thank You to P-hack For This Useful Post:
alexander.foti (08-24-2014)
Old 08-24-2014, 03:25 PM   #16 (permalink)
EcoModding Lurker
 
Join Date: Nov 2008
Location: London UK
Posts: 95
Thanks: 3
Thanked 7 Times in 4 Posts
Quote:
Originally Posted by P-hack View Post
interesting, fyi I don't reach for discrete chips much anymore, since the micro-controllers are so cheap and I have a better chance of debugging them.

There is a standard arduino example in Arduino - ButtonStateChange

remove all the serial crap, modify it to divide by 24 instead of 4, and use the led pin as the output to the mpguino vss input.

If you have an uno, you can use it to program one of these (atmega w/uno bootloader, $1.98):
New ATMEGA328P PU with Arduino Uno Bootloader ATMEL Free Shipping from USA 2014 | eBay

and get the size down to one chip. I don't know much about flip flops, except that they leave me with a soft forehead.
I have zero Arduion experience I think I would have to look at a arduino traning guides or something to get me going, I suppose I could have done that instead.

It costs about the same in parts I suppose.

  Reply With Quote
Reply  Post New Thread






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