Go to Post What if, each alliance has a pile of AndyMark equipment in front of them. They then have 2:00 minutes to assemble said equipment, and build a working robot that will race to the other side and grab the other alliance's flag. - Pjohn1959 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2008, 07:50
hinewwiner hinewwiner is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Korea
Posts: 4
hinewwiner is an unknown quantity at this point
Gyro ADXRS150 rate out

Hello.

I am having so much trouble with this Gyro.


I connected the gyro to the pic board(18F8722) and have the pic board sent the input from the gyro with unsigned int. and I am getting like 177~179ish in the hyper terminal from the serial port of the pic board.

Is this behavior normal? Also does anyone know how to use TEMP out of the gyro?

Thank you so much
  #2   Spotlight this post!  
Unread 17-02-2008, 09:56
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
Re: Gyro ADXRS150 rate out

Are you shifting down two bits? The serial out is probably set up to send unsigned char (8-bit) whereas the analog port reads in an unsigned int, as you said, with 10 bits of resolution. Try sending (gyro >> 2).

If that's not the problem...Does it still vary correctly when rotated? Maybe it's just got a fairly large offset and 177 is the "center."
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS
  #3   Spotlight this post!  
Unread 17-02-2008, 11:24
hinewwiner hinewwiner is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Korea
Posts: 4
hinewwiner is an unknown quantity at this point
Re: Gyro ADXRS150 rate out

adcVal = read_adc(ADC_START_AND_READ);


printf("%u%c%c",adcVal,0x0D,0x0A);//printout in hyper terminal

I did it like this and I will try to have more bits and test it.

What should the normal value be? and what does the value mean? (does 177 refers to volts in some other unit?)
Thank you.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADXRS150 Gyro Yaw Sensor sensitivity? hinewwiner Technical Discussion 5 08-02-2008 09:20
ADXRS150 turn rate controller help required... dani Programming 6 23-05-2006 14:59
ADXRS150 gyro yaw rate sensor Brian M. Electrical 13 17-10-2004 02:28
ADXRS300EB Rate Gyro rmeenaks Electrical 18 05-04-2004 22:37
ADXRS300EB Rate Gyro rmeenaks Technical Discussion 0 31-03-2004 16:48


All times are GMT -5. The time now is 10:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi