Go to Post I don't care what Dean, Dave, Woodie, or whoever says at kickoff--if it isn't in the rules, it isn't in the rules. - EricH [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
  #16   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
  #17   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
  #18   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
  #19   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
  #20   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
  #21   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
  #22   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
  #23   Spotlight this post!  
Unread 09-12-2005, 11:44
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 so I am looking at this Bluetooth device for me they are a local company so I can pick up the device and not have to worry about any shipping time. As I understand it i connect the Tx and Rx to the Tx and RX on the vex controller but then where do I connect the pwr and ground? An independent power source or is there 3V-6V power on the vex. Also I still have to check with the manufacter to make sure this is putting out TTL signal and not RS232 correct?

P.S. the link for the site of the bluetooth chip is here http://www.sparkfun.com/shop/index.p...rds=Bluetooth&

Last edited by AJBelayer : 09-12-2005 at 11:48. Reason: forgot the link
Reply With Quote
  #24   Spotlight this post!  
Unread 09-12-2005, 15:26
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 AJBelayer
... As I understand it i connect the Tx and Rx to the Tx and RX on the vex controller but then where do I connect the pwr and ground? An independent power source or is there 3V-6V power on the vex. Also I still have to check with the manufacter to make sure this is putting out TTL signal and not RS232 correct?

As to the TTL question, this is from the datasheet

Quote:
Note: All pins are VDD tolerant. This means that the BlueSMiRF can interface to 5V logic, 3.3V logic, and even 6.82V logic. Onboard MOSFETs translate the onboard 3.3V to whatever voltage you power the unit to. If you power the unit with 5V, the unit will output 5V for a logic high, OV for a logic low, and can tolerate logic high levels into the input pins up to +5V.
As to the power question, I suppose you can steal power and ground from a PWM output. I have not put a meter to the power but I think it just passes power from the battery. Now that I think about it this may cause you problems.

The problem is that the Vex battery fully charged could be as high as 8V or so. From the datasheet, the input voltage would be okay (under 10V is the spec I see) but the problem is that :
  1. On data TO the radio: I am not sure that the Vex TTL logic level 1 output would be read as a 1 by the radio input (read above)
  2. On data FROM the radio: I am not 100% sure that the Vex TTL logic level input will like have 8V as an input
I would GUESS that it is okay, but I wouldn't want to bet my Vex controller on it.

I recommend buying a 7805 5V regulator and knocking the PWM power output down to 5V.

Good Luck.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Reply With Quote
  #25   Spotlight this post!  
Unread 09-12-2005, 22:47
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 AJBelayer
As I understand it i connect the Tx and Rx to the Tx and RX on the vex controller but then where do I connect the pwr and ground?
the rx and tx connections on the top of the vex controller each have 5v and ground available on the connector next to them. so connect rx-i on your bluetooth module to the pin next to the label on the rx connector, connect tx-0 on the bluetooth module to the pin next to the label on the tx connector, connect ground to the pin opposite the label on either rx or tx, and pwr to the middle pin on either rx or tx. when you get around to programming you'll be using usart2 rather than usart1 which is the programming port with the rj-12 connector on the back of the unit.
Reply With Quote
  #26   Spotlight this post!  
Unread 18-06-2006, 14:33
Vex13 Vex13 is offline
Registered User
no team
 
Join Date: Jun 2006
Location: wa
Posts: 1
Vex13 is an unknown quantity at this point
Re: Adding Bluetooth to Vex

I'm pretty new to all this and wanted to just confirm a couple points, if someone would be so kind... Thanks in advance for your time and help!

1) With the programming dongle, any rs232 bluetooth device should work fine since it has a level shifter built in. Is that a correct statement?

2) Is there power provided on pin 9. I.e. for the devices mentioned (the aircable card http://www.aircables.net/serial.html, and the smart bluetooth module http://zbausa.com/bluetooth_serial_port_adapter.asp)? If not, what would be the easiest way to provide power to these devices? Preferably it would come from the vex module, but an easy external source would be fine too.

3) If you already have the desired behavior occuring between the pc and micro via a thethered link, add a bluetooth link between the pc and programming dongle should be pretty much plug and play (add the module and pc dongle, set up the link, adn we're set). Right? Or am I being too naive here?

4) If the power isn't provided for the aircard cable that Joe is recommending (which would currently be my first choice), do you forsee any problems with the following device, which has an internal battery: http://www.lemosint.com/scripts/blue...gle_class2.asp

