View Single Post
  #9   Spotlight this post!  
Unread 13-04-2005, 23:45
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
Re: How to measure low velocity

So I think all I have to do now are the following steps:
1. Programming the ADC in uC to get samples in free running mode
2. Since the ADC is 10 bits but a data frame to transmit to pc is 8 bits, then I have to devide it to a frame of 3 bits and another of 7bits, then send them to pc
3.In pc, my program written in turbo C receive these bytes through COM1, merge them to get 10 bits value (as origin value after ADC).Then change them to voltage and then to corresponding angular rate.(we call rate value)
4.Also in this program (in pc) I use the timer of uC in PC to count the interval between two samples.
5.Calculate: angular=angular +[(rate value i)+(rate value (i+1))]*(time interval), and loop this routine
<in the beginning angular =0>
I'm sorry if some of these steps seem to suit in programming forum, but I think if I say all things in detail, it may help you to see where is my problems.
Especialy, I don't know how to do in step 4