go_away

Author Topic: Easy VR module Cable  (Read 1784 times)

0 Members and 1 Guest are viewing this topic.

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Easy VR module Cable
« on: May 09, 2012, 09:33:43 AM »
i bought EasyVR module and i forgot to buy usb cable to connect it to pc for
 programing it so i need to make one by my self the question is can i use my
 Axon to to pass the data from easyvr module to the pc through it's usb cable
 (axon cable) and is there a code for that ?

 i searched my stuff and found prolific usb to serial cable is there a way to
 connect the module with that cable i mean if i know the pinout for it i
could connect tx and rx pins to it and vcc and gnd or should i use another
 circuit + this cable

 i have read the pinout for the 9pin serial port but there is no 5 volt or
 3.3volt vcc so if this cable useful should i use ext. vcc and connect GND to
 GND pin of the 9pin port ?



Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 375
  • Helpful? 10
Re: Easy VR module Cable
« Reply #1 on: May 09, 2012, 10:03:28 AM »
From a quick web search, it seems that the Easy VR module is UART based.  So all you need to do is, assuming you're using webbotlib, learn to use UART from the webbot documentation.  Put the easyVR module on the Axon (choose UART 2 or something.  Remember that RX goes to TX and TX goes to RX, and GND is tied together. 

Then it's the Axon that is storing the data, and it can send to the PC whenever you want it to over UART...1? (I can't remember which UART the USB is on the Axon :-P )

So yes, it's totally possible.

MIKE
Current project: tactile sensing systems for multifingered robot hands

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,666
  • Helpful? 169
    • Society of Robots
Re: Easy VR module Cable
« Reply #2 on: May 09, 2012, 11:55:36 AM »
mstacho is right . . . the Prolific cable coverts RS-232 serial data to USB.

However, the VRbot uses TTL serial data, so you cannot use the Prolific cable.

I believe you have the Axon II, correct? The Axon II uses TTL.

I just wrote up a program for you. Connect your VRbot to UART0 of your Axon II, and USB to your PC. Whatever data goes into one end comes out the other. In other words, your Axon II is now a USB to TTL serial adapter. Run it at 9600 baud (default).

You can download it here. Just upload the .hex to your Axon II. I included the code so that you may change it if you wanted.
http://societyofrobots.com/axon2/downloads/USB_2_Serial_Adaptor_new.zip


ps - please don't double post :P

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: Easy VR module Cable
« Reply #3 on: May 09, 2012, 12:28:09 PM »
thanx admin and sorry for double post but i thought the other guy solved  the prob. using usb-serial cable in the other post so he could help any way thanx for help and
i am greedy to get more of your knowledge so may i ask another question is there lib for the EasyVR module to work with in the project designer? as i didn't find any in webbotlib v2

and if there is an example to use the module for text to speech or it just out some wav through it's output


thanx



Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: Easy VR module Cable
« Reply #5 on: May 10, 2012, 08:16:02 AM »
i did everything as u said connected the module to uart 0 Rx -->Tx and Tx-->Rx , vcc and gnd to regulated power bus and the battery then tried to connect to com2 that i use to communicate to my axon but vrbot gui said "couldn't detect device connected to port com2" also the marquee said "webbotlib error 11" i did loop back test to uart 0 with hyper terminal and  i receive a strange characters when i'm typing on the keyboard i think this means the axon forward the data as good as it should where is the prob. now in EasyVR module ?

or should i do modification in the software

port settings

baud rate:9600
data bits :8
parity :none
stop bits :1
follow control :none

this photo shows the wiring

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,666
  • Helpful? 169
    • Society of Robots
Re: Easy VR module Cable
« Reply #6 on: May 10, 2012, 09:36:18 AM »
You're wiring is correct.

Quote
i did loop back test to uart 0 with hyper terminal and  i receive a strange characters when i'm typing on the keyboard

Strange characters always means there is a baud rate mis-match.

I found two mistakes in my code . . . try this again:
http://www.societyofrobots.com/axon2/downloads/USB_2_Serial_Adaptor_new.zip


edit: fixed link . . . I posted the wrong one :-X
« Last Edit: May 10, 2012, 10:59:03 AM by Admin »

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: Easy VR module Cable
« Reply #7 on: May 10, 2012, 05:00:16 PM »
i don't know how to thank you it works now with the new hex now i can train the vrbot i hope that solve mr. tzankoff problem with the vrbot too


 


Get Your Ad Here

data_list