Zedomax G-Meter - Make a G-Meter for your car in 1 minute!
1 Buffered 3D Accelerometer $35
Available at DimensionEngineering
1 CB220 Start Kit $99
1 CVFD-216 $54
Available at Comfile Technology
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.
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.
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
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.
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.
When you turn left or right, you will see X changing.
See video of assembling G-meter in 1 minute:
See video of G-meter in Action:
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
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
Set Display 2,0,0,128
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
'Print to LCD
Print "X: ",strX
Debug "Y axis: ",Dec Y,Cr
Debug "Y voltage: ",Float sY,Cr
Debug "Y G: ",Float gY,Cr
'Print to LCD
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
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 firstname.lastname@example.org
If you have any cool apps you'd like to share, please e-mail to email@example.com