Go to Post "If I had a nickel for every time our robot actually worked, I'd have one whole nickel. It was fail. Epic fail." - lol, a team at the NYC FTC tourny - Akash Rastogi [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 06-09-2010, 00:14
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 RC)

Not really needing help (yet!), but I figured I would share a cool project I am currently working on in college.

Well, my University doesn't participate in any FIRST robotics competitions, but the Industrial Education department participates in a relatively small robotics competition designed by ATMAE.

Anyway, the past years, the team didn't have an autonomous period of any sort. They've just been using a remote control vehicle controller to drive the robot for the past few years, and they have been really successful taking home the trophy.

Well, this year, they changed things. They have an autonomous. My Microprocessor instructor let me know about the competition since he knew I was big into robotics. I took up the job. I'm bringing a real robot controller to the team, the 2008 IFI Robot Controller from Team Fusion's dismantled robot.

The competition requires us to drive the robot from a far distance away, so we cannot drive with a line-of-sight. When we reach the center of the field, we have to switch to autonomous control to find a 8" pipe buried in the sand. My plan is to use two laptops and the IFI controller as the control system.

There will be a plain laptop at the driver station (like the classmate) with two USB joysticks attached. There will be a small netbook or nettop PC in the robot with a SSD drive installed due to the extreme vibrations that will be involved on our robot. The PC on the robot will tell the IFI RC what to do using the programming port.

So far, I have the basic communication from the base station to the robot working with a few small bugs that I plan on knocking out this weekend (basically just verification that the RC received the commands that were sent, and to resend the commands if incorrect)

One thing that I have not figured out yet is how to send live video from the robot PC to the base station PC. We’re planning on just getting a USB webcam to connect to LabVIEW with.

Right now, I can use the webcam with LabVIEW on the robot PC just fine. I can do video analysis and track round objects. It’s the part about getting it to the base station PC.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #2   Spotlight this post!  
Unread 06-09-2010, 01:37
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,950
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: Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 R

What are you using for communications...the IFI radios?
  #3   Spotlight this post!  
Unread 06-09-2010, 01:40
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 R

Have you considered turning a laptop into a LabVIEW Real-time Target to put on the robot?
__________________
-- Marshal Horn
  #4   Spotlight this post!  
Unread 06-09-2010, 02:11
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 R

To send video from the Robot PC to the Base Station, you need to flatten the image into a string. make sure it has JPEG compression and then send over your network. then receive. convert to image and display.

Fairly simple to do. message me on skype if you need further help

We had a miniITX motherboard on our 2010 robot doing image processing. Also redid all of the image transfer code from the robot to the DS and the dashboard to display it from scratch to get 30FPS video.


Quote:
Originally Posted by kamocat View Post
Have you considered turning a laptop into a LabVIEW Real-time Target to put on the robot?
That's easier said than done. lots of compatibility constraints for the realtime target.
__________________
-Borna Emami
Team 0x27
  #5   Spotlight this post!  
Unread 06-09-2010, 02:13
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 R

Quote:
Originally Posted by kamocat View Post
Have you considered turning a laptop into a LabVIEW Real-time Target to put on the robot?
no SATA hard drive support is a killer. And also in my case, the TCP IP stack had issues.
__________________
-Borna Emami
Team 0x27
  #6   Spotlight this post!  
Unread 06-09-2010, 03:10
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 R

Quote:
Originally Posted by squirrel
What are you using for communications...the IFI radios?
Most likely 802.11g using AdHoc between the two PCs.

Quote:
Originally Posted by kamocat
Have you considered turning a laptop into a LabVIEW Real-time Target to put on the robot?
No, but what I have right now is working great. The only lag in the system is between the two PC's, which is not even noticable on a closed network. It is, however, noticable from 1/2 a mile away in your dorm room while you're in a remote desktop connection to the base station.

Quote:
Originally Posted by BornaE
To send video from the Robot PC to the Base Station, you need to flatten the image into a string. make sure it has JPEG compression and then send over your network. then receive. convert to image and display.

Fairly simple to do. message me on skype if you need further help

We had a miniITX motherboard on our 2010 robot doing image processing. Also redid all of the image transfer code from the robot to the DS and the dashboard to display it from scratch to get 30FPS video.


Quote:
Originally Posted by kamocat
Have you considered turning a laptop into a LabVIEW Real-time Target to put on the robot?
That's easier said than done. lots of compatibility constraints for the realtime target.
That's what I was thinking. I was trying to flatten it to a string using the PNG format, but I got a string too long to send over the network. I'll give the JPEG a try.

I've also been looking at the MiniITX Motherboards on Newegg.com. The only problem with going that route is I have to get a 12V DC input power supply to make them work, plus the lack of display or any controls for that matter (mouse, keyboard) will make operating the robot PC very difficult to do if the remote desktop connection fails for some reason. I can get a netbook for fairly cheap, and I'm also juggling around the idea of using my old Dell E1505 on the robot and sticking my OCZ SSD drive that I have for my MacBook Pro in there for the competition. I would have to run a power inverter to make it work though.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #7   Spotlight this post!  
Unread 06-09-2010, 04:01
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 R

Got the video working very well. At 50FPS (which is above my built-in webcam's FPS anyway...), I'm using about 10% of my total bandwidth for my 54Mbps wireless G connection.

I think this is all very doable.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #8   Spotlight this post!  
Unread 06-09-2010, 09:46
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,357
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 R

If you want to try an atom based mini-itx, look at some of these power supplies.
http://www.logicsupply.com/categorie...lies/car_power
This may work for a netbook.
http://www.logicsupply.com/products/dcdc_usb
  #9   Spotlight this post!  
Unread 06-09-2010, 12:50
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Home-brewed Robot Control System (2 computer running LabVIEW, with the old 2008 R

Quote:
Originally Posted by RyanN View Post
I've also been looking at the MiniITX Motherboards on Newegg.com. The only problem with going that route is I have to get a 12V DC input power supply to make them work, plus the lack of display or any controls for that matter (mouse, keyboard) will make operating the robot PC very difficult to do if the remote desktop connection fails for some reason.
Does this meet your specs?

http://www.fit-pc.com/web/fit-pc2/fi...pecifications/
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
using CAN with the 2010 control system Us3rNam3 NI LabVIEW 12 01-02-2010 13:04
Do we have to ship the control system along with the robot on Tuesday? tennisbeast29 Rules/Strategy 3 14-02-2009 13:39
pic: '08 robot with '09 control system Alex Dinsmoor Extra Discussion 11 11-12-2008 20:01
Control Robot with Computer Sykan Programming 5 28-09-2008 01:13
Running Multiple Robots with the old Radios cbale2000 Technical Discussion 4 18-10-2007 19:40


All times are GMT -5. The time now is 10:37.

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