Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
01-22-2007, 06:59 PM
|
#1
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,902
|
Full Support for Phidgets Interface Kit - Finished!
See attached, search the code for greenman100 if you like. meant to be compiled with 11-12-06 version.
button commands:
phigdonXX - turn on digital output XX
phigdoffXX - turn off digital output XX
Indicator:
phigdoXX - returns digital output XX state
phigdiXX - returns digital input XX state
|
|
|
01-24-2007, 04:48 PM
|
#2
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,902
|
|
|
|
01-24-2007, 05:53 PM
|
#3
|
|
Maximum Bitrate
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
|
good work man, now i just need my new car, a phidgets kit, and a carpc, so i can ditch the climate controls 
|
|
|
01-24-2007, 07:43 PM
|
#4
|
|
Road Runner & Mp3car Gatherings Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Vehicle: 99 Mitsubishi Eclipse
Posts: 2,852
|
Ok, I had no idea what a " phidget" was till I did a quick Google  This looks like it could open up a pretty big world to the already amazing RR front end.
Has this been submitted to Guino, so it can become part of the official releases?
With a little research, I can see this used so many ways! Of particular interest is the Distance sensor Phidget to place on the rear of the vehicle for distance to an object when backing up. (Good for a range of just over 2 feet)
Now for a question
Can the input be turned into useful data with Road Runner? For instance the distance sensor, mentioned above, outputs a range of numbers from 0 to 500. Having that converted to the actual distance would be much more useful.
|
|
|
01-24-2007, 08:43 PM
|
#5
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,902
|
Quote: Originally Posted by JohnWPB 
Ok, I had no idea what a " phidget" was till I did a quick Google  This looks like it could open up a pretty big world to the already amazing RR front end.
Has this been submitted to Guino, so it can become part of the official releases?
With a little research, I can see this used so many ways! Of particular interest is the Distance sensor Phidget to place on the rear of the vehicle for distance to an object when backing up. (Good for a range of just over 2 feet)
Now for a question
Can the input be turned into useful data with Road Runner? For instance the distance sensor, mentioned above, outputs a range of numbers from 0 to 500. Having that converted to the actual distance would be much more useful.
many of the sensors already support conversion through a tooltip:
Code:
Case "c2f"
'Show in C
N = N - 200: N = N / 4
N = (N * 9) / 5: N = N + 32
GetPhid = Format(N, "0.0F")
Case "f2c"
'Show in F
N = N - 200: N = N / 4
GetPhid = Format(N, "0.0C")
Case "volt"
'Show in V
N = N - 500: N = N * 0.06
GetPhid = Format(N, "0.00")
Case "50amp"
'Show in Amps
N = N - 500: N = N * 0.1
GetPhid = Format(N, "0.00")
Case "15amp"
'Show in Amps
N = N - 500: N = N * 0.03
GetPhid = Format(N, "0.00")
Case "gp"
'Show in Pressure
N = (N / 4) + 10
GetPhid = Format(N, "0.00")
I could add code for the rest later, but I really need people to beta test the code to confirm it works before I submit anything to guino.
|
|
|
01-24-2007, 09:28 PM
|
#6
|
|
Maximum Bitrate
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
|
your code is for digital i/o not sensor reading, right? theres already commands in skin commands.txt for reading phidget sensor data. is it possible to do math and/or simple scripting in the skin files, or would that have to be output to a specific program for proccessing?
sorry for goin off topic, but yea, your code, digital i/o not sensors..
|
|
|
01-24-2007, 09:28 PM
|
#7
|
|
Newbie
Join Date: Dec 2004
Posts: 51
|
Quote: Originally Posted by greenman100 
Is the EXE still available? I can't get the above link to work, but I'd like to test out the Phidget integration.
|
|
|
01-24-2007, 09:36 PM
|
#8
|
|
Maximum Bitrate
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
|
scrol abotu halfway down and click on 'Download for free with FileFactory Basic'
|
|
|
01-24-2007, 09:52 PM
|
#9
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,902
|
Quote: Originally Posted by inh 
your code is for digital i/o not sensor reading, right? theres already commands in skin commands.txt for reading phidget sensor data. is it possible to do math and/or simple scripting in the skin files, or would that have to be output to a specific program for proccessing?
sorry for goin off topic, but yea, your code, digital i/o not sensors..
yes, this is jsut for digital i/o, analog is already built in.
the code above allows for predetermined conversions in the skin files. I could probably expand the functionality to do any sort of math.
|
|
|
01-24-2007, 09:56 PM
|
#10
|
|
Maximum Bitrate
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
|
Ah very cool  i'll have to spend more time with skinning in RR.. using your addition, i can have a nifty lil setup that keeps my car at whatever temp i want
|
|
|
01-24-2007, 10:06 PM
|
#11
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,902
|
Quote: Originally Posted by inh 
Ah very cool  i'll have to spend more time with skinning in RR.. using your addition, i can have a nifty lil setup that keeps my car at whatever temp i want
yup, already done this
|
|
|
01-24-2007, 11:18 PM
|
#12
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,902
|
here's my skin
|
|
|
01-25-2007, 04:28 AM
|
#13
|
|
Road Runner & Mp3car Gatherings Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Vehicle: 99 Mitsubishi Eclipse
Posts: 2,852
|
WoW, I guess I should have done a little more research into this. I was not even aware that RR already was able to support an analog version of this.
I knew that RR was capable of simple conversion from Fahrenheit to Celcius, but was not aware that it extended to plugins (such as this one) as well.
I just need to take a step back and familiarize myself a little bit more, before asking such simple and redundant questions. I was acting so much like a newbee here! (NOT that that is a bad thing, as that is how we all learn).
Thanks for all the info!
This code is gonna add a lot of functionality to RR on top of what it is already capability of!
Last edited by JohnWPB; 01-25-2007 at 04:31 AM.
|
|
|
01-25-2007, 11:38 AM
|
#14
|
|
Maximum Bitrate
Join Date: Mar 2004
Location: Toronto, Canada
Vehicle: 2004 Ford Mustang Mach 1
Posts: 500
|
Any plans on adding functionality for the motor control kit?
__________________
2004 Ford Mustang Mach 1
Specs: Epia M2-1000, 512mb ram, SB Audigy NX, Lilliput 7" Touchscreen, M2-ATX, DVD, 160gb HDD, gps, obdII, wifi, bluetooth, XM radio, HQCT and Logitech wireless gamepad.
Install Status: DONE
My XM FAQ
|
|
|
01-25-2007, 12:16 PM
|
#15
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,902
|
Quote: Originally Posted by pyros 
Any plans on adding functionality for the motor control kit?
if people chip in to buy me one, I'd be happy to.
I can't test it or write code without one, though.
http://www.phidgets.com/index.php?mo...138.55&IID=112
$70.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:02 AM.
|
|