Go to Post We believe that the message of FIRST should be spreadable, just like butter - Karibou [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC 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 09-10-2012, 22:35
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Raspberry Pi as robot controller

I wonder how well this would work, the raspberry pi does have the processing power to do this, and the gpio could do the interfacing.

This is just an idea, up for discussion, What do you think?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-10-2012, 01:28
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Raspberry Pi as robot controller

Well when I get mine, I'm planning on having it talk to an arduino (which may or may not talk to another arduino) and do some localization/vision processing/dead reckoning/video feedback.

I don't think the foundation technically supports any RTOSs for the pi, and I'd be weary controlling a robot during the time when the cron jobs start running (or whatever)
Reply With Quote
  #3   Spotlight this post!  
Unread 10-10-2012, 10:44
flameout flameout is offline
AKA Ryan Van Why
FRC #0957 (SWARM)
Team Role: Alumni
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Oregon
Posts: 168
flameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to all
Re: Raspberry Pi as robot controller

Linux is perfectly capable as an RTOS. A system patched with RT_PREEMPT (which has ARM support) would have more than sufficient realtime for our purposes.

Just wanted to clear that up.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-10-2012, 14:48
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: Raspberry Pi as robot controller

Yea especcialy with the gpio pins it could have a lot of potential in the robotics community
Reply With Quote
  #5   Spotlight this post!  
Unread 11-10-2012, 02:03
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 409
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: Raspberry Pi as robot controller

The Pi itself is pretty lame as a robot controller. The GPIO pins are all 3.3V, and there isn't any analog IO. That's not to say you couldn't build a cool shield/cape/extension board that would give you a lot of robot control functionality, and people are working on it.

The idea of having my robot be a full-blown Linux box is pretty appealing. I think I'd take the new Vex ARM9 controller (which also runs Linux) over the Raspberry Pi when it comes to robot functionality, but it's hard to beat $35.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...

Last edited by StevenB : 11-10-2012 at 02:03. Reason: Moar links!
Reply With Quote
  #6   Spotlight this post!  
Unread 15-10-2012, 13:52
ToddF's Avatar
ToddF ToddF is offline
mechanical engineer
AKA: Todd Ferrante
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Apr 2011
Rookie Year: 2011
Location: Newport News, VA
Posts: 587
ToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond reputeToddF has a reputation beyond repute
Re: Raspberry Pi as robot controller

Lots of people in the Raspberry Pi forums are working on this. I bought three Pi's to play with, and am progressing a little at a time, adding functionality necessary to make a Pi a viable robot controller. (I'm a mechanical engineer, not a software guy.) I hate to advertize my future plans, because the web is full of people announcing big plans with no follow through. But, to date I have been successful in using the Raspberry Pi to control a Jaguar and a servo using a joystick as an input device. With no additional hardware, you can control up to 8 PWM channels. Adafruit sells a $15 accessory board from that lets you add 16 PWM channels at a pop. And it's only a matter of time before other inexpensive boards hit the market allowing for analog and digital I/O.

Video of joystick control here: http://www.youtube.com/watch?v=0ODQY2mDYR0
__________________
Todd F.
mentor, FIRST team 2363, Triple Helix
Photo gallery
video channel
Triple Helix mobile
Reply With Quote
  #7   Spotlight this post!  
Unread 15-10-2012, 14:16
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Raspberry Pi as robot controller



How are you generating the PWM signal to the Jag and servo? Is it one of the following, or something else?

- does the Pi have built-in hardware support for generating PWM signals on the GPIO pins so all you have to do is configure the period for each channel and then provide a pulse width for each channel?

or

- continuously poll a clock and turn GPIO on/off for each of the two PWM channels as appropriate based on the respective joystick inputs

or

- use a fixed-period interrupt with a counter and a state machine to turn GPIO on/off to turn the GPIO on/off

or

- use a fixed-period interrupt (at the desired period of the PWM) which turns the GPIO on and then enables a one-shot interrupt to turn the GPIO off

or something else?


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 21:17.

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