Bookmark, share, and hop your favorite sites with SiteHoppin Toolbar for Firefox!書籤,分享與合您最喜愛的網站與sitehoppin用於Firefox的工具欄!



Zedomax DIY 102 Make a G-meter for your car in 1 minute! zedomax diy 102作出克-米為您的汽車在1分鐘!

Posted in張貼在 DoItYourself! doityourself ! by max on the September 19th, 2006 at 9:37 am由Max於2006年9月19日在上午09時37分

[DIY 102] [ diy 102 ]

Do it yourself !這樣做你自己!



Make a G-Meter for your car in 1 minute! 作出-米為您的汽車在1分鐘!

Parts List: 部分名單:

1 Buffered 3D Accelerometer $35一緩衝三維加速度計35元
Available at DimensionEngineering 可在dimensionengineering

1 CB220 Start Kit $99 1 cb220開始包99元
1 CVFD-216 $54 1 cvfd - 216 54元
Available at Comfile Technology 可在comfile技術

Today I received my accelerometer from Dimension Engineering, I was so excited and couldn t wait to start making something w/ it.今天我收到了加速度計,從工程方面,我是如此興奮,並能噸迫不及待地開始做一些瓦特/ 。 So I figured I could follow the因此,我想通我可以按照 app note亞洲漿紙注意 on their web site for making a G-meter.就在他們的網站作克-米。

I figured that I could just do it with the CB220 module and a Plug-N-Play LCD from Comfile in matter of minutes. i想通,我可以這樣做與cb220模塊和插件的N -發揮液晶顯示器從comfile在短短幾分鐘。

The following is the accelerometer’s pin outs from the product data sheet:以下是加速度的引腳奏從產品數據表:

The accelerometer has a 3.3V regulator so we can use the 333mV/g as sensitity for our G-meter.加速度有一個3.3 V穩壓器,因此,我們可以使用333mv /克作為sensitity為我們的克-米。

Since the CUBLOC CB220 module has analog inputs, we can simply connect X, Y, Z analog outputs of the accelerometer to the AD pins on the CB220.自cubloc cb220模塊的模擬輸入,我們可以簡單地連接的X , Y , z模擬輸出的加速度,以廣告插針,該cb220 。

Make connections like shown below:連接一樣,如下所示:

(Close-up of connections on the study board) Then, you can connect the LCD using the connectors. (密切跟進的連接就研究局) ,然後,您可以連接液晶顯示器用連接器。

When done, you should have something like above.完成時,你應該有一些像以上。
Simply download the直接下載 Accelerometer.zip and download to your CB220 module using CublocStudio.Now you should be able to get 1G on your LCD readings when you move your study board vertically and horizontally.和下載到您的cb220模塊使用cublocstudio.now你應該能夠得到1克對您的液晶顯示的讀數,當您移動您的研究局垂直和水平。 Now go to your car and strap the study board on to your center console like this:現在轉到您的汽車和肩帶研究局到您的中心控制台是這樣的:

(Study Board Strapped to center Console of my car) And then place the LCD on your dashboard. (研究局緊張到中心控制台我的車) ,然後把液晶顯示器在您的控制台上。

(LCD on the dashboard) When you accelerate, you should see Y increasing and when you decelerate, you should see Y decreasing. (液晶顯示器上儀表板)當您加快,您應該可以看到y增加,當你減速,您應該可以看到y下降。 When you turn left or right, you will see X changing.當您打開左或右,你會請參閱X改變。
See video of assembling G-meter in 1 minute:看視頻裝配克-米在1分鐘:

Download latest version of Flash to view video!下載最新版的Flash ,以查看視頻! .

Click Here to View in Full Screen Mode點擊這裡查看在全屏模式

See video of G-meter in Action:看視頻的克-米在行動:

Download latest version of Flash to view video!下載最新版的Flash ,以查看視頻! .

Click Here to View in Full Screen Mode點擊這裡查看在全屏模式

Next time, I will have to try this on my motorcycle.下一次,我會嘗試,這對我的摩托車。

It seems like my car can handle up to about 0.4Gs at the most.好像我的車可處理高達約0.4gs在最。

You can see in the video when the vehicle is decelerating, the Gs are negative.你可以看到在視頻時,車輛減速,一般事務都是否定的。

