Go to Post The biggest fallacy in FIRST is the belief we are just a bunch of different teams. We are ONE BIG TEAM with a lot of sub teams for the purpose of competition. - Al Skierkiewicz [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
  #1   Spotlight this post!  
Unread 18-01-2014, 20:32
RyanShoff RyanShoff is offline
Registered User
FRC #4143 (Mars Wars)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Metamora, IL
Posts: 147
RyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to behold
arduino control of motor controllers

I'm not sure if this has been covered, but the Arduino sample Knob http://arduino.cc/en/Tutorial/Knob works great for quick testing of mechanisms. Just place any standard FIRST motor controller in place of the servo, and you have a easy variable speed control without CRIO programming.

We hooked an Adafruit Flora to a Talon and a Cim and our prototype ball disintegrator worked great.
__________________
Ryan Shoff
4143 Mars/Wars
CheapGears.com
  #2   Spotlight this post!  
Unread 19-01-2014, 08:18
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: arduino control of motor controllers

While that is a good way for quick tests, just be aware that it is not legal in competition. And as a long term solution, not recommended. There are many safety mechanisms built into the FRC control system that, for example, turn off the motors when the robot is out of range of communications or when the robot is disabled. Using the Arduino to control the motors bypasses all of them.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #3   Spotlight this post!  
Unread 19-01-2014, 10:23
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: arduino control of motor controllers

We played with this in the off season. A couple of things:

Use the version of server.attach() version that specifies pulse widths that the controller you are using likes. This is for a talon:
// motor drive server connected to a TALON
driveServo.attach(3, 1000, 2000); // TALON // widths are in micro-seconds

You will need to calibrate the speed controller. I wrote a sketch that prompts the user though the calibration starting with pressing the button and uses input from the serial port to advance thought forward, reverse, and back to idle.
__________________
Brian K
Team 1225 Robotics Mentor
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


All times are GMT -5. The time now is 02:36.

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