Zedomax DIY 102 Make a G-meter for your car in 1 minute! zedomax diy 102作出克-米為您的汽車在1分鐘!
[DIY 102] [ diy 102 ]
Do it yourself !這樣做你自己!

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. (研究局緊張到中心控制台我的車) ,然後把液晶顯示器在您的控制台上。

Click Here to View in Full Screen Mode點擊這裡查看在全屏模式
See video of G-meter in Action:看視頻的克-米在行動:
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
RSS feed RSS饋送 | Trackback URI Trackback跟踪的URI
























[...] Link [...] [ … … ]鏈接[ … … ]
[...] 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訓練援助! [...] [ … … ]
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.我認為將很難不知道測試的準確性,您的車速,以及。
Actually it’s pretty accurate because the measurements are done by the microcontroller on the accelerometer.其實它的相當準確,因為測量工作由微控制器上的加速度。 That’s the beauty of it.這就是美麗的。