Zedomax DIY 102 Make a G-meter for your car in 1 minute! Zedomax DIY Faça uma G-102 metros de seu carro em 1 hora!
[DIY 102] [DIY 102]
Do it yourself ! Faça Você Mesmo!

Parts List: Peças Lista:
1 Buffered 3D Accelerometer $35 1 tamponada 3D Acelerómetro $ 35
Available at DimensionEngineering Disponível em DimensionEngineering
1 CB220 Start Kit $99 1 CB220 Start Kit $ 99
1 CVFD-216 $54 1 CVFD-216 $ 54
Available at Comfile Technology Disponível em tecnologia Comfile
Today I received my accelerometer from Dimension Engineering, I was so excited and couldn t wait to start making something w/ it. Hoje, eu recebi o meu acelerómetro a partir de Dimensão Engenharia, eu estava tão animado e couldn t esperar para começar a fazer alguma coisa w / ela. So I figured I could follow the Por isso, eu poderia seguir o figurado app note app note on their web site for making a G-meter. em seu web site para fazer uma G-contador.
I figured that I could just do it with the CB220 module and a Plug-N-Play LCD from Comfile in matter of minutes. Eu figurado que eu poderia fazê-lo apenas com a CB220 e um módulo plug-and-Play LCD de Comfile em questão de minutos.
The following is the accelerometer’s pin outs from the product data sheet: O seguinte é o acelerómetro do pin outs de folha de dados do produto:

The accelerometer has a 3.3V regulator so we can use the 333mV/g as sensitity for our G-meter. O acelerómetro 3.3V tem um regulador para que nós possamos usar a 333mV / g sensitity como para os nossos G-contador.

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. Desde a CUBLOC CB220 módulo tem entradas analógicas, nós podemos simplesmente ligar X, Y, Z saídas analógicas do acelerómetro para o AD pinos sobre a CB220.
Make connections like shown below: Fazer ligações como mostrado a seguir:

(Close-up of connections on the study board) Then, you can connect the LCD using the connectors. (Close-up de ligações com o estudo bordo) Depois, pode ligar o LCD utilizando os conectores.

When done, you should have something like above. Quando pronto, você deve ter algo como anteriormente.
Simply download the Basta fazer o download do 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. e download para o seu CB220 módulo usando CublocStudio.Now você deve ser capaz de obter 1G em suas leituras LCD quando você mover seu estudo bordo vertical e horizontalmente. Now go to your car and strap the study board on to your center console like this: Agora vá para o seu carro e cinta o estudo sobre a bordo de seu centro console como este:

(Study Board Strapped to center Console of my car) And then place the LCD on your dashboard. (Estudo Câmara Strapped centro de Console do meu carro) e depois coloque no seu painel do LCD.

Click Here to View in Full Screen Mode Clique aqui para ver em modo de tela cheia
See video of G-meter in Action: Veja vídeo do G-metros em Ação:
Click Here to View in Full Screen Mode Clique aqui para ver em modo de tela cheia
Next time, I will have to try this on my motorcycle. Da próxima vez, vou ter que tentar este em minha moto.
It seems like my car can handle up to about 0.4Gs at the most. Parece que o meu carro pode tratar-se a cerca de 0.4Gs, no máximo.
You can see in the video when the vehicle is decelerating, the Gs are negative. Você pode ver no vídeo quando o veículo se desacelerando, as Gs são negativos.
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. Você pode modificar o código para que tenham uma calibração de seu G-Meter observando a tensão de saída quando o G-Meter é a uma paragem completa.
Oh yeah, here a link to how to make the stopwatch used in the video: Oh yeah, aqui o link para o modo de fazer o cronômetro utilizado no vídeo: Link
Source Code: Código Fonte:
[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… Tomando-lo ainda mais…
You can probably do some acceleration calculations to get Você provavelmente pode fazer alguns cálculos para obter acelerações
your mph, keep track of 1/4 mile times, etc…etc… seu mph, manter a pista de 1 / 4 milhas vezes, etc etc……
If you are having any trouble with above app, please e-mail Se tiver qualquer problema com app acima, envie um e-mail max@zedomax.com
RSS feed RSS feed | Trackback URI Trackback URI
























[...] Link [...] [...] [...] Link
[...] to make a Alarm System in 1 minute! [...] Para fazer um sistema de alarme em 1 hora! How to make a G-meter 4 your car in 1 minute! Como fazer um G-4 metros o seu carro em 1 hora! How to build a digital thermometer in one minute! Como construir um termômetro digital em um minuto! How to make a Golf Club POV training aid! Como fazer um Golf Club POV auxílios à formação! [...]
Neat idea. Giro idéia. I’m wondering if you have done any calculations to see how accurate this is? Estou perguntando se você tiver feito qualquer cálculos para ver como este é exacta? I suppose it would be hard to test without knowing the accuracy of your speedometer as well. Eu suponho que seria difícil de teste sem saber a precisão de seu velocímetro também.
Actually it’s pretty accurate because the measurements are done by the microcontroller on the accelerometer. Na verdade ele é bonito porque as medições são precisas feito pelo microcontrolador sobre o acelerómetro. That’s the beauty of it. Essa é a beleza do mesmo.