Go to Post The low bar will make your electronics team cry. - Joe G. [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 03-03-2009, 14:24
Otaku's Avatar
Otaku Otaku is offline
Where'd my wrench go?
AKA: Michael Baker
FRC #0675 (Tech High Phantom Robotics)
Team Role: College Student
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Underneath my car
Posts: 509
Otaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond repute
Send a message via AIM to Otaku Send a message via MSN to Otaku
non-'FRC legal' control systems?

Before I get any flak for this -- no, 675 isn't planning on building our own control system.

My senior project involves motors and I'm already somewhat familiar with robot control systems, but if I can't get permission to use an old IFI FRC control system for my project, I'll need to figure out how to take the values from the two pots in a joystick and turn them into PWM signals. And as cheaply as possible.

Essentially, I need to build a system that will be light, cheap, effective and robust for use in a wheelchair I am designing and building that is based off of some of 675's previous chassis designs.

so... potentiometer value to PWM, so I can feed it into a vic or jag into a motor. Suggestions, other than FRC control systems?

I would just use the IFI Control System or the NI cRIO, but they're both quite expensive, so...
__________________

"The [Otaku] is a simple creature." "Indeed. I cease to function when removed from a mill."
Reply With Quote
  #2   Spotlight this post!  
Unread 03-03-2009, 14:29
Alex Cormier's Avatar
Alex Cormier Alex Cormier is offline
www.TwoPencilDesigns.com
AKA: Grizz, Twinkletoes, PitBull1126
FRC #1405
Team Role: Coach
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Rochester, NY
Posts: 5,579
Alex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond repute
Re: non-'FRC legal' control systems?

Try some of these:

http://www.robotmarketplace.com/prod...nics_main.html
http://www.robotmarketplace.com/prod...gear_main.html
__________________

Two Pencil Designs - Vinyl Graphics, Bumper Numbers, and Strategy Items!
Like us on Facebook & follow us on Twitter
Facebook.com/TwoPencilDesigns & TwoPencilDesign
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2009, 14:50
Jared Russell's Avatar
Jared Russell Jared Russell is online now
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,069
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: non-'FRC legal' control systems?

Is using a PC an option? There are clever ways to do this using your parallel port to generate the PWM signal.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-03-2009, 14:52
MrForbes's Avatar
MrForbes MrForbes is online now
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,939
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: non-'FRC legal' control systems?

new vex transmitters sell on epay for about 30 bucks plus shipping, you can tether it to a signal splitter (another 20 bucks plus shipping from vexrobotics) and get 6 pwm outputs from two joysticks and four buttons...I think that's how it works...

Last edited by MrForbes : 03-03-2009 at 14:54.
Reply With Quote
  #5   Spotlight this post!  
Unread 03-03-2009, 15:01
ChuckDickerson's Avatar
ChuckDickerson ChuckDickerson is offline
Mentor / Bayou & CMP Division LRI
FRC #0456 (Siege Robotics)
Team Role: Mentor
 
Join Date: May 2004
Rookie Year: 2004
Location: Vicksburg, MS
Posts: 877
ChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond reputeChuckDickerson has a reputation beyond repute
Re: non-'FRC legal' control systems?

Keep in mind that the PWM signal used by our speed controllers (Victors/Jaguars) is taken from the R/C world for controlling servos. Sounds like what you want is an R/C "Servo Tester".

You can buy them premade reasonably cheap: http://www3.towerhobbies.com/cgi-bin/wti0001p?&I=LXVK79 or you can make your own.

Just Google "Servo Tester" and you will find tons of links to circuits, plans, kits, and pre made units.

Another option would be to look somewhere like www.Parallax.com. They sell various borads and microcontrollers that are designed to drive servos (PWM signals) that you might find useful. A Board of Education and a Basic Stamp might be just what you are looking for or maybe a serial or USB servo controller might could be used to control your motors via a laptop?

Check places like Trossen Robotics and any of the other robotics related suppliers. They all have neat stuff that will generate the PWM signals you require.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-03-2009, 16:02
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,345
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: non-'FRC legal' control systems?

Quote:
Originally Posted by Otaku View Post
My senior project involves motors and I'm already somewhat familiar with robot control systems, but if I can't get permission to use an old IFI FRC control system for my project, I'll need to figure out how to take the values from the two pots in a joystick and turn them into PWM signals. And as cheaply as possible.

Essentially, I need to build a system that will be light, cheap, effective and robust for use in a wheelchair I am designing and building that is based off of some of 675's previous chassis designs.
Simply put: "Arduino"

$35 and you are good to go. All you need to do then is learn a little coding for the FREE Development environment. That's right, FREE!!

The code to convert analog to PWM is EASY!!
10 bit A/D gives values from 0 -1024.

Set the dig out high, wait 1 millisecond + wait a number of microseconds equal to the digital value read from the pot, set the dig out low. Repeat every 20 milliseconds.

This is just a rough outline and may require a little tweaking, but it works. I know, I already did it.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #7   Spotlight this post!  
Unread 03-03-2009, 16:30
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,077
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: non-'FRC legal' control systems?

Can't you just use a Vex controller?

I also have an Arduino and some Zigbee modules, although my course load has prevented me from doing anything really serious with them yet.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Reply With Quote
  #8   Spotlight this post!  
Unread 03-03-2009, 21:52
karlcswanson's Avatar
karlcswanson karlcswanson is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Arlington Hts.
Posts: 63
karlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nice
Re: non-'FRC legal' control systems?

I think the cheapest way this could be done would be using a 555 timer, I found some instructions here. However, using the arduino would give you more options that may come in handy when you want to do more than control the motors directly from the potentiometers.
__________________
Reply With Quote
  #9   Spotlight this post!  
Unread 05-03-2009, 12:59
Otaku's Avatar
Otaku Otaku is offline
Where'd my wrench go?
AKA: Michael Baker
FRC #0675 (Tech High Phantom Robotics)
Team Role: College Student
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Underneath my car
Posts: 509
Otaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond repute
Send a message via AIM to Otaku Send a message via MSN to Otaku
Re: non-'FRC legal' control systems?

Quote:
Originally Posted by billbo911 View Post
Simply put: "Arduino"

$35 and you are good to go. All you need to do then is learn a little coding for the FREE Development environment. That's right, FREE!!

The code to convert analog to PWM is EASY!!
10 bit A/D gives values from 0 -1024.

Set the dig out high, wait 1 millisecond + wait a number of microseconds equal to the digital value read from the pot, set the dig out low. Repeat every 20 milliseconds.

This is just a rough outline and may require a little tweaking, but it works. I know, I already did it.
I was thinking Arduino because when I'm done with my senior project, I can cannibalize it and use the Arduino for come other really cool stuff.

What shield or module would I use to be able to utilize two PWM outputs?

Actually, I have a friend who's done work with pwm output and an arduino (he made a two wheeled 'bot' that auto-balanced... think segway except smaller). I could probably ask him.
__________________

"The [Otaku] is a simple creature." "Indeed. I cease to function when removed from a mill."
Reply With Quote
  #10   Spotlight this post!  
Unread 05-03-2009, 14:20
karlcswanson's Avatar
karlcswanson karlcswanson is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Arlington Hts.
Posts: 63
karlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nice
Re: non-'FRC legal' control systems?

Quote:
Originally Posted by Otaku View Post
What shield or module would I use to be able to utilize two PWM outputs?.
Any arduino with the mega168 chip has hardware support for six pwm signals. The older models with a mega8 will have hardware support for three pwm signals. All 5v arduino's should meet your needs as far as I know. A shield will not be necessary unless you would like to bring the pwm outputs to a convenient 3 pin header to plug a pwm cable into.
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 05-03-2009, 14:39
Otaku's Avatar
Otaku Otaku is offline
Where'd my wrench go?
AKA: Michael Baker
FRC #0675 (Tech High Phantom Robotics)
Team Role: College Student
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Underneath my car
Posts: 509
Otaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond repute
Send a message via AIM to Otaku Send a message via MSN to Otaku
Re: non-'FRC legal' control systems?

Quote:
Originally Posted by karlcswanson View Post
Any arduino with the mega168 chip has hardware support for six pwm signals. The older models with a mega8 will have hardware support for three pwm signals. All 5v arduino's should meet your needs as far as I know. A shield will not be necessary unless you would like to bring the pwm outputs to a convenient 3 pin header to plug a pwm cable into.
Seeing as how I'm a complete knob when it comes to electronics, yes, I would like a convenient three pin header for a PWM cable. I'll probably be feeding two PWM outputs to two Victor 884s, so.

How hard is it to program the Arduino for this? Taking the joystick input, telling the Arduino what to do with it, then outputting it to PWM? If it's too difficult (keep in mind, I'm seriously not that good with electronics. I can assemble circuits but I couldn't tell you what they do, and basic HTML is probably the extent of my coding knowledge), I could just get the Vex Controller and also a Vex signal splitter. No programming required. A bit more expensive (well, close to three times as much actually).

If the Arduino is pretty simple to assemble and program for such a simple application, though, I'd rather use that.

so, CD, does the simplicity of the Vex system outweigh the cost of the Arduino? Especially for somebody as ham-fisted as me?
__________________

"The [Otaku] is a simple creature." "Indeed. I cease to function when removed from a mill."
Reply With Quote
  #12   Spotlight this post!  
Unread 05-03-2009, 15:08
Ian Curtis Ian Curtis is offline
Best Available Data
FRC #1778 (Chill Out!)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Puget Sound
Posts: 2,520
Ian Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond repute
Re: non-'FRC legal' control systems?

I haven't worked much with Arduino stuff, but I've got a punch of PIC stuff I play around with. I've got a basic understanding of C (still can't wrap my head around pointers) and I've gotten little robots driving around under the control of two 100K Ohm linear pots. Joystick would be the same thing, if you used a Gameport Joystick (not to mention, Goodwill/Salvation Army has them for like $2). So, it's very doable.
__________________
CHILL OUT! | Aero Stability & Control Engineer
Adam Savage's Obsessions (TED Talk) (Part 2)
It is much easier to call someone else a genius than admit to yourself that you are lazy. - Dave Gingery

Last edited by Ian Curtis : 05-03-2009 at 15:12.
Reply With Quote
  #13   Spotlight this post!  
Unread 05-03-2009, 15:17
karlcswanson's Avatar
karlcswanson karlcswanson is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Arlington Hts.
Posts: 63
karlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nice
Re: non-'FRC legal' control systems?

I think the arduino is easy enough for beginers, but its also expandable for more complex things. I took this example right from arduino's reference page. This example does exactly what i think your trying to do, read a pot and generate a pwm. I remember seeing a shield and an arduino clone that provided the standard 3 pin header like the ones found in the control system, but I don't know where to find them.
Code:
int ledPin = 9;      // LED connected to digital pin 9
int analogPin = 3;   // potentiometer connected to analog pin 3
int val = 0;         // variable to store the read value

void setup()
{
  pinMode(ledPin, OUTPUT);   // sets the pin as output
}

void loop()
{
  val = analogRead(analogPin);   // read the input pin
  analogWrite(ledPin, val / 4);  // analogRead values go from 0 to 1023, analogWrite values from 0 to 255
}
__________________
Reply With Quote
  #14   Spotlight this post!  
Unread 05-03-2009, 15:22
Otaku's Avatar
Otaku Otaku is offline
Where'd my wrench go?
AKA: Michael Baker
FRC #0675 (Tech High Phantom Robotics)
Team Role: College Student
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Underneath my car
Posts: 509
Otaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond repute
Send a message via AIM to Otaku Send a message via MSN to Otaku
Re: non-'FRC legal' control systems?

