Go to Post *referring to Team Titanium's 2012 robot* If only it could play guitar hero at the same time. sigh. - rsisk [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 07-03-2004, 21:35
ultramrw21 ultramrw21 is offline
Registered User
no team
 
Join Date: Feb 2004
Location: nc
Posts: 11
ultramrw21 is an unknown quantity at this point
Re: Getting Fancy with Sensors

Our team really hasn't found that much use in a lot of sensors, all we have is a photovoltic at the bottom of the robot. Thats really all we needed.
  #17   Spotlight this post!  
Unread 07-03-2004, 23:33
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
Re: Getting Fancy with Sensors

Quote:
Originally Posted by ultramrw21
Our team really hasn't found that much use in a lot of sensors, all we have is a photovoltic at the bottom of the robot. Thats really all we needed.

how successfull has your auton mode been so far this year? what % of the time are you getting the release ball down, or whatever your primary auton objective is?
  #18   Spotlight this post!  
Unread 08-03-2004, 02:43
velocipenguin velocipenguin is offline
Registered User
#0246 (Overclocked)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Boston, MA
Posts: 77
velocipenguin is on a distinguished road
Send a message via AIM to velocipenguin
Re: Getting Fancy with Sensors

Quote:
Originally Posted by jacob_dilles
for next year im working right now on a pic16F84...
Might I suggest switching to a PIC 16F628? It has almost the same pinout as the 16F84 and can be programmed with the same hardware, but has a hardware USART, D/A conversion, more I/O lines, and a lot more program memory. For some reason, it's also cheaper.

Quote:
Originally Posted by jacob_dilles
...in basic (yea i know; shush up) to integrate the gyros (2x) 2 banner sensors (for the wheels) and a compass.
I rather suspect a 16F84 will choke on something that complex. You won't be able to use interrupts to deal with the wheel encoders, because the 16F84 only has one external interrupt line. Are you using digital gyros, or analog ones with a pile of serial ADCs?
  #19   Spotlight this post!  
Unread 08-03-2004, 18:51
ultramrw21 ultramrw21 is offline
Registered User
no team
 
Join Date: Feb 2004
Location: nc
Posts: 11
ultramrw21 is an unknown quantity at this point
Re: Getting Fancy with Sensors

Actuallly, we've been very successful. We have been able to knock off both 10 point balls. The photovoltic sensor reads the white line right in front of the balls. The only obstacle is making sure the drivers that set the robot before a match know the exact angle at which to set it.

Last edited by ultramrw21 : 08-03-2004 at 18:54.
  #20   Spotlight this post!  
Unread 08-03-2004, 19:09
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: Getting Fancy with Sensors

Quote:
Originally Posted by velocipenguin
Might I suggest switching to a PIC 16F628? It has almost the same pinout as the 16F84 and can be programmed with the same hardware, but has a hardware USART, D/A conversion, more I/O lines, and a lot more program memory. For some reason, it's also cheaper.
I rather suspect a 16F84 will choke on something that complex. You won't be able to use interrupts to deal with the wheel encoders, because the 16F84 only has one external interrupt line. Are you using digital gyros, or analog ones with a pile of serial ADCs?
as i have it now, there are 3 protoboards, 2 wirewraps and a white breadboard with 2 pic 16f84's (one intrupts per) and a basic stamp 2. its tearably iniffecent, and can only be polled about twice a second.

i am extrealy eager to learn how to do anything else, but im stuck here with a bunch of mechanic-style guys and a zero tollerence electronics budget. at home i have a MEL "Epic" programer and the Pic Basic Pro software... http://www.melabs.com/ any advice on better pics would be GREAT. 16f628 i will look into tonight. much thanks...
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #21   Spotlight this post!  
Unread 09-03-2004, 13:51
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Getting Fancy with Sensors

You do know that you didn't have to ship the RC with the bot, right? Even if you did, You could still use the EDU. Plus, the EDU doesn't need 10 pounds of stuff to turn on
  #22   Spotlight this post!  
Unread 09-03-2004, 14:54
FadyS.'s Avatar
FadyS. FadyS. is offline
Registered User
AKA: Fady Samuel
#1246 (Agincourt Robotics)
Team Role: Programmer
 
