Zedomax DIY 102 Make a G-meter for your car in 1 minute! Zedomax fai-da-te 102 Effettuare una G-metro per la tua auto in 1 minuto!
[DIY 102] [Fai-da-te 102]
Do it yourself ! Fai da te!

Parts List: Elenco parti:
1 Buffered 3D Accelerometer $35 1 tampone 3D Accelerometro $ 35
Available at DimensionEngineering Disponibile a DimensionEngineering
1 CB220 Start Kit $99 1 CB220 Start Kit $ 99
1 CVFD-216 $54 1 CVFD-216 $ 54
Available at Comfile Technology Disponibile su tecnologia Comfile
Today I received my accelerometer from Dimension Engineering, I was so excited and couldn t wait to start making something w/ it. Oggi ho ricevuto la mia dimensione accelerometro da Ingegneria, ero così eccitato e Couldn t aspettare per iniziare a fare qualcosa di w / it. So I figured I could follow the So I figured ho potuto seguire la app note app nota on their web site for making a G-meter. sul loro sito web per fare un G-metro.
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 figured che avrei potuto farlo solo con la CB220 e un modulo di Plug-N-Play LCD da Comfile in questione di minuti.
The following is the accelerometer’s pin outs from the product data sheet: Di seguito è riportato l'accelerometro del pin out del foglio dati:

The accelerometer has a 3.3V regulator so we can use the 333mV/g as sensitity for our G-meter. La accelerometro 3.3V ha un regolatore in modo da poter utilizzare il 333mV / g come sensitity per la nostra G-metro.

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. Poiché il modulo CUBLOC CB220 ha ingressi analogici, si può semplicemente collegare X, Y, Z output analogici di accelerometro per la dC il pin del CB220.
Make connections like shown below: Effettuare le connessioni come indicato qui sotto:

(Close-up of connections on the study board) Then, you can connect the LCD using the connectors. (Close-up delle connessioni a bordo di studio), poi, è possibile collegare il display utilizzando i connettori.

When done, you should have something like above. Al termine, si dovrebbe avere qualcosa come sopra.
Simply download the Basta scaricare il 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 sul CB220 modulo utilizzando CublocStudio.Now si dovrebbe essere in grado di ottenere 1G sul tuo display LCD letture quando si sposta il tuo studio bordo verticalmente e orizzontalmente. Now go to your car and strap the study board on to your center console like this: Ora andare alla vostra auto e la cinghia a bordo di studio per il tuo centro di console in questo modo:

(Study Board Strapped to center Console of my car) And then place the LCD on your dashboard. (Studio consiglio di amministrazione legati al centro della console la mia auto) e poi il display LCD posto sul cruscotto.

Click Here to View in Full Screen Mode Fare clic qui per visualizzare in modalità a schermo intero
See video of G-meter in Action: A vedere il video di G-metro in azione:
Click Here to View in Full Screen Mode Fare clic qui per visualizzare in modalità a schermo intero
Next time, I will have to try this on my motorcycle. La prossima volta, dovrò provare questo sulla mia moto.
It seems like my car can handle up to about 0.4Gs at the most. Sembra che la mia macchina in grado di gestire fino a circa 0.4Gs al massimo.
You can see in the video when the vehicle is decelerating, the Gs are negative. Si può vedere nel video quando il veicolo è in diminuzione, la GS sono negativi.
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. È possibile modificare il codice di avere una taratura del vostro G-Meter osservando la tensione di uscita quando il G-Meter è ad un fermo.
Oh yeah, here a link to how to make the stopwatch used in the video: Oh yeah, qui un link a come rendere il cronometro utilizzato nel video: Link Collegamento
Source Code: 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… Tenendo ulteriormente…
You can probably do some acceleration calculations to get Sarà probabilmente possibile fare qualche accelerazione calcoli per arrivare
your mph, keep track of 1/4 mile times, etc…etc… il tuo MPH, tenere traccia di 1 / 4 miglia volte, ecc… ecc…
If you are having any trouble with above app, please e-mail Se hai problemi con qualsiasi applicazione di cui sopra, ti preghiamo di e-mail max@zedomax.com
RSS feed Feed RSS | Trackback URI Trackback URI
























[...] Link [...] Link [...] [...]
[...] to make a Alarm System in 1 minute! [...] A fare una Alarma in 1 minuto! How to make a G-meter 4 your car in 1 minute! Come fare un G-4 metro l'auto in 1 minuto! How to build a digital thermometer in one minute! Come costruire un termometro digitale in un minuto! How to make a Golf Club POV training aid! Come fare una Golf Club POV aiuti per la formazione! [...]
Neat idea. Neat idea. I’m wondering if you have done any calculations to see how accurate this is? Mi chiedo se avete fatto ogni calcoli per vedere come questo è accurata? I suppose it would be hard to test without knowing the accuracy of your speedometer as well. Suppongo che sarebbe difficile prova senza conoscere l'accuratezza dei dati di tachimetro pure.
Actually it’s pretty accurate because the measurements are done by the microcontroller on the accelerometer. In realtà è piuttosto preciso, perché le misurazioni sono effettuate dal microcontrollore sulla accelerometro. That’s the beauty of it. E 'questa la bellezza di esso.