Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Differences programming ADXRS150EBs to BEI Gyrochips? (http://www.chiefdelphi.com/forums/showthread.php?t=26662)

Salik Syed 15-03-2004 21:08

Re: Differences programming ADXRS150EBs to BEI Gyrochips?
 
haha...i have no idea what integration really means...i thought it was jus multiplying by time twice (or once to get speed) ...but i figured wut i did wasn't really integration.. now i get it....the cpu cycle time...aha.... :ahh:
i'm still in trig booohooohooo

ne ways we got the gyro today and hooked it up to a prototyping board...it was really easy, but the gyro has no output????
when i plug the pwm cable into the computer it reads 135 whether i shake it too and fro or what not i get a constant 135, if i unplug it says 255.
Now did i plug Signal to the right pin? is it RATEOUT that i should plug in to? (that is pin 2)

Salik Syed 15-03-2004 21:13

Re: Differences programming ADXRS150EBs to BEI Gyrochips?
 
I think i'll have fun at Sacramento ;)
porting over code meant for a totally different robot into another one....
it will be interesting.

KenWittlief 15-03-2004 21:20

Re: Differences programming ADXRS150EBs to BEI Gyrochips?
 
yes, rate out is the right one

there are also two power pins - pins 1 and 13 both need +5 volts

there are two gnd pins but the spec sheet says they are tied together on the little circuit board - pins 12 and 8, so either one can be used

you said PWM in your post - I take it you mean the analog input connector using a pwm cable?

also make sure you have the chip the right way - pin one has a square PCB pad, the rest have round pads on the top of the circuit board

and remember the driwing on the spec sheet is the top view - when you solder wires on the bottom side the pin numbering is a mirror image of the top side.

let us know if it works.

Salik Syed 15-03-2004 21:24

Re: Differences programming ADXRS150EBs to BEI Gyrochips?
 
Yes i saw the one w/ a square solder is pin 1....and nothing burned or melted so i think that parts good,
I think the reason it wasn't working was that i never put anything in pin 13, i'll check tommorow and see what happnes, THanks!.

KenWittlief 15-03-2004 21:28

Re: Differences programming ADXRS150EBs to BEI Gyrochips?
 
yep! that would do it. Pin 13 is the charge pump pin - that explains what you saw - it should be fine when you hit it with 5V on both pwr pins

cool! I like it when HW bugs make sense :^)

Salik Syed 16-03-2004 15:24

Re: Differences programming ADXRS150EBs to BEI Gyrochips?
 
btw...in case any one else is reading you also need to connect pin 12 to ground

Salik Syed 16-03-2004 20:31

Re: Differences programming ADXRS150EBs to BEI Gyrochips?
 
YAY!
we finally :
1. got all the measurments etc. down for autonomous
2. rigged up the ADXRS150EB and changed our code to use it (it was really simple instead of adding 83 we just add 41.5) and it works...!
3. tested it with the new gyro
and hooray it works we get to ball tee area knock down the ball grab the goal and all this in 5 seconds with our test bot (which turns slower, has single motor 8ft/s drive and on a low battery!!!!) our real bot drives 15f/s ...better have a ful battery ;) and has a 6th wheel for smoother turning.....i'm thinking i should put some code in to drive all the way back and start herding balls.....this is awesome....oh and it works regardless of what battery voltage is
ha...i'm happy....now to port it over from edubot->>FRC and add some arm movement code.

Larry Barello 17-03-2004 00:47

Re: Differences programming ADXRS150EBs to BEI Gyrochips?
 
Quote:

Originally Posted by KenWittlief
good question - obviously the full scale readings will be off

and Im willing to bet Analog Devices will tell you to fix that by adjusting the zero point on the output - I think there are resistors you can play with to make zero be = 2.5V - I havent looked into it

or it is possible its the analog inputs on the PIC chip that are a little off on zero - I havent played with it or done any testing - our bot seems to be good enough the way it is, so I havent spent anytime trying to make zero = 127.

The 150 d/s full scale output is just a rough number. The scale and offset of the chip will change with temperature and process variations.

Our code averaged the first 1.28 seconds of gyro data @ 100hz to get the offset. Since the gyro code was run off a timer (in the fast loop) it runs all the time regardless. Once the power is on, it does it's thing.

We also had to "calibrate" the scale by spinning the robot 180 and printing out the results. It appeared that our full scale was something more like 200 deg/s.

With the scale calibrated and the offset auto-calibrated at start, our ADXL150 would track to within a deg over two minutes. Very impressive stability. We used the angle & distance information via the Dashport, to track the location of the robot on a PC screen as we drove around the field. This would have been really handy last year when the robot was hidden behind the boxes :)


All times are GMT -5. The time now is 22:25.

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