angular speed and gyrometer


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    yep it does have something:

    tokin 5AB1
    tokin website had some datasheet for devices close to mine but not quite the same

    all i know is that it is powered with 5v and the static output is around 2.4v

    here there is a linkhttp://www.pgoelz.com/piccolo_piccoboard_troubleshooting_guide.html

    my sensor come from this device "the piccoboard" i just kept the sensor itself because the rest of the board was dead

    fefenin

  2. #2
    Join Date
    Mar 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    i m sorry but i just realised by reredind the web page taht the new gyro is probably very similar to the one i have exepted it has a 3 volt power suply

    here is the link:

    http://www.nec-tokinamerica.com/prod...ts/pd-057e.pdf

    my mistake

    fefenin

  3. #3
    Join Date
    Oct 2003
    Location
    holland
    Posts
    251


    Did you find this post helpful? Yes | No

    Default

    The spec. says 0,66 mV/deg/sec. maybe this is for your sensor the same value.
    This is something you can test by yourselves.

  4. #4
    Join Date
    Mar 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    yes i can see that with my oscillospope and stuff but i have no clue how to handle this in my soft
    i have an angular rate i just put it in a variable from 10bit adc i can debug it and see the variation when i move the sensor but after what math can i use to transform that in a rotation angle of for example 180° to move a servo??

    fefenin

  5. #5
    Join Date
    Oct 2003
    Location
    holland
    Posts
    251


    Did you find this post helpful? Yes | No

    Default

    Yes, that is possible.

  6. #6
    Join Date
    Mar 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    i know that is possible but what i ask is how i could do
    and if people good in programming (not like me) have some ideas

    thank ' s for your help
    fefenin

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by fefenin View Post
    i know that is possible but what i ask is how i could do
    and if people good in programming (not like me) have some ideas

    thank ' s for your help
    fefenin
    You probably have to get a book on some pretty good math here.
    It's called integration. If I know I've been accelerating for 10 seconds and a rate of 10 feet per second, then I know at the end of 10 seconds I'll be moving 100 feet per second and I'll have travelled 50 ft ('cause I started at 0 and now I'm at 100 and the acceleration was constant).
    The big thing with integration is the speed at which you integrate. It doesn't do any good if you look at a signal once a minute 'cause you may have been going 100 mph for 50 seconds of that minute, but may have started and ended that minute at 0 mph. Make any sense? Same thing goes with an angular sensor. If I know I started the time at 0 degrees position and zero degree per second of rotation, and now I know I'm rotating at 10 degrees per second, and now it's one second later, then I should know that I've rotated 5 degrees and I'm rotating at 10 degrees per second. So, in another second, I'll be at 15 degrees position, and still be rotating at 10 degrees per second, assuming I haven't had a change in rotational speed.

    Problem with this, is that no matter how good you think your math is, over time, your position will be off (especially using integer math like in PBP). You need some way to reset your position to zero (or some known angle). In the Nintendo Wii, the WiiMote uses those 2 IR LEDs from the sensor bar and the small sensor in the front of the WiiMote for just that...to reset the 'level angle' (for lack of a better term).

    So, for this to work effectively, you need, at the very least, a few things:
    A tight A/D with lots of bits, a fast sampling rate of your sensor, good floating point math, fast processing speed (a PIC is ok, but a dsPIC would be much better).
    But if you're just playing around, trying to get something to work...heck ya, a PIC and all it's internals should be perfect. You just have to write some integrating code like I described above and you're set.
    Hope you got a couple of ideas out of this...good or bad

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts