Go to Post And the only thing that can really measure that is when you look a kid in the eye, say "We've got a problem..." and you see them smiling, "Bring it on." - dtengineering [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 07-06-2005, 21:15
davefowler davefowler is offline
Registered User
no team
 
Join Date: May 2005
Location: Hastings
Posts: 6
davefowler is an unknown quantity at this point
Alternate Controller

Has anyone come up with another way to control the vex? I want to control it with my laptop instead of having to use the remote control. This way the vex can get into autonomous development. The people of vex should make some kind of usb connection to the microcontroller. If someone has an oscilloscope or a logic analyzer you could test the signal comming out of the back of the remote control. I wish I had a scope at home... Anyway, if someone does analyze the signals and makes up some kind of chart post it here, it'd be very helpful.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-06-2005, 23:14
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: Alternate Controller

i think it's pwm. 6, 1 for each channel, 1 to 2 ms pulses such that 1 ms is full reverse, 2ms is full forward and 1.5ms to stop. near as i can tell this is how cheaper rc controllers work.

not something your laptop will put out unless you want to try some low level stuff on the parallel port. might want to be running some sort of low latency OS on the laptop.

of course, you can order a programming kit and write a little something to get the vex controller to listen on its serial port for instructions from your laptop. nice plain ascii human readable instructions at that.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-06-2005, 23:57
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,513
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Alternate Controller

I can see how this is a different topic, but you might want to look into this thread for some insight on some folks' work on making the controller programmable (before RadioShack releases the programming module, that is).

If someone can figure out the signals coming out of the tether port on the Vex controller, I could imagine them being replicated...but for programming autonomous behavior, the things they're talking about in that thread is right up your alley.
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-06-2005, 11:39
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: Alternate Controller

The cable that goes between the reciever and the vex controller is 4 conductor, so it isn't PWM. (PWM would require atleast 7 conductors (6 signals and one refrence)). I haven't really looked into it enough to know what its actually doing.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-06-2005, 12:08
billbo911's Avatar
billbo911 billbo911 is online now
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,355
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: Alternate Controller

Quote:
Originally Posted by BrianBSL
The cable that goes between the reciever and the vex controller is 4 conductor, so it isn't PWM. (PWM would require atleast 7 conductors (6 signals and one refrence)). I haven't really looked into it enough to know what its actually doing.

True that it would require at least seven conductors to transfer 6 PWM signals, but that is only true if they are sent discretely. If they are sent via serial, it is quite possible that they could be sent over a four conductor cable.

After reading this thread last night, I decided to look into the default code for VEX. Now understand, I am NOT a programming guru (yet), but I can figure a few things out by examination. It does look as though the signals sent from the Radio Controller to the micro controller are in fact PWMs. There appears to be no signals being returned to the Radio like there are on the FRC OI for things like LED's and Hex display.

BTW, I just ordered the programming kit yesterday , it should be in this week, I hope, or early next week. I am also hoping the kit includes more info, like the other kits do. I'll post up what I received once it comes in.
Reply With Quote
  #6   Spotlight this post!  
Unread 08-06-2005, 19:43
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: Alternate Controller

i downloaded the default software posted at vexlabs this morning and scanned it over lunch and on the train home. it seems the master microcontroller posts pwm data to the user microcontroller every 18.5 ms. this is plenty of time for six one to two ms pulses. the fact that the variable names have the letters p, w and m only increases my confidence in my theory.

unfortunately the source code for the master controller is not posted so i can't claim absolute certitude.

anyone interested can download http://www.vexlabs.com/docs/VexStartupCode.zip

for now i'll be hiking to the vet for medicine for my hypertensive cat.

ta-ta
Reply With Quote
  #7   Spotlight this post!  
Unread 08-06-2005, 20:55
billbo911's Avatar
billbo911 billbo911 is online now
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,355
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: Alternate Controller

Quote:
Originally Posted by foobert
unfortunately the source code for the master controller is not posted so i can't claim absolute certitude.
I hope you are more versed in figuring out code than I am. If so, you may be able to look at the MASTER SOURCE CODE already and just not know it. If you are referring to the Master code *.bin file, then it is included with the default code. In fact, there is a v4 and v5 version. VEX_MASTER_V4.BIN and VEX_MASTER_V5. BIN are included when you unzip the file.

If I'm off base on this, sorry. As I said, I'm new to programming and still trying to reach Grasshopper level. Guru will take a while, 'till then, I deffer to those more knowledgeable.
Reply With Quote
  #8   Spotlight this post!  
Unread 09-06-2005, 16:14
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: Alternate Controller

Quote:
Originally Posted by billbo911
I hope you are more versed in figuring out code than I am. If so, you may be able to look at the MASTER SOURCE CODE already and just not know it. If you are referring to the Master code *.bin file, then it is included with the default code. In fact, there is a v4 and v5 version. VEX_MASTER_V4.BIN and VEX_MASTER_V5. BIN are included when you unzip the file.
Unfortunately the .bin files that IFI uses to upgrade the master processors are actually encrypted hex files, so you can't just disassemble the bin files. There are a couple of ways that you could get at the decrypted hex if you are determined to disassemble the master code, but will take some extra effort.

I think the best solution for finding a way to use another controller would be to analyze the data being sent across the tether cable, not to disassemble the master code. My guess is that the tether uses a serial protocol, but I haven't looked at it. I'll check it out when I get home today and let you know what I find out.
Reply With Quote
  #9   Spotlight this post!  
Unread 09-06-2005, 17:57
billbo911's Avatar
billbo911 billbo911 is online now
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,355
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: Alternate Controller

Quote:
Originally Posted by fowlerm
Unfortunately the .bin files that IFI uses to upgrade the master processors are actually encrypted hex files, so you can't just disassemble the bin files. There are a couple of ways that you could get at the decrypted hex if you are determined to disassemble the master code, but will take some extra effort.

I think the best solution for finding a way to use another controller would be to analyze the data being sent across the tether cable.......
What's really funny is, I realized shortly after posting my last reply that I was talking about a .bin file, as in BINARY. Hello Bill, you know this!! (Don't worry, I talk to myself like that occasionally, I never take it personally)

