Go to Post The moral of this story is that constructive criticism is good, but only as long as you don't act like a complete idiot. - David Kelly [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
  #16   Spotlight this post!  
Unread 09-04-2003, 00:08
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
ohh man using 2 gyros would be great....
Just like Dave said, sensing your angular position and the ramp would rule.

I think we actualy have a very similar setup to what alot of teams used, using the gyro to sense turning. Its very useful and nice once we got it working.

We looked into alot of the stuff in future active and digikey and couldn't come up with anything else that could be used other then the gyro other then maybe like some of the compass type stuff but that seems like it would be dificult.
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!
  #17   Spotlight this post!  
Unread 09-04-2003, 10:52
Dusan Dusan is offline
Registered User
#0548 (Robostangs)
 
Join Date: Mar 2003
Location: Northville, Michigan
Posts: 8
Dusan is an unknown quantity at this point
instead of 2 gyros we use tilt sensors

sneses x and y axis
  #18   Spotlight this post!  
Unread 17-04-2003, 23:03
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,080
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
all a gyro is is a tilt sensor...
  #19   Spotlight this post!  
Unread 25-04-2003, 00:24
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
We bought a 2-axis inclinometer (tilt sensor) from Digikey. We wrote a routine on the EDUbot that automatically went straight up the ramp. Unfortunately, the sensor (not the routine) was incredibly slow so it was useless on the actual robot.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
  #20   Spotlight this post!  
Unread 29-04-2003, 14:27
AdmiralPaddon AdmiralPaddon is offline
Registered User
#0768
 
Join Date: Mar 2002
Location: Woodlawn High School
Posts: 16
AdmiralPaddon is an unknown quantity at this point
Can anyone either send me or point me to a program that I can load onto a BasicStamp processor so that it detects the gyro and controls a motor? Also, is there any difference between this year's and last year's gyroscope programming?



Thanks!

-Admiral Paddon

Last edited by Al Skierkiewicz : 22-01-2015 at 08:47. Reason: Poster requested.
  #21   Spotlight this post!  
Unread 29-04-2003, 14:49
Caleb Fulton's Avatar
Caleb Fulton Caleb Fulton is offline
Z = Z^2 + C ......WHEEEE!
AKA: aXvXiA
#0461 (West Side Boiler Invasion)
Team Role: College Student
 
Join Date: Dec 2002
Location: West Lafayette, Indiana
Posts: 205
Caleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura about
Send a message via AIM to Caleb Fulton
Admiral: Are you asking about using a gyro with a regular stamp or with the robot controller? There's a huge difference with respect to the hardware interfacing...
__________________
  #22   Spotlight this post!  
Unread 29-04-2003, 18:11
AdmiralPaddon AdmiralPaddon is offline
Registered User
#0768
 
Join Date: Mar 2002
Location: Woodlawn High School
Posts: 16
AdmiralPaddon is an unknown quantity at this point
BasicStamp processor, not the robot controller. SOrry if there was confusion.
  #23   Spotlight this post!  
Unread 29-04-2003, 21:34
Caleb Fulton's Avatar
Caleb Fulton Caleb Fulton is offline
Z = Z^2 + C ......WHEEEE!
AKA: aXvXiA
#0461 (West Side Boiler Invasion)
Team Role: College Student
 
Join Date: Dec 2002
Location: West Lafayette, Indiana
Posts: 205
Caleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura about
Send a message via AIM to Caleb Fulton
Here's what I would try to do:

I would make a RC (resistor-capacitor) circuit that is charged by the voltage output from the gyro and read into the stamp with the "rctime" command. If you consult the parallax documentation, this information shouldn't be too hard to find.
__________________
  #24   Spotlight this post!  
Unread 29-04-2003, 22:27
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
doesnt the basic stamp have an analog input channel (ADC input) ?

if not, I wouldnt bother with it - get a MicroChip PIC chip, with an ADC

and you can program it in assembly or C.
  #25   Spotlight this post!  
Unread 30-04-2003, 09:14
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
need an ADC

You will need an ADC. PICs are great, but there is an upfront investment in equipment. If you already have a Stamp then you can buy an inexpensive ADC to do the conversion for you.

A suitable part is the ADC0831 8-bit serial analog-to-digital converter. This is the part used by Parallax in their examples. Get an 8-pin socket and solder it straight to the Stamp carrier board. The converted value is passed into the Stamp using synchronous serial communications. The code below will read the converted value:

Code:
'This code is for the ADC0831 serial 8-bit ADC
'constants defining which Stamp pins are  connected to the ADC
ADC_CS		CON	0	'CS on the ADC (pin 1)
ADC_CLK		CON	1	'CLK on the ADC (pin 7)
ADC_D0		CON	2	'D0 on the ADC (pin 6)

'variable holding converted analog value
ADCVal		VAR	BYTE

'************************************************
' SUBROUTINE:	GetADCVal
' PURPOSE:	Shift in the value from the ADC 
'		connected to the ADC_CS, ADC_CLK,
'		and ADC_D0 pins on the stamp.
' OUTPUT:	Sets the value of variable ADCVal
' REF:		Based on code from Parallax, Inc.
'************************************************
GetADCVal:
	'pulse the chip select line to start conv.
	HIGH ADC_CS
	LOW ADC_CS

	'bring the clock line low, then send one
	'pulse to wake up the ADC and make it 
	'ready to shift out
	LOW ADC_CLK
	PULSOUT ADC_CLK, 210

	'shift in data, most significant bit first
	SHIFTIN ADC_D0, ADC_CLK, MSBPOST, [ADCVal\8]
RETURN
The data sheet for the ADC will tell you which pin is which. You'll only need to make three connections from the stamp to the ADC, defined by the contstants in the code. Just make a call to GetADCVal to grab the current reading from the ADC.
  #26   Spotlight this post!  
Unread 05-05-2003, 08:38
AdmiralPaddon AdmiralPaddon is offline
Registered User
#0768
 
Join Date: Mar 2002
Location: Woodlawn High School
Posts: 16
AdmiralPaddon is an unknown quantity at this point
Quote:
Originally posted by Caleb Fulton
Here's what I would try to do:

I would make a RC (resistor-capacitor) circuit that is charged by the voltage output from the gyro and read into the stamp with the "rctime" command. If you consult the parallax documentation, this information shouldn't be too hard to find.
Sorry, I don't know how to build that. Could you point me to where instructions are for that or something? Thanks.

Sorry for being such a newb.
  #27   Spotlight this post!  
Unread 05-05-2003, 10:35
AdmiralPaddon AdmiralPaddon is offline
Registered User
#0768
 
Join Date: Mar 2002
Location: Woodlawn High School
Posts: 16
AdmiralPaddon is an unknown quantity at this point
I have 2-state relays. Could I use the output voltage of the gyro to operate those? They work on 5V, on/off. Voltage going through, connection. No voltage, no connection.
  #28   Spotlight this post!  
Unread 09-05-2003, 15:43
AdmiralPaddon AdmiralPaddon is offline
Registered User
#0768
 
Join Date: Mar 2002
Location: Woodlawn High School
Posts: 16
AdmiralPaddon is an unknown quantity at this point
Umm, can anyone help? I'd really like to get this done. Thanks!
  #29   Spotlight this post!  
Unread 09-05-2003, 16:21
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Quote:
Originally posted by AdmiralPaddon
I have 2-state relays. Could I use the output voltage of the gyro to operate those? They work on 5V, on/off. Voltage going through, connection. No voltage, no connection.
Uh... You can do that... But it probably wouldn't work in a predictable manner.

The gyro outputs an analog voltage, from 0-5VDC. When it's not moving (CW or CCW around the axis of rotation), it outputs 2.5VDC (as far as I know), which is equivalent to 127, when converted to an 8bit value.

Now, depending on the thresholds of your relays, and if they use hysteresis, this would cause the relays to switch on when the gyro is under rotation, and off when it is standing still... But the states that the relays would be in are dependant on their thresholds.

I have no idea what the application of this kind of system would be, off-hand. If you could explain some sort of project goal, it'd be a lot easier to help you.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #30   Spotlight this post!  
Unread 09-05-2003, 19:39
Caleb Fulton's Avatar
Caleb Fulton Caleb Fulton is offline
Z = Z^2 + C ......WHEEEE!
AKA: aXvXiA
#0461 (West Side Boiler Invasion)
Team Role: College Student
 
Join Date: Dec 2002
Location: West Lafayette, Indiana
Posts: 205
Caleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura about
Send a message via AIM to Caleb Fulton
If you're still interested in it, you can do this relatively easily with a plain old basic stamp, a resistor, and a capacitor... I could help you out if you are still wanting to do it.
__________________
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
Programming Compatition Angela06 Programming 30 08-04-2005 23:12
Hooking up Controller to computer for programming. Dragon45 General Forum 3 30-01-2003 00:22
Pneumatics electrical wiring and programming archiver 2001 1 23-06-2002 23:10
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46
pbasic programming punarhero Programming 4 21-01-2002 23:32


All times are GMT -5. The time now is 16:41.

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