You can modify the code to have a calibration of your G-Meter by noting the voltage output when the G-Meter is at a complete stop.您可以修改程式碼有一個校準您的克-米,由注意到電壓輸出時,克-米正處在一個完全停止。

Oh yeah, here a link to how to make the stopwatch used in the video:噢,耶,在這裡鏈接到如何使秒錶使用的影片: Link鏈接

Source Code:源代碼:

[Accelerometer001.cul]

Const Device = CB220

#define CALIBRATE 1.674805

Dim X As Integer

Dim Y As Integer

Dim Z As Integer

Dim sX As Single

Dim sY As Single

Dim sZ As Single

Dim gX As Single

Dim gY As Single

Dim gZ As Single

Dim strX As String

Dim strY As String

Dim strZ As String

‘Set P0, P1, and P2 to input

Input 0

Input 1

Input 2

Set Display 2,0,0,128

X=1

Cls

Delay 100

Csroff

Do

X=Tadin(0)

Y=Tadin(1)

‘ Z=Tadin(2)

sX=(X*5.0)/1024.0

sY=(Y*5.0)/1024.0

‘ sZ=(Z*5.0)/1024.0

gY=(sY-CALIBRATE)/0.333

gX=(sX - CALIBRATE)/0.333

‘ gZ=(sZ - CALIBRATE)/0.333

Debug Goxy,0,0,”X axis: “,Dec X,Cr

Debug “X voltage: “,Float sX,Cr

Debug “X G: “,Float gX,Cr

strX=Float gX

strX=Left(strX,5)

‘Print to LCD

Locate 0,0

Print “X: “,strX

Debug Goxy,0,4

Debug “Y axis: “,Dec Y,Cr

Debug “Y voltage: “,Float sY,Cr

Debug “Y G: “,Float gY,Cr

strY=Float gY

strY=Left(strY,5)

‘Print to LCD

Locate 0,1

Print “Y: “,strY

‘ Display 0,Float gY

‘ Debug “Z axis: “,Dec Z,Cr

‘ Debug “Z voltage: “,Float sZ,Cr

‘ Debug “Z G: “,Float gZ,Cr

Delay 300

Loop

End

Taking it further…同時它進一步…

You can probably do some acceleration calculations to get或許您自己就可以做一些加速度計算得到

your mph, keep track of 1/4 mile times, etc…etc…您英里每小時,跟踪1 /四英里倍,等…等…

If you are having any trouble with above app, please e-mail如果您有任何問題與上述亞洲漿紙,請E - mail max@zedomax.com

max@zedomax.com

, ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet) (尚無評)
Loading ... Loading ...載入中...


RSS feed RSS饋送 | Trackback URI Trackback跟踪的URI

4 Comments 4評論 »

2008-04-27 01:53:12 2008年4月27日1時53分12秒

[...] to make a Alarm System in 1 minute! [...]作出報警系統在1分鐘! How to make a G-meter 4 your car in 1 minute!如何使一克-米4您的汽車在1分鐘! How to build a digital thermometer in one minute!如何建立一個數字式溫度計在一分鐘! How to make a Golf Club POV training aid!如何使一高爾夫俱樂部pov訓練援助! [...] [ … … ]

myavatars 0.2
Comment by 評論 GrokCode grokcode
2008-05-09 11:29:37 2008年5月9日11時29分37秒

Neat idea.巧妙的構思。 I’m wondering if you have done any calculations to see how accurate this is?我想如果你有做任何的計算,看看如何準確,這是? I suppose it would be hard to test without knowing the accuracy of your speedometer as well.我認為將很難不知道測試的準確性,您的車速,以及。

myavatars 0.2
Comment by 評論 max 最高
2008-05-09 12:53:57 2008年5月9日12時53分57秒

Actually it’s pretty accurate because the measurements are done by the microcontroller on the accelerometer.其實它的相當準確,因為測量工作由微控制器上的加速度。 That’s the beauty of it.這就是美麗的。

myavatars 0.2
Name (required) 姓名(必填)
E-mail (required - never shown publicly) 電子郵件(必填-從來沒有公開表明)
URI 開放的我們

Subscribe to comments via email 訂閱評論通過電子郵件
Your Comment ( 您的評論( smaller size 面積較小 | | larger size 面積較大 )
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment. 你可以使用<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <刪除日期時間= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>在您的評論。