Quote:
Originally Posted by karlcswanson View Post
I think the arduino is easy enough for beginers, but its also expandable for more complex things. I took this example right from arduino's reference page. This example does exactly what i think your trying to do, read a pot and generate a pwm. I remember seeing a shield and an arduino clone that provided the standard 3 pin header like the ones found in the control system, but I don't know where to find them.
Code:
int ledPin = 9;      // LED connected to digital pin 9
int analogPin = 3;   // potentiometer connected to analog pin 3
int val = 0;         // variable to store the read value

void setup()
{
  pinMode(ledPin, OUTPUT);   // sets the pin as output
}

void loop()
{
  val = analogRead(analogPin);   // read the input pin
  analogWrite(ledPin, val / 4);  // analogRead values go from 0 to 1023, analogWrite values from 0 to 255
}
Motorshield v3 is what I was looking at.
__________________

"The [Otaku] is a simple creature." "Indeed. I cease to function when removed from a mill."
Reply With Quote
  #15   Spotlight this post!  
Unread 05-03-2009, 16:09
karlcswanson's Avatar
karlcswanson karlcswanson is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Arlington Hts.
Posts: 63
karlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nice
Re: non-'FRC legal' control systems?

The motor shield is for small DC motors, not for ones found in the wheelchair you mentioned in your original post. You will need a bigger speed controller to do that, like the victor or jaguar you also mentioned. The arduino by itself can generate the pwm signals to feed the speed controller of your choice. The roboduino is an arduino compatible board that already has headers for pwm cables. With a normal arduino board, this is basically how it would need to be plugged in. A fuse would be a nice addition.
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
diversified systems at FRC Kickoff-NH www.divsys.com General Forum 1 02-01-2008 19:34
Motor Control Systems Astronouth7303 Programming 3 05-04-2005 19:35
Control Systems dbeck103 General Forum 2 30-09-2003 12:49
Control Systems archiver 2000 1 23-06-2002 22:15
It's Raining Control Systems CaptainPlaid Technical Discussion 6 24-03-2002 15:32


All times are GMT -5. The time now is 00:11.

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