Shop OBEX P1 Docs P2 Docs Learn Events
Digital Inclinometer — Parallax Forums

Digital Inclinometer

ShamsulShamsul Posts: 2
edited 2005-10-27 15:17 in Robotics
Hi,
I am trying to build a digital inclinometer. My idea is to connect a linear potentiometer to ADC0831 then connect to SLED4C (or three 7segment LCD). When the voltage from the potentiometer is zero then it will display 0 (Zero) again the potentiometer will rotate, it will supply 1.5V to ADC the SLED4C will display 210.
·This is my first project with ADC0831. Would you please tell me, what are the things I should buy? Would you please tell me about the connections and the program? I know the BASIC program.
·Thanks
Shamsul
shamsul@shaw.ca
Vancouver

Comments

  • Tronic (Greece)Tronic (Greece) Posts: 130
    edited 2005-10-27 12:48
    Why with ADC0831? Why not keeping it simple? With a simple RC circuit
    and 3 lines of code you can read inclination fast and easy. In my solar tank
    project I mounted a weight on the axle of a 10k pot so it can follow gravitys
    direction. Then just measure the time it takes to discharge the 0.01uF cap in
    various angles and there you go you can have as many detail in angle
    detection as you need. In Tank I used only two angles, those that was dangerous
    to flip over trying climb a obstacle or when backing up towards a wall...
    ·
    inclined VAR WORD
    

    forwd: ' forward movement routine
    DO 
      HIGH 11 
      PAUSE 1 
      RCTIME 11,1, inclined 
      IF (inclined > 550) THEN 
        GOSUB brake_servo 
        GOTO backwd 
      ELSE 
        pulseRight = 650 
        pulseLeft = 850 
        GOSUB Send_Pulse_ramp 
      ENDIF 
    LOOP WHILE (continue = 1) AND (inclined < 550)
    



    Post Edited (Tronic (Greece)) : 10/27/2005 1:29:32 PM GMT
  • Tronic (Greece)Tronic (Greece) Posts: 130
    edited 2005-10-27 12:48
    the photos show the new compact design versous the huge one prototype
    that the video shows.

    Click below to watch the video with the inclinometer sensor in action.
    http://media.putfile.com/inclinometerdemo



    inclinometercircuit6zw.jpg

    inclineback2cu.jpg

    inclinetop8sv.jpg



    Post Edited (Tronic (Greece)) : 10/27/2005 1:51:20 PM GMT
  • BeanBean Posts: 8,129
    edited 2005-10-27 15:17
    Of even better, use the Memsic 2125 accelerometer.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012
    Product web site: www.sxvm.com
    Available now... SX-Video OSD module $59.95 www.sxvm.com

    Life is NOT a box of chocolates.
    Life is a trip, and 99% of the time you get where your headed.

    ·
Sign In or Register to comment.