Go to Post FIRST does have instant replay. Its called the off season. - Wayne C. [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-11-2016, 08:18
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,572
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Getting Started with Sensors

Robotshop.com has hundreds of inexpensive sensors of the types you list (and more) that are great for tinkering. If you come in on the home page instead of the link, on the menus, products/robot parts/robot sensors. (First, first, and last selections respectively).
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-11-2016, 15:14
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,188
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
Re: Getting Started with Sensors

Encoders, multi-turn potentiometers, and photo-reflective sensors can all be useful in FRC. If you have any Talon SRX motor controllers, I would recommend experimenting with using encoders for speed control and potentiometers for position control.

If you are looking for applications that don't use Talons, there are still plenty of options. Photo reflective sensors can be used for line following, which is sometimes relevant in FRC. There are plenty examples of this online. A simple application of potentiometers is to enforce travel limits, similar to limit switches, except they can be adjusted in software.

You can also look into bang-bang speed control with encoders, which is useful for wheel-type shooters, for example. For that system, you would have a target speed, v, and an allowable variation, d, expressed as a percentage of v. If the wheel is spinning slower than v*(1-d), the motor is set to 100%. If the wheel speed exceeds v*(1+d), the motor is set to 0%.

For more complex situations, the motor output can be set to one of a number of discrete values according to how large the error is. This can allow for simple position control of mechanisms with potentiometers. With ultrasonic range finders, a similar system can also be used to automate the process of positioning the robot in proximity to a wall or obstacle with some precision (remember to account for the possibility of other robots or game pieces getting in the way).

Once you have familiarized yourself with basic sensor applications, you could even implement PID control on the RoboRIO directly. This is not necessarily the best idea, but it is definitely possible.
__________________
Reply With Quote
Reply


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


All times are GMT -5. The time now is 01:46.

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