¡Marca de Zedomax DIY 102 al G-metro para su coche en 1 minuto!
[DIY 102]
¡Hágalo usted mismo!

Lista de piezas:
1 acelerómetro protegido 3D $35
Disponible en DimensionEngineering
1 kit del comienzo CB220 $99
1 CVFD-216 $54
Disponible en la tecnología de Comfile
Recibí hoy mi acelerómetro de la ingeniería de la dimensión, era así que espera excitado y del couldn t para comenzar a hacer algo con él. Calculé tan que podría seguir nota del app en su Web site para hacer un G-metro.
Calculé que podría apenas hacerlo con el módulo CB220 y un Enchufe-N-Juego LCD de Comfile en la materia de minutos.
Lo que sigue es el perno salidas del acelerómetro de la hoja de datos del producto:

El acelerómetro tiene un regulador 3.3V así que podemos utilizar el 333mV/g como sensitity para nuestro G-metro.

Puesto que el módulo de CUBLOC CB220 tiene entradas análogas, podemos conectar simplemente X, Y, salidas análogas de Z del acelerómetro a los pernos del ANUNCIO en el CB220.
Haga las conexiones como demostrado abajo:

(Primer de conexiones en el tablero de estudio) Entonces, usted puede conectar el LCD usando los conectadores.

Cuando está hecho, usted debe tener algo como arriba.
Descargue simplemente Accelerometer.zip y transferencia directa a su módulo CB220 que usa CublocStudio.Now usted debe poder conseguir 1G en sus lecturas del LCD cuando usted mueve a su tablero de estudio verticalmente y horizontalmente. Ahora vaya a su coche y ate con correa a tablero de estudio encendido a su consola de centro como esto:

(Tablero de estudio atado con correa para centrar la consola de mi coche) y entonces ponga el LCD en su tablero de instrumentos.

Chasque aquí para ver por completo modo de la pantalla
Vea el vídeo del G-metro en la acción:
Chasque aquí para ver por completo modo de la pantalla
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.
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…
If you are having any trouble with above app, please e-mail max@zedomax.com
Got a new hack, DIY, howto, or gadget? Tip us here.
Search for a Hack:
Bookmark It!
|del.icio.us |Digg it |SiteHoppin |Wagg It | TrackBack |
Email this to a Friend
Email This Page



[...] Link [...]
[...] to make a Alarm System in 1 minute! How to make a G-meter 4 your car in 1 minute! How to build a digital thermometer in one minute! How to make a Golf Club POV training aid! [...]
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.
[...] to make a Alarm System in 1 minute! How to make a G-meter 4 your car in 1 minute! How to build a digital thermometer in one minute! How to make a Golf Club POV training aid! [...]