MegaJolt and MPH

General Megajolt Questions and Answers

Moderators: JeffC, rdoherty, stieg, brentp

Post Reply
spetom
Posts: 30
Joined: Sun Jun 15, 2008 3:35 pm

MegaJolt and MPH

Post by spetom »

Theoretically, could the MegaJolt calculate the speed of the car?
Using data from the sensor, and a user-defined value for the size of the wheel, could a fairly accurate speedometer be created?

(Of course, I'm ignoring the fact that there isn't really a way to output this, but a speed would be interesting to have when you're data logging a journey, alongside RPM, etc...)

Or is data from the sensor not directly accessible by the MegaJolt, since it is intercepted by the EDIS? Would this instead be a job for MegaJolt 2?

Alexander_Monday
Posts: 43
Joined: Tue Sep 09, 2008 10:28 am
Location: Springfield, MO

Post by Alexander_Monday »

The MJ would not know what gear you are in to be able to do that.
There are 10 types of people.
Those who understand binary, and those who don't.

spetom
Posts: 30
Joined: Sun Jun 15, 2008 3:35 pm

Post by spetom »

Hmm... good point.

Well, it was a nice dream while it lasted :D

nickj
Posts: 32
Joined: Sat Feb 17, 2007 7:52 pm
Location: Norway

Post by nickj »

No need to worry about what gear it's in, just log the rpm of the driveshaft. Together with the distance
travelled per driveshaft revolution, you have a loggable speed of vehicle.

Nick

Captain Midnight
Posts: 5
Joined: Sun Apr 27, 2008 6:23 pm

Post by Captain Midnight »

If I used a sensor on my motorcycle wheel, how accurate could it be?

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Likely not very. The polling interval in the configuration software for runtime data is about 200ms; at higher speeds signals from the wheel sensor may be missed, which would throw off the speed measurements.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Captain Midnight
Posts: 5
Joined: Sun Apr 27, 2008 6:23 pm

Post by Captain Midnight »

What could be done to increase the accuracy? I am running a flat track motorcycle and data logging RPM and MPH would be very helpfull.

Dean924s
Posts: 228
Joined: Fri Nov 07, 2008 2:57 am
Location: USA - MA

Post by Dean924s »

Captain Midnight wrote:What could be done to increase the accuracy? I am running a flat track motorcycle and data logging RPM and MPH would be very helpfull.
Some sort of hall sensor that was reading the chain gear (I assume that you are chain driven) The hall sensor signal would then have to be processed in to a a 0-5 volt signal. This could then be interpolated into speed. You would have to calibrate it some how initially but I don't see this is all that hard a problem to solve. The hallefect sensor is the easy part. The unit from a 2000 Ford expedition dif would work. The hard part / unknown is the hardware to convert the signal form the hall sensor to a 0-5 volt output that the MJ unit could read. I am sure it is out there you would just have to dig around for it. The resolution of the MJ unit is the only question here but it would be fun to play with.
Respectfully

Dean

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Yes, An external frequency to voltage converter would work; it could be calibrated in the firmware to show actual MPH. Good idea!

The solution with fewer external parts would be to log a pulse per wheel resolution, but would require calculations after data logging to convert to MPH.

For the motorcycle wheel, what will be the RPM of the wheel at the maximum speed you will see?
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Dean924s
Posts: 228
Joined: Fri Nov 07, 2008 2:57 am
Location: USA - MA

Post by Dean924s »

Respectfully

Dean

Alexander_Monday
Posts: 43
Joined: Tue Sep 09, 2008 10:28 am
Location: Springfield, MO

Post by Alexander_Monday »

If you are an electronics experimenter and can adapt and build from datasheets, I have used the TC9400 for this type of application before. It is a very stable and accurate frequency to voltage or voltage to frequency chip and is cheap. Make sure you filter the output good, because is does have a sawtooth ripple superimposed on the DC output. Also, implement a simple power on reset with a cap from pin 11 to VDD, or after you have built the circuit you can pull your hair out trying to figure out why every once and a while at random it decides not to work.

A 555 can also be configured for frequency to voltage, but is not as easy to implement unless you have a square wave input to start with.

You could also make a simple hi-pass or low-pass filter with filtered output with a couple of op-amps, however the TC9400 would be simpler to implement.

With any of these methods, you will of course have to calibrate the AUX input to give you a reading that will correspond to the speed you are going, make the mod for 0 to 5V input by disabling R6 as shown in the vehicle installation guide, and I would highly recommend that you parallel a 5V or less ( I have a 4.7V ) zener diode with the AUX input and ground, and a 1k or so resistor in series before the zener to prevent an external circuit over voltage from wiping out the processor in the MJ. Brent, you might want to do this in future versions on user inputs?

Unfortunately, I am very busy at work and home, so I do not have time to play with a circuit to give you the specific schematic and parts values you would need.

http://www.microchip.com/wwwproducts/De ... e=en010486
There are 10 types of people.
Those who understand binary, and those who don't.

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Thanks for the tip- I'll take a look at that datasheet.

For V4, The Aux and TPS inputs on the MJLJ do have input protection- but we avoided using zener diodes as they typically begin conducting near the zener voltage, affecting the top end of the ADC range.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Alexander_Monday
Posts: 43
Joined: Tue Sep 09, 2008 10:28 am
Location: Springfield, MO

Post by Alexander_Monday »

Yes, a crowbar of some sort would be better than a zener, but the zener is quick and easy protection, and I am interfacing with a thermocouple multiplexer I built that in normal operating range should never peak above 4V, and I had a 4.7V zener laying around, so--- :D
There are 10 types of people.
Those who understand binary, and those who don't.

Post Reply