Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Arm angle finder (http://www.chiefdelphi.com/forums/showthread.php?t=91530)

FREEZERMAN910 11-02-2011 19:29

Arm angle finder
 
We need a way to find the angle of our arm during a match, but we can't use a gyro or a potentiometer due to either programming error or lack of pwm cables. Please help we need to do this without using said things.

ratdude747 11-02-2011 19:38

Re: Arm angle finder
 
i am not sure if you can. my only guess would be to use the camera to find height (by what it is seeing) and somehow deriving an angle from that.

otherwise, your choices are:

potentiometer
encoder (analog or digital)
gyro
magnet sensor (technically an encoder)

nighterfighter 11-02-2011 19:39

Re: Arm angle finder
 
You could always guess... based on how long you have driven the arm... but it won't be accurate.

Why can't you use a pot? There really isn't much programming error...

Also, another option is to use limit switches.

joek 11-02-2011 19:55

Re: Arm angle finder
 
go and buy about 20 feet worth of triple PWM, and 10 ft of double

theprgramerdude 11-02-2011 22:10

Re: Arm angle finder
 
Quote:

Originally Posted by joek (Post 1020885)
go and buy about 20 feet worth of triple PWM, and 10 ft of double

This.

If you can't afford PWM, you're beyond helping.

nighterfighter 11-02-2011 22:12

Re: Arm angle finder
 
Quote:

Originally Posted by theprgramerdude (Post 1020957)
This.

If you can't afford PWM, you're beyond helping.

Well, it COULD be they ran out of slots on the IO Board.

Although, I believe you are allowed to use a second one...

EricH 11-02-2011 22:40

Re: Arm angle finder
 
Guys, this question is from the team that ran the "Brother's Keeper" automode back in 2007. That automode is one of the most complex ones to ever be attempted to date, and only one team ever managed to run it successfully. Something is going wrong if they're having trouble with both a gyro and a pot.

First question: What code are you using for pot/gyro reading?
Second question: What is the reason for the lack of PWM cables? Are you simply using CAN?

If you need a good temporary solution, I'd go with a gear tooth sensor of some form. (You could do it with a magnetic one, or build a beam-break sensor, or something much crazier.) You know which direction the arm is supposed to be moving, by motor direction command or by gravity in the absence of that command. You set the count to a known value at the start of the match, so you have a reference point. Now you count teeth. Each tooth is some number of degrees on the sprocket/gear/whatever you're measuring with. Now you know how many degrees and which direction.

It's not quite as good as a pot, but it should do the trick.


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

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