Shop OBEX P1 Docs P2 Docs Learn Events
Wind speed indacator — Parallax Forums

Wind speed indacator

riverdanriverdan Posts: 21
edited 2007-09-26 19:48 in BASIC Stamp
I have a small servo motor I am using to check the wind speed. Most of the time it generators 0 to 15vdc I am using a voltage divider to make it 5vdc at 15vdc. I need a bs2 code "analog" to make the 5vdc linear with the 15vdc. I would like to then plot it on StampPlot 3. I just can not seem to work out the math on my own, I need to get pointed in the right direction.
·
Thank You for Your Time
·
Riverdan
·smhair.gif

Comments

  • TechnoRobboTechnoRobbo Posts: 323
    edited 2007-09-23 22:51
    multiply by 3 - but it seems thatyour final result should be windspeed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Have Fun


    TR
  • D FaustD Faust Posts: 608
    edited 2007-09-23 23:20
    If you are measuring the voltage out of the motor, then I think that it doesn't have a linear response to the speed.· You would have to come up with a convertion formula or something.· I would divide the voltage by four just in case the output goes over 15V you don't want to fry the stamp.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-09-24 01:28
    The easiest way to calibrate an anemometer is to mount it to the roof of your car. Then, on a calm day, find a nice straight stretch of empty country road, and drive back and forth at 5mph increments, recording each reading as you go. It's best to have a helper do the recording, so you can concentrate on the road and on keeping a fixed speed. When you're finished, you'll have a table you can graph, which will make any nonlinearities obvious.

    -Phil
  • TechnoRobboTechnoRobbo Posts: 323
    edited 2007-09-24 01:36
    Where are you reading the 5 volts? 8 bit Ato D - 12 bit A to D? PWM comparison? What value equls 5 volt?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Have Fun


    TR
  • riverdanriverdan Posts: 21
    edited 2007-09-24 14:02
    I realy want to thank you one and all for your timely input. Simply put I just need a bs2 code, and or macro, to plot 0 to 5vdc analog in stamp plot "analog" maybe it is in the macro.

    Thanks Riverdan
  • FranklinFranklin Posts: 4,747
    edited 2007-09-24 22:25
    What everyone is saying is the stamp needs to convert the analog voltage to a digital form inorder to output something to the stamp plot program. This you have not told us about yet, please do.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2007-09-25 04:54
    How "noisy" is the motor?· Instead of looking at voltage, you could actually measure the voltage ripple to get a true RPM of the motor-acting-as-a-generator at least.
    ·
    If you’re just interested in wind speed, it might be worth lobotomizing one of the coils on the motor, as this would b much easier to differentiate than a small ripple.
    ·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • steve_bsteve_b Posts: 1,563
    edited 2007-09-26 19:48
    I'd suggest using a gps to get proper speed.
    After I put on 30"tires on my Jeep (They came with 27" tires) I found, with a gps, that my spedometer and gps were saying the same thing.
    So your spedometer might not be as accurate as you think....
    Phil Pilgrim (PhiPi) said...
    The easiest way to calibrate an anemometer is to mount it to the roof of your car. Then, on a calm day, find a nice straight stretch of empty country road, and drive back and forth at 5mph increments, recording each reading as you go. It's best to have a helper do the recording, so you can concentrate on the road and on keeping a fixed speed. When you're finished, you'll have a table you can graph, which will make any nonlinearities obvious.

    -Phil
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <FONT>Steve



    What's the best thing to do in a lightning storm? "take a one iron out the bag and hold it straight up above your head, even God cant hit a one iron!"
    Lee Travino after the second time being hit by lightning!
Sign In or Register to comment.