Vehicle Speed Calculator

Discuss issues and ideas you have to configuring displays with PowerVision
twang

Vehicle Speed Calculator

Post by twang » Thu Aug 11, 2011 9:21 am

Hello,

I got an application about calcuting the vehicle speed and mileage by the transmission shaft speed what is broadcasted by the Transmission.

For different vehicle, they will have different tire sizes and differential ratios etc, can we set these values through display buttons? If yes, will be great for customer common use....

If you have an example to achieve these, can you attach the .db3 file for me ?

Thanks.

Terry
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Vehicle Speed Calculator

Post by ksaenz » Thu Aug 11, 2011 5:12 pm

Hello Terry,

I attached a configuration that calculates Vehicle Speed from Shaft Speed, Differential Ratio, and Tire Diameter and it lets you adjust the variables.

Regards,

ksaenz
Attachments
Vehicle Speed from Transmission Output Shaft Speed.db3
(3 MiB) Downloaded 34 times
twang

Re: Vehicle Speed Calculator

Post by twang » Wed Nov 16, 2011 5:05 am

Thanks Kristain.

Could anyone else who can tell me how to calculate mileages?
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Vehicle Speed Calculator

Post by ksaenz » Mon Nov 21, 2011 9:12 am

Hello Terry,

I added a new variable with a calculation event to be fired from a state machine with a recurring timer of 1s.

I also set the new variable to be saved to nv memory every 60s.

Regards,

ksaenz
Attachments
Vehicle Speed from Transmission Output Shaft Speed.zip
Created with PVCS 2.2.10678
(1.95 MiB) Downloaded 48 times
twang

Re: Vehicle Speed Calculator

Post by twang » Tue Nov 22, 2011 9:51 am

i don't understand the calculator event: "UserDefinedVariable.Vehicle Distance"+("UserDefinedVariable.Vehicle Speed"/3600)

As I know, the tirp distance should be equal Speed* time......
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Vehicle Speed Calculator

Post by ksaenz » Tue Nov 22, 2011 10:18 am

Hello Terry,

You are correct, and in this case, since we are executing the calculation event every second our time is 1/3600 because there are 3600 seconds in an hour and the speed is in kilometer per hour.

Regards,

ksaenz
twang

Re: Vehicle Speed Calculator

Post by twang » Wed Jul 11, 2012 10:06 am

Hello,

How to calculator the total trip distance by vehicle speed?

Tks,

Terry
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Vehicle Speed Calculator

Post by ksaenz » Fri Jul 13, 2012 8:01 am

If you want to calculate trip distance instead of total distance you can use the same formula but add a calculation event to reset the value to 0.

Regards,

ksaenz