Join Date: Sep 2003
Location: Toronto
Posts: 35
FadyS. is on a distinguished road
Re: Getting Fancy with Sensors

Quote:
Originally Posted by Astronouth7303
You do know that you didn't have to ship the RC with the bot, right? Even if you did, You could still use the EDU. Plus, the EDU doesn't need 10 pounds of stuff to turn on
We didn't ship the RC. However, we need a 12V battery to start it. Can we use a car battery just for testing purposes or should we buy a 12V battery for the bot?
  #23   Spotlight this post!  
Unread 09-03-2004, 15:20
Random Dude Random Dude is offline
Oregon State Head FTA
AKA: Chris
no team (Oregon Robotics Tournament & Outreach Program)
 
Join Date: Aug 2002
Rookie Year: 1998
Location: Oregon
Posts: 142
Random Dude will become famous soon enoughRandom Dude will become famous soon enough
Re: Getting Fancy with Sensors

Quote:
Originally Posted by FadyS.
We didn't ship the RC. However, we need a 12V battery to start it. Can we use a car battery just for testing purposes or should we buy a 12V battery for the bot?

Any 12v battery will work. Though, I'd be sure to put a fuse on it "Just in case"...

Last edited by Random Dude : 09-03-2004 at 15:49. Reason: Silly typo...
  #24   Spotlight this post!  
Unread 09-03-2004, 15:30
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Getting Fancy with Sensors

Quote:
Originally Posted by Astronouth7303
You do know that you didn't have to ship the RC with the bot, right? Even if you did, You could still use the EDU. Plus, the EDU doesn't need 10 pounds of stuff to turn on
I knew it, but I wasn't there the day they shipped the robot and it left, carrying the RC with it. At least we were 'done' with our programming...
__________________

  #25   Spotlight this post!  
Unread 09-03-2004, 16:37
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Lightbulb Re: Getting Fancy with Sensors

Quote:
Originally Posted by FadyS.
Hi, we're a rookie team and we're not done autonomous mode, but since we have over 3 weeks until our regional, I'm taking the time to work on autonomous mode. Now, I don't want to go overboard with sensors for autonomous but I want to know what kind of stuff is available at a local Radioshack that may be useful to autonomous. I already picked up a few switches and a potentiometer. I may pick up another potentiometer though. Also, I might pick up a few infrared phototransistors. Are these analog or digial sensors? Any other neat gizmos to pick up? I've got to admit, I love playing around with all these sensors. Hehe, "Captain, sensors are picking up a spatial anomoly! We should shut down the warp drive!!!" lol.
ALL switches = digital (well not exactly, theres resistor switch chains...)
potentiometer = analouge
phototransistors = digital
*other toys you can get at the shack*
photoresistors / css cells = analouge
opto-couples = digital
current sensors (K.O.P.) = analouge
gyro chip (K.O.P.) = analouge
hall effect sensor = digital

any questions on how any of these work or how to code them feel free to ask me (pm, aim, msn, icq, irc... lol)
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #26   Spotlight this post!  
Unread 09-03-2004, 21:06
jamapor jamapor is offline
Registered User
AKA: Jake
#0190 (Gompei and the Herd)
Team Role: Human Player
 
Join Date: Feb 2004
Location: Massachusetts
Posts: 47
jamapor is on a distinguished road
Send a message via AIM to jamapor
Re: Getting Fancy with Sensors

Quote:
Originally Posted by Texan
Yeah, it works fine, I just don't like them because of the relative unreliabilty of them. For instance, it's impossible for us to autonomously make it up onto the platform and turn toward the bar because we bounce some. At least with gyros, they don't mess up if a wheel slips or you get hit from the side or something like that.

Anyway, encoders do work.
We use the ultra-sonic sensors to travel to the stairs, the gyro's to detect when we reach the stairs, and then wheel encoders while we move up the stairs. It takes the un-reliability of the ultra-sonic sensors out when we move up the stairs by using the wheel encoders.
__________________