Your right, without the correct software tools, it is VERY DIFFICULT to decode them. I agree that the link between the remote and the micro controller is probably serial. That seems to make the most sense to me. I'll do a little more digging once I get the programming kit. UPS has it scheduled for delivery on the 14th.
Reply With Quote
  #10   Spotlight this post!  
Unread 13-06-2005, 12:04
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: Alternate Controller

i got tired of wondering and posted a query to the forum at vexlabs.com. the output of the r/c controller is indeed a pwm pulse train. abandon hope of controlling this with a pc. talk to the serial port instead.
Reply With Quote
  #11   Spotlight this post!  
Unread 13-06-2005, 13:48
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: Alternate Controller

I was looking at the transmitter over the weekend and found out the same thing. It may be possible to use a PIC or a basic stamp to take the serial output from a computer and use generate the appropriate PWM pulse for the desired analog value. The only thing that you would really need to find out is what the timing is for the different PWM outputs. The pinout for the tether port (for those of you that are interested) is from right to left if you are looking at the port on the transmitter is:

1 - Tether detect - used to enable/disable the radio transmitter
2 - Gnd
3 - PWM output
4 - +5v

Last edited by fowlerm : 13-06-2005 at 17:25. Reason: Reversed pins 2 and 3
Reply With Quote
  #12   Spotlight this post!  
Unread 28-06-2005, 08:12
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: Alternate Controller

No guarantees, but i'd guess this guy is describing what comes out of the r/c unit. He also describes a pic based circuit to generate the signal under the control of a pc. Unless you're dead set against programming the vex, though, i'd still say use the serial port.
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
Speed controllers won't communicate w/robot controller steven114 Control System 12 03-02-2005 21:26
Program error after controller reset randomperson Programming 6 04-01-2005 23:31
not quite sure...speed controller...spike. tophq Programming 8 26-03-2004 13:43
Help On Coding 2K1 Controller GregTheGreat Programming 9 05-12-2003 18:35
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 19-03-2003 13:30


All times are GMT -5. The time now is 18:45.

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