Thanks again for taking the time to help where you can. It is greatly appreciated!
Reply With Quote
  #27   Spotlight this post!  
Unread 18-06-2006, 23:53
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 Vex13
I'm pretty new to all this and wanted to just confirm a couple points, if someone would be so kind... Thanks in advance for your time and help!

1) With the programming dongle, any rs232 bluetooth device should work fine since it has a level shifter built in. Is that a correct statement?
there's also a microcontroller on the programming dongle. don't know that anyone has actually watched the traffic between ifiloader and the programmer or if anyone has tried looking at the debug info from the controller using hyperterminal. in short, dunno. but probably.


Quote:
2) Is there power provided on pin 9. I.e. for the devices mentioned (the aircable card http://www.aircables.net/serial.html, and the smart bluetooth module http://zbausa.com/bluetooth_serial_port_adapter.asp)? If not, what would be the easiest way to provide power to these devices? Preferably it would come from the vex module, but an easy external source would be fine too.
5v and ground are available at any of the io and interrupt ports. don't try to get power off the motor ports. that's 7.6v.
Reply With Quote
  #28   Spotlight this post!  
Unread 19-06-2006, 13:35
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Adding Bluetooth to Vex

Quote:
Originally Posted by mechanicalbrain
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.
Let me re-emphasize this. You'll probably have a lot less trouble if you just buy the 400MHz Gumstix with Bluetooth, which will run you about $169. Connect one of the serial ports on the Gumstix to the Vex, and write a couple of lines of code on the Gumstix to redirect I/O from the wired serial port to the Bluetooth UART. Then you have your Bluetooth Vex, and you have a nifty off-board co-processor should you ever need it.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
Reply With Quote
  #29   Spotlight this post!  
Unread 19-06-2006, 14:48
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
there's also a microcontroller on the programming dongle. don't know that anyone has actually watched the traffic between ifiloader and the programmer or if anyone has tried looking at the debug info from the controller using hyperterminal. in short, dunno. but probably.



5v and ground are available at any of the io and interrupt ports. don't try to get power off the motor ports. that's 7.6v.
The AirCables and the Smart Modular radios are pretty well voltage tolerant.
I have not looked up the Smart Modular, but I know for sure that the AirCables can take 7.6V with no trouble at all. They will accept 5V too so you have choices.

You can provide power via the DB-9 connector or by using a barrel connector (Radio Shack sells the right size), it makes no difference.

I don't have a VEX in front of me, but if you are planning on using TTL pins on the VEX as a serial port, the most straight forward way to interface would be to use a level shifter to change the voltages to & from TTL/RS-232 (many are available -- sparkfun.com sells a cheap one that I've used before with success). Another, braver method that you can try on the AirCables radio is to crack open the case and to find the pins that are TTL compatible. I have not done this, but I have it on good authority that it the pins are accessible and that this is easily done.

Good Luck.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Reply With Quote
  #30   Spotlight this post!  
Unread 19-06-2006, 14:57
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 Vex13

3) If you already have the desired behavior occuring between the pc and micro via a thethered link, add a bluetooth link between the pc and programming dongle should be pretty much plug and play (add the module and pc dongle, set up the link, adn we're set). Right? Or am I being too naive here?
I think that this means you are using an RS-232 port on the VEX side and on the PC side. So you are close to being able to just replace the cable with 2 AirCables or BrandX radios, but you are not completely sure of success.

It depends on if the PC/VEX link are using other RS-232 signals for timing etc. For example they could be using anotehr wire for flow control or timing. This may or may not work, depending on the signals you need the radios to duplicate and how critical the timing is.

Even if you are only using 3 wires (TX, RX & GND), you are still not home free. We have had cases were we can get a boot loader to work via a cable and had no success downloading code via a Bluetooth radio set. We think this is due to some critical timing issues but we are not 100% sure of the reason for failure. We do know that Bluetooth is pretty good at making sure that data sent on one end gets to the other side, but it is not so good at meeting critical timing issues.

Good Luck.

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 12:40.

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