Team 190: 13 Years of Magic Smoke. And Life.
F.I.R.S.T. Veteran Team
National Quarter-Finalist (Curie) w/ 11 + 279
Arizona Regional Semi-Finalist w/ 980 + 1011
B.A.E. Regional Semi-Finalist w/ 131 + 134
  #27   Spotlight this post!  
Unread 09-03-2004, 21:36
FadyS.'s Avatar
FadyS. FadyS. is offline
Registered User
AKA: Fady Samuel
#1246 (Agincourt Robotics)
Team Role: Programmer
 
Join Date: Sep 2003
Location: Toronto
Posts: 35
FadyS. is on a distinguished road
Re: Getting Fancy with Sensors

Quote:
Originally Posted by jamapor
We use the ultra-sonic sensors to travel to the stairs, the gyro's to detect when we reach the stairs, and then wheel encoders while we move up the stairs. It takes the un-reliability of the ultra-sonic sensors out when we move up the stairs by using the wheel encoders.

Well, we've pretty much finalized our autonomous mode setup and we've written up the code. These are the following "sensors" we're using:

2 * Optical Sensors
3 * Infrared Sensors
2 * Potentiometers
4 * Current Sensors
2 * Switch

Now, I've tried to make sure that the autonomous mode code is full proof so that it will work even given the mechanical imperfections of our bot such as drift and motor backdriving. Essentially, it should be plug and play or at least I hope it should. Programming for Windows is one thing but programming for a robot is a completely different animal . Being a rookie team, none of know if anything we do will work. We sent in the bot 95% complete.

I commented for almost every single line of code and I wrote up an "Autonomous Mode Manual" so that I can very quickly figure out problems if any do arise. I've broken down autonomous mode into a 6 stage process with feedback so we would know which stage the robot is executing.
  #28   Spotlight this post!  
Unread 10-03-2004, 07:04
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Getting Fancy with Sensors

Quote:
Originally Posted by jamapor
We use the ultra-sonic sensors to travel to the stairs, the gyro's to detect when we reach the stairs, and then wheel encoders while we move up the stairs. It takes the un-reliability of the ultra-sonic sensors out when we move up the stairs by using the wheel encoders.
I like it. Can I have your robot?
__________________

  #29   Spotlight this post!  
Unread 10-03-2004, 11:51
velocipenguin velocipenguin is offline
Registered User
#0246 (Overclocked)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Boston, MA
Posts: 77
velocipenguin is on a distinguished road
Send a message via AIM to velocipenguin
Re: Getting Fancy with Sensors

Quote:
Originally Posted by jacob_dilles
i am extrealy eager to learn how to do anything else, but im stuck here with a bunch of mechanic-style guys and a zero tollerence electronics budget. at home i have a MEL "Epic" programer and the Pic Basic Pro software... http://www.melabs.com/ any advice on better pics would be GREAT. 16f628 i will look into tonight. much thanks...
Just so you know, Microchip offers free samples of many of their parts (including microcontrollers) through their web site. It's a great way to get small numbers of PICs for prototyping or experimental purposes.
  #30   Spotlight this post!  
Unread 10-03-2004, 12:02
ngreen ngreen is offline
Registered User
AKA: Nelson Green
FRC #1108 (Panther Robotics)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Paola, KS
Posts: 819
ngreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant future
Re: Getting Fancy with Sensors

Quote:
Originally Posted by velocipenguin
Just so you know, Microchip offers free samples of many of their parts (including microcontrollers) through their web site. It's a great way to get small numbers of PICs for prototyping or experimental purposes.
Yeah, they mailed me a couple 18F8520 PICmicroŽ microcontrollers from Thailand for free. Haven't had time to play with them yet though.
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
Why not analog sensors?? gnormhurst Programming 16 07-03-2004 16:14
Interrupts and rotation sensors kor Programming 3 12-02-2004 11:05
wiring diagram for light sensors??? pagemauck Control System 1 21-01-2004 16:32
what type of sensors are good and convenient magical hands Programming 7 04-01-2004 23:04
Q&A Discuss: optical sensors CD47-Bot Extra Discussion 0 15-02-2003 22:58


All times are GMT -5. The time now is 21:52.

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