1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Electronics G meter help.

Discussion in 'Modding' started by hcker2000, 4 Aug 2005.

  1. hcker2000

    hcker2000 What's a Dremel?

    Joined:
    21 Oct 2004
    Posts:
    109
    Likes Received:
    0
    Ok basicly I would like to make a horizontal gforce meter for in my car.

    What I Was thinking is some kind of gforce sensor + a pic + some leds.

    I don't know if this can be done cheaply or not. I hope so. Can any one point me to the gforce sensor that I could interface to a pic?
     
  2. Xiachunyi

    Xiachunyi What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,404
    Likes Received:
    0
    These here might not be as cheaply as you want them, but a plethora of people are familiar with them.
     
  3. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,594
    Likes Received:
    420
    Wow, that's a damned cool chip. Modern electronics never cease to amaze me these days.

    Not cheap at $12.80 though :\
     
  4. iamnafets

    iamnafets What's a Dremel?

    Joined:
    24 Feb 2005
    Posts:
    112
    Likes Received:
    0
    If you ever get around to it, post the results here, and a schematic if you get the chance. I'd love to make one of these :). I always pull this turn at like 40mph and it throws coke cans across the car, I'd love to see the force.
     
  5. hcker2000

    hcker2000 What's a Dremel?

    Joined:
    21 Oct 2004
    Posts:
    109
    Likes Received:
    0
    12 bucks is fine sence I only need one for the project. The worst problem is it is so dang small :/

    Any one know what pic would be best for this project. Basicly I was thinking 5 leds on each side (for left and right forces).

    Some thing like this.
    OOOOOXOOOOO

    And lets say I make a left turn
    OOOOOXXXXOO

    X = lit leds
    O = unlit leds.

    EDIT: Kind of like this but alot simpler and cheaper. I will definitly post the pic code once I can figure out how to get this done.
     
    Last edited: 5 Aug 2005
  6. hcker2000

    hcker2000 What's a Dremel?

    Joined:
    21 Oct 2004
    Posts:
    109
    Likes Received:
    0
    So could any one who has worked with these sensors give me some help as to interfacing them to a pic. I have never done any thing with the built in A/D on a pic16f88 before now so.
     
  7. Lynx

    Lynx What's a Dremel?

    Joined:
    24 Nov 2001
    Posts:
    864
    Likes Received:
    2
    I havent used those chips but some from analog devices. Those are simply interfaced by running the output into an ADC.
     
  8. shotgunefx

    shotgunefx What's a Dremel?

    Joined:
    4 Feb 2004
    Posts:
    449
    Likes Received:
    0
    I have a Memsic 2125 Dual-Axis Accelerometer for my car. Haven't gotten around to installing it yet as I'm not sure if I want to use it to measure force or as a tilt sensor for the steering wheel.

    If you go to parallax's site, they have basic stamp code for working with them. You should be able to translate that fairly easily.
     
  9. hcker2000

    hcker2000 What's a Dremel?

    Joined:
    21 Oct 2004
    Posts:
    109
    Likes Received:
    0
    Thanks so is the chip from sparkfun about my best option?
     
  10. davew

    davew What's a Dremel?

    Joined:
    13 Mar 2004
    Posts:
    227
    Likes Received:
    1


    Have you seen the pre-soldered (I think?) 'breakout board' they do? A lot extra to pay though :sigh:
     
  11. One~Zero

    One~Zero What's a Dremel?

    Joined:
    9 Sep 2004
    Posts:
    214
    Likes Received:
    2
    Try searching the Sparkfun.com forums on use of that chip. You are probably not the only one to be using it for this purpose, and more than likely someone else who has bought it from Sparkfun would post results on their forum. :thumb:
     
  12. Xiachunyi

    Xiachunyi What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,404
    Likes Received:
    0
    Actually, I was pointing to the other accelerometers that can interface directly to digital input lines of a microprocessor.
     
  13. hcker2000

    hcker2000 What's a Dremel?

    Joined:
    21 Oct 2004
    Posts:
    109
    Likes Received:
    0
    Oh well the link to sparkfun was only for there main page.
     
  14. One~Zero

    One~Zero What's a Dremel?

    Joined:
    9 Sep 2004
    Posts:
    214
    Likes Received:
    2
  15. Xiachunyi

    Xiachunyi What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,404
    Likes Received:
    0
    Yeah, I forgot to mention their, I would assume,session browsing:
    "http://www.sparkfun.com/shop/index.php?shop=1&cart=350724&cat=71&" hmmm...

    Oh well, if you did not deviate from the main page, the right navigation menu holding the section, "sensors", have a variety of accelerometers that are easier to interface but have a multiple price add-on.
     
  16. hcker2000

    hcker2000 What's a Dremel?

    Joined:
    21 Oct 2004
    Posts:
    109
    Likes Received:
    0
    Yea most of the other sensors are expensive. Is using an ADC on a pic very hard? I have no experiance with that part of a pic as of yet.
     
  17. SoulDaddy

    SoulDaddy What's a Dremel?

    Joined:
    5 Jul 2005
    Posts:
    8
    Likes Received:
    0
    I actually make these every now and then and sell them. I use the adxl311 or adxl320. I then use 10 bit ADC on a PIC16F876A and display it on a 16x2 char backlit LCD. the ADC is piss easy on the PIC as long as you set it up right. I run the LCD from the PIC in 8-bit mode. It works very nice and you can add some bars for graphics. tune me if you need help.
     
  18. hcker2000

    hcker2000 What's a Dremel?

    Joined:
    21 Oct 2004
    Posts:
    109
    Likes Received:
    0
    Yea I definitly need a bit of help with it. I dont mind the cost of the sensors so long as I know I can get help geting it to work. I'm heading to bed but if you could pm me some of your code to look over that would be a great big help. Then I can start asking specific questions and such.

    EDIT: I'm sure two g's is more than enough for most any car aside from decked out race cars. Also if you can link to a source of the sensors you use that would also be great.
     
  19. nleahcim

    nleahcim What's a Dremel?

    Joined:
    22 Apr 2003
    Posts:
    550
    Likes Received:
    1
    If using an analog accelerometer is a problem there are also various digital accelerometers. I'm using a 3-axis SPI accelerometer in a current project (though I should mention it's in a DFN package - which is quite similar to the QFN package of those Freescale chips.
     
  20. hcker2000

    hcker2000 What's a Dremel?

    Joined:
    21 Oct 2004
    Posts:
    109
    Likes Received:
    0
    I dont know if it is a big problem or not considering alot of pics have the ADC built in. Usualy only one though so that dose limit my axis down to just one. Heck if I realy knew what I was doing I bet you wouldent even need a pic.
     

Share This Page