go away spammer

Author Topic: voice recogination robot given by admin  (Read 1841 times)

0 Members and 1 Guest are viewing this topic.

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
voice recogination robot given by admin
« on: February 13, 2012, 03:51:47 AM »
i am making vr robot posted on instructable (http://www.instructables.com/id/Voice-Control-Robot-in-7-Minutes/?ALLSTEPS) where admin has given his full commented source code ..so when i open the apps. file three more files open with it the vr_libary file,hardware file and vr_axon_demo file.....i am using arduino so i was thing of coping file from the avr studio and pasting it in arduino ide so ....which file should i copy and will this idea work?
« Last Edit: February 13, 2012, 03:53:14 AM by kunaldgr8 »

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: voice recogination robot given by admin
« Reply #1 on: February 13, 2012, 07:44:13 AM »
I'd be surprised if it did work. Two different processors, different board layouts, Arduino doesn't let you have a main(), etc.

You'd have to port the code to Arduino most likely.

Joe

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: voice recogination robot given by admin
« Reply #2 on: February 13, 2012, 08:00:26 AM »
what should i do  :o :o :o :o

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: voice recogination robot given by admin
« Reply #3 on: February 13, 2012, 11:10:41 AM »
Are you asking how to port the code? How familiar are you with C and Arduino programming?

Joe

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: voice recogination robot given by admin
« Reply #4 on: February 15, 2012, 10:35:52 AM »
You will have to rewrite your Arduino code from scratch, using the Arduino library code set.

But it's not that hard as you have my working example code to go by. Try to understand my software, staring at it for half an hour or so until it makes sense :P


hint: you must use a software UART for the Arduino for it to work

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: voice recogination robot given by admin
« Reply #5 on: February 15, 2012, 11:14:53 AM »
i didnt get the hint what do you mean by
hint: you must use a software UART for the Arduino for it to work

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: voice recogination robot given by admin
« Reply #6 on: February 15, 2012, 11:41:32 AM »
i didnt get the hint what do you mean by
hint: you must use a software UART for the Arduino for it to work

To communicate with the VRbot, you need a UART to transfer serial data.

The Axon has four hardware UARTs, with one attached to USB. Hardware UARTs are very fast, reliable, and don't tie up your processor.

The Arduino has only one hardware UART, and it's already attached to USB. So you must use whats called a 'software UART' - they are slow, not so reliable, and waste processor time. WebbotLib does a good job handling software UARTs, but nothing can beat a hardware UART.

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: voice recogination robot given by admin
« Reply #7 on: February 16, 2012, 03:45:19 AM »
you mean rx and tx

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: voice recogination robot given by admin
« Reply #8 on: February 16, 2012, 03:48:48 AM »
you mean rx and tx
Yeap, those are the two pins for the UART. :P

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: voice recogination robot given by admin
« Reply #9 on: February 16, 2012, 10:27:00 AM »
if i want to connect a serial lcd and as well as vrbot... but rxd port is only 1 what to do ...should i connect both in single port

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: voice recogination robot given by admin
« Reply #10 on: February 16, 2012, 10:30:35 AM »
if i want to connect a serial lcd and as well as vrbot... but rxd port is only 1 what to do ...should i connect both in single port
You need a different UART for every device that requires one. You can create as many software UARTs as you like, just remember they are extremely slow so if you have many it will take up all your processor time.

There is a reason the Arduino is cheaper than the Axon, ie it lacks a lot of features :P

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: voice recogination robot given by admin
« Reply #11 on: February 16, 2012, 11:04:55 AM »
ya now i realize that that axon is far better
but how to creat software uarts  :D

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: voice recogination robot given by admin
« Reply #12 on: February 16, 2012, 11:11:18 AM »
but how to creat software uarts  :D
If you use WebbotLib, it's just drag-n-drop with Project Designer.

If you use the Arduino library, you can find code examples online. Just search around - you aren't the first with this problem :P

 


Get Your Ad Here

data_list