Zedomax DIY 102 maakt een g-Meter voor uw auto in 1 minuut!
[DIY 102]
Doe het zelf!

Lijst van onderdelen:
1 als buffer opgetreden voor 3D Versnellingsmeter $35
Beschikbaar in DimensionEngineering
1 de Uitrusting van het Begin CB220 $99
1 cvfd-216 $54
Beschikbaar bij Technologie Comfile
Vandaag ontving ik mijn versnellingsmeter van de Techniek van de Afmeting, was ik zo opgewekt en couldn wacht t beginnen iets met het te maken. Zo voor kwam ik ik kon volgen app nota op hun website voor het maken van een g-Meter.
Ik stelde voor dat ik het met de module CB220 en een stop-n-Spel LCD van Comfile in kwestie van minuten kon enkel doen.
Het volgende is de speld van de versnellingsmeter outs van het blad van productgegevens:

De versnellingsmeter heeft een 3.3V regelgever zodat kunnen wij 333mV/g als sensitity voor onze g-Meter gebruiken.

Aangezien de module CUBLOC CB220 analoge input heeft, kunnen wij X, Y, de analoge output van Z van de versnellingsmeter aan de spelden van de ADVERTENTIE op CB220 eenvoudig verbinden.
Maak verbindingen als hieronder getoond:

(Close-up van verbindingen op de studieraad) Dan, kunt u LCD verbinden gebruikend de schakelaars.

Wanneer gedaan, zou u iets als hierboven moeten hebben.
Download eenvoudig Accelerometer.zip
en download aan uw module CB220 die CublocStudio.Now gebruikt u 1G op uw LCD lezingen zou moeten kunnen krijgen wanneer u verticaal uw studieraad en horizontaal beweegt. 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.
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




























[...] 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.