Go to Post Man, what's the point of teaser videos if nobody looks closely at them. - Knufire [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 01-10-2005, 21:24
CyberTroniX CyberTroniX is offline
Registered User
no team
 
Join Date: Jun 2005
Location: Egypt
Posts: 12
CyberTroniX is an unknown quantity at this point
Re: Adding Bluetooth to Vex

Quote:
Originally Posted by Joe Johnson
#5 You will have to modify the VEX default code to get messages from the serial port rather than from the Rx radios. Not too complicated I would guess because the VEX machines are supposed to be easily used in autonomous mode. This would look just like an automonomous mode only with information coming in from the serial port.

Good luck.

Joe J.

Why use the serial input although i can use Rx1 ??
Reply With Quote
  #2   Spotlight this post!  
Unread 01-10-2005, 21:56
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: Adding Bluetooth to Vex

Quote:
Originally Posted by CyberTroniX
Why use the serial input although i can use Rx1 ??
ok. i have been confused.

my controller is still sandwiched in the middle of my squarebot so i was unable to actually look at it and see the labels on anything. i was under the impression that you were referring to the i/o pins labelled rx and tx on the top side of the controller. connect your blue tooth module to them.

rx1 and rx2 on the back, (?), side of the controller are not serial ports. they are for connecting the vex radio receivers. they wouldn't know an rs232 protocol if it jumped up and bit them on the... well, you know. they expect six channels of pwm data which your bluetooth module will be unlikely to produce.

sorry for the confusion.

mea culpa.

Last edited by foobert : 01-10-2005 at 21:59.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-10-2005, 00:10
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: Adding Bluetooth to Vex

Quote:
Originally Posted by foobert
ok. i have been confused.

my controller is still sandwiched in the middle of my squarebot so i was unable to actually look at it and see the labels on anything. i was under the impression that you were referring to the i/o pins labelled rx and tx on the top side of the controller. connect your blue tooth module to them.

rx1 and rx2 on the back, (?), side of the controller are not serial ports. they are for connecting the vex radio receivers. they wouldn't know an rs232 protocol if it jumped up and bit them on the... well, you know. they expect six channels of pwm data which your bluetooth module will be unlikely to produce.

sorry for the confusion.

mea culpa.
I wouldn't say they aren't serial - they are somehow modulated as there are only 4 conductors there and you have 6 chans of PWM there, so something has to happen to squeeze that onto 4 pins. I would guess, however, that it isn't RS232 but rather some proprietary protocol. If you knew the protocol that was sent there you could use another PIC to convert RS232 to that protocol, but that would be pretty pointless and a lot more work, unless you didn't want to spend $100 on a Vex programming kit and already had a PIC programmer.

I think what foobert is referring to are the TX/RX TTL pins on the same header as the Analog In/Digital IO ports. Note that to do full RS232 you likely need a level converter as well, as I'm pretty sure they are only TTL level.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-10-2005, 22:19
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: Adding Bluetooth to Vex

Quote:
Originally Posted by BrianBSL
I wouldn't say they aren't serial - they are somehow modulated as there are only 4 conductors there and you have 6 chans of PWM there, so something has to happen to squeeze that onto 4 pins. I would guess, however, that it isn't RS232 but rather some proprietary protocol. If you knew the protocol that was sent there you could use another PIC to convert RS232 to that protocol, but that would be pretty pointless and a lot more work, unless you didn't want to spend $100 on a Vex programming kit and already had a PIC programmer.

I think what foobert is referring to are the TX/RX TTL pins on the same header as the Analog In/Digital IO ports. Note that to do full RS232 you likely need a level converter as well, as I'm pretty sure they are only TTL level.
ok, last things first. the bluetooth modules these guys are considering are ttl, so no level converter is required.

that was pretty easy, so on to the first thing. the inputs to rx1 and rx2 are ppm which is a sort of multiplexed pwm signal.

the way i understand it is this. for the six channels on the vex radio, you get seven short pulses. the time from the beginning of the first pulse to the beginning of the second pulse is the duty cycle for the 1st channel pwm, the time from the beginning of the second pulse to the beginning of the third pulse is the duty cycle for the 2nd channel pwm, etc.

so the data for the six channels take anywhere from 6 to 12 ms depending on the sum of their duty cycles. these are followed by the seventh pulse and a lengthy pause of say six to twelve ms before the next data frame is sent. the long pause allows the receiver to synchronize the data frames.

hope that makes sense.

Last edited by foobert : 02-10-2005 at 23:05.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-10-2005, 15:00
CJO's Avatar
CJO CJO is offline
Emeritus Pain in the $@#$@#$@#
AKA: Christopher J. O'Connell
None #1097 (Site 3 Engineering)
Team Role: Alumni
 
Join Date: Feb 2003
Location: Latrobe (over the rainbow), CA
Posts: 217
CJO will become famous soon enoughCJO will become famous soon enough
Re: Adding Bluetooth to Vex

The easiest way to do it would be to use the "programming" port on the vex as opposed to the radio port.
__________________
Team 1097 -- Site 3 Engineering
~~~~~~~~~~~~~~~~~~~~
2003 Sacramento Rookie All Star
2003 Silicon Valley Rookie All Star
2004 Sacramento Engineering Inspiration Award
2004 Sacramento Visualization Award
2004 Outstanding Volunteer Award (G. Glasser)
2004 Silicon Valley Sportsmanship Award
2004 National Visualization Runner Up
2004 Cal Games Finalist
2005 Sacramento Sportsmanship Award
2005 Sacramento #1 seed
2005 Sacramento Finalist

2005 Silicon Valley Sportsmanship Award
2005 Silicon Valley #1 Seed
2005 Silicon Valley Finalist

