Go to Post When I'm asked the question, "What is the most important computer language to learn to prepare me for a programming career?"; my answer is, "Your second one." - Greg McKaskle [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-06-2005, 21:08
Blacklight Blacklight is offline
Registered User
no team
 
Join Date: Jun 2005
Location: Egypt
Posts: 2
Blacklight is an unknown quantity at this point
Exclamation Adding Bluetooth to Vex

I'm working on a personal project....I'm an Telecomm. engineering student @ Egypt.

I got the kit,still building it, and had the idea of interfacing VEX byPC via bluetooth....

I'm totally new to the robotics scene...
I've gone through loads of Bluetooth modules and am not sure how to program them and connect them to the microcontroller?!

Any help would be much obliged, I'm a bit lost in this...

thanx
Reply With Quote
  #2   Spotlight this post!  
Unread 01-06-2005, 21:51
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 Blacklight
I'm working on a personal project....I'm an Telecomm. engineering student @ Egypt.

I got the kit,still building it, and had the idea of interfacing VEX byPC via bluetooth....

I'm totally new to the robotics scene...
I've gone through loads of Bluetooth modules and am not sure how to program them and connect them to the microcontroller?!

Any help would be much obliged, I'm a bit lost in this...

thanx
I believe this is possible.

#1 You will have to get the programmer for the VEX kit or build your own.

#2 I would get a bluetooth module that you could hook up to the outputs of the VEX -- I am not sure but I think THIS RADIO from Sparkfun.com may be something like what you'd want to use (look here for pricing) . I like this radio made by Smart Modular and sold by ZBAUSA.com, but it used RS-232 voltage levels which would require a MAX232 chip or some such to get the VEX board to communicate with it (another possible down side is that the Smart Modular radio is BTClass 2.0 -- 10m range -- while the Sparkfun one is BT Class 1 -- 100m range).

#3 You will have to get Bluetooth on your PC somehow either built in or from a UBS-Bluetooth Dongle -- very cheap -- or some other way. Once you have that set up the remote BT looks like a standard PC comm port. You will not have to manage the BT stack or any of that non-sense. It is pretty straightforward actually. Sparkfun.com has a "Bluetooth Primer" that shows how easy the BT bit is.

#4 I would get the code from Kevin Watson Kevin.org HERE
where he publishes his code to make a serial port out a standard I/O pin of the PIC chip. From what I have gathered there are some differences between the FRC and the VEX boards so you will have to port the code somewhat but they use the same micro so you should be able to muddle through pretty easily.

#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.

Finally, one more thing. This document and the related discussion may help you (thanks to dez250 for sharing the paper and starting the thread).

Good luck.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 01-06-2005 at 23:20.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-06-2005, 16:26
Blacklight Blacklight is offline
Registered User
no team
 
Join Date: Jun 2005
Location: Egypt
Posts: 2
Blacklight is an unknown quantity at this point
Re: Adding Bluetooth to Vex

Thank You So Much - Joe!!
The info supplied seem so useful already!
I can see I have alot to read, and alot to order too

Making the programming module would be a toughy though...
components are not easy to find here in Egypt, So I'm wondering what's the easiest way to make one ( easiest as in one would least components to look for)?
Reply With Quote
  #4   Spotlight this post!  
Unread 27-09-2005, 20:50
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

Is it possible to conenct the bluetooth module to Rx1 instead of the serial of the microcontroller ??
Reply With Quote
  #5   Spotlight this post!  
Unread 27-09-2005, 21:09
mechanicalbrain's Avatar
mechanicalbrain mechanicalbrain is offline
The red haired Dremel gnome!
FRC #0623 (Ohm robotics)
Team Role: Electrical
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Virginia
Posts: 1,221
mechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond repute
Send a message via AIM to mechanicalbrain Send a message via Yahoo to mechanicalbrain
Re: Adding Bluetooth to Vex

Im not that familliar with VEX but maybe a gumstix (www.gumstix.com). They have built in bluetooth and I know they work fine with the IFI controller.
__________________
"Oh my God! There's an axe in my head."
623's 2006 home page
random mechanicalbrain slogans

Reply With Quote
  #6   Spotlight this post!  
Unread 29-09-2005, 19:17
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

i sent a message to the manufacturers of the bluetooth module and they told me it can only be connected to any UART .

so i don't know if the Rx1 on Vex is UART or not ?
Reply With Quote
  #7   Spotlight this post!  
Unread 29-09-2005, 20:22
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
i sent a message to the manufacturers of the bluetooth module and they told me it can only be connected to any UART .

so i don't know if the Rx1 on Vex is UART or not ?
yes, rx1 and tx1 are connected to rg1 and rg2 on the user processor. these are the receive and transmit pins respectively of usart2.
Reply With Quote
  #8   Spotlight this post!  
Unread 30-09-2005, 16:41
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

thanks for the info
do u know the pinout of Rx1 ?
i am also trying to get the schematic of the circuit that has the micrcontroller on in , because i want to know how is the microcontroller is connected to Rx1 or Serial .
Anyone knows how these are connected ??
Reply With Quote
  #9   Spotlight this post!  
Unread 30-09-2005, 21:26
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
thanks for the info
do u know the pinout of Rx1 ?
i am also trying to get the schematic of the circuit that has the micrcontroller on in , because i want to know how is the microcontroller is connected to Rx1 or Serial .
Anyone knows how these are connected ??
i made a little chart. i was planning to add more info, but got sidetracked. the functions of the various pins on the 18f8520 can be determined from the datasheet. as i mentioned rx1 and tx1 are connected to rg1 and rg2 which are also known as rx2 and tx2. the transmit and receive lines on the serial port are connected to rx1 and tx1. very confusing, eh?

anyway, i got the information from the example code at vexlabs.
Reply With Quote
  #10   Spotlight this post!  
Unread 01-10-2005, 21:16
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

i'm a bit confused ..
if i can connect the bluetooth module ( which has 4 pins : TX , RX , PWR , GND ) to Rx1 , do i connect it to Rx1 which was used for the RF Module that came with the robot ? or do i connect it to RX & TX that are on the Analod/Digital section of the microcontroller ?

if it's the 1st option then i need to know the pinouts of the Rx1 input ,
if it's the 2nd option then i need to know where to connect the PWR & GND pins of the bluetooth module ?


Something else i'm thinking of doing it ... which is replacing the RF Module on the Remote Control Unit with a bluetooth module . Is it possible ??
Reply With Quote
  #11   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
  #12   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
  #13   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
  #14   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
  #15   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
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 18:22.

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