View Single Post
  #2   Spotlight this post!  
Unread 12-02-2015, 11:30
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 577
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Using Hall Effect Sensors

Your photo didn't display for me.

If you're using something like the WCP hall effect sensor, most teams would treat that as a limit switch, observe its state via a DigitalInput, and count the number of times the switch tripped in code. The PID is a pretty long way to solving your problem.

I would recommend two limit switches on your elevator -- one that trips when you are in the lowest position, and the one that rides on the elevator triggering at the various tote heights (note that I think of the hall effect sensor as a limit switch). This lets you know initially when the elevator is in the lowest position, so that you can correctly determine at what level you're at.

Alternatively, you can always start the robot with the elevator at/below the first position, so that you know your starting position. I'm not a fan of this approach because it doesn't work well if your robot crashes during a match.
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
Reply With Quote