Reply With Quote
  #6   Spotlight this post!  
Unread 20-10-2005, 08:06
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Adding Bluetooth to Vex

Quote:
Originally Posted by CJO
The easiest way to do it would be to use the "programming" port on the vex as opposed to the radio port.
Does the programming port on the VEX use RS-232 voltage levels (<-5V = 1, >5V = 0) or TTL voltage levels (<1.4V = 1, >1.4V=0)?

Sorry for the silly question. I am out of the loop on VEX stuff.

If the Programming Port uses RS-232 voltages, then you could use an off the shelf Blue Tooth radio like this one.

Otherwise, I would use the TTL voltage level serial port and use one of the modules that is compatible with that voltage level.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Reply With Quote
  #7   Spotlight this post!  
Unread 20-10-2005, 10:56
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: Adding Bluetooth to Vex

Quote:
Originally Posted by Joe Johnson
Does the programming port on the VEX use RS-232 voltage levels (<-5V = 1, >5V = 0) or TTL voltage levels (<1.4V = 1, >1.4V=0)?
programming port is ttl. programming dongle, however, has level shifter in it and since you need one anyway to program the controller to listen to the serial port, there's no point in not using it with an rs-232 level radio if that's what you've got. otherwise a ttl level radio could be used on either the programming port or the rx and tx connectors up top.
Reply With Quote
  #8   Spotlight this post!  
Unread 20-10-2005, 11:25
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Adding Bluetooth to Vex

Quote:
Originally Posted by foobert
programming port is ttl. programming dongle, however, has level shifter in it and since you need one anyway to program the controller to listen to the serial port, there's no point in not using it with an rs-232 level radio if that's what you've got. otherwise a ttl level radio could be used on either the programming port or the rx and tx connectors up top.
This Radio, by AirCables, is an RS-232 radio that have used a lot and that I love. It has only 10M range, but it is beautiful in terms of its performance. I have not done it myself, but the engineer at AirCables tells me that if you crack the case it has the ttl signals easily available on pins. Highly recommended.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Reply With Quote
  #9   Spotlight this post!  
Unread 07-12-2005, 11:53
AJBelayer AJBelayer is offline
Registered User
no team
 
Join Date: Dec 2005
Location: Colorado
Posts: 3
AJBelayer is an unknown quantity at this point
Re: Adding Bluetooth to Vex

Ok I am new to the vex world but I have been in programing (C, C++, java, assembler, etc.) for a while now and I want to add bluetooth to my vex robot for control, I assume this is done easiest over the serial port connection and i have rad this entire thread. Has anyone successful done this? If so would you be willing to help me get figured out where to start and what radios work best? I would like to stay with the 100m range bluetooth.

AJBelayer
Reply With Quote
  #10   Spotlight this post!  
Unread 07-12-2005, 13:31
rswsmay's Avatar
rswsmay rswsmay is offline
Registered User
AKA: Robert
FRC #1177 (Mecha-Jags)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2002
Location: Lithonia
Posts: 60
rswsmay is a jewel in the roughrswsmay is a jewel in the roughrswsmay is a jewel in the roughrswsmay is a jewel in the rough
Re: Adding Bluetooth to Vex

I can't really speak to whether this is entirely "doable", however you should post this question on the vexlabs.com forums.
__________________
Knowledge is only strength.... Knowledge and Wisdom, thats true power.
Reply With Quote
  #11   Spotlight this post!  
Unread 07-12-2005, 14:47
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Adding Bluetooth to Vex

As I have said before, I am really happy with AirCables, and recommend that you try to use one of there products.

If you want 100m range, you are going to have to go with something with an antenna. The AirCables parts with antennas are listed as "coming soon" But, I would call or e-mail Juergen at AirCables. I think they are shipping some of these 100m products but have not updated their website.

The PC side is pretty straightfoward. The USB dongle from AirCables is only a Class 2 (10m) device but there are many, many, many "Class 1" (100m) Bluetooth USB Dongles available that you can use to make your connection to the robot. I have never used any of them so I can't help you with a specific recommendation. But, I have used many of the 10m devices and they basically all work okay. The only difference between them is whether they use the standard WindowsXP BT driver or whether they have written their own. I had pretty good success with a Linksys 10m dongle as well as the AirCable 10m dongel part for what it is worth. As to the programming, once the device is installed and the BT radios have been paired and connected, the BT driver provides transparent virtual COM port.

Hope this helps.

Joe J.

P.S. I take back many of the good things I said about the SMART Modular Bluetooth Serial Adapter above -- I can't speak for other applications, but for mine, they ended up being the source of subtle problems that were very hard to find but caused me fits for MONTHS. Your mileage may vary... JJ
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Reply With Quote
  #12   Spotlight this post!  
Unread 08-12-2005, 16:04
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Adding Bluetooth to Vex

I just came across this product from the guys at SparkFun.com

Shown here:

Anyway, the purpose of this thing is to provide an easy way to do level shifting between RS-232 <->TTL voltages.

If you want to use an RS-232 voltage level device with the TTL level pins of the Vex controller, this thing could come in handy.

FYI.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
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
how to build a VEX programming module bblack7489 FIRST Tech Challenge 78 09-06-2011 16:03
Useful VEX Tools Joe Johnson FIRST Tech Challenge 4 26-04-2005 18:48
Vex Robotics Vex FIRST Tech Challenge 0 14-04-2005 13:48
VEX Robotics vexrobotics FIRST Tech Challenge 8 30-03-2005 23:25
VEX Kits ARRIVED!!! Joe Johnson FIRST Tech Challenge 14 28-03-2005 19:28


All times are GMT -5. The time now is 09:53.

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