Society of Robots - Robot Forum

Software => Software => Topic started by: APJ1234 on January 15, 2015, 05:34:24 PM

Title: Need help for Voice recognition car
Post by: APJ1234 on January 15, 2015, 05:34:24 PM
Hey guys can somebody able to help me through my whole project?
Title: Re: Need help for Voice recognition car
Post by: mklrobo on February 08, 2015, 10:13:04 AM
 :) Hello!
I will give it a shot!  8)
I assume you will be building a RC vehicle, not a real one, correct?
In any case, I would start with a model; The vendors in the forum can offer
you a wide array of starting points. They have libraries of commands in which you
can program; voice commands, I have not gotten into yet. Where do you
plan to start?   :-\
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on February 12, 2015, 07:11:31 PM
First of all thank you so much to reply.
It is not really a rc car. It is a voice recognition car that is made by the admin. He also have everything step by step but when I try to do the build my codes it is giving me errors. We can start the project tomorrow. The only thing is I am in high school so I am little bit tight in schedule so it can take me one or two hours to reply.
Title: Re: Need help for Voice recognition car
Post by: mklrobo on February 13, 2015, 07:28:06 AM
 :) Hello!
I unsderstand your time constraint. I would like to ask a question, where permissible.
You are in high school, building a real voice recognition vehicle, that is made by Admin,
correct? Is Admin in High school, too? Is Admin involved with the project?   ???
Just curious,  :) , caution hovers over my mind.   ???
Anyway, back to the problem.
A few questions, to start...
What kind of vehicle is it; will need to know where to jack into the car for control.
What kind of programming did you have in mind? The more complex the movements,
the more memory of the microcontroller will be needed. Consider, voice recognition,
camera recognition, sensors(speed, objects around, etc), output control, and
wireless data transmission.
If this is part of your goal, you will need a Raspberry Pi, or Beagle bone black for speed
and software processing. Use  smaller microcontrollers for interface speed, to not
slow down the Pi or Bone for higher programming processes.
Keep me Posted.........   :) :) :) 
Title: Re: Need help for Voice recognition car
Post by: mklrobo on February 13, 2015, 02:44:07 PM
 :)Hello!
If you use a real vehicle, or go - cart, etc, I would recommend
interlocks that offer a saftey failsafe. 
Consider GPS, too, to help out on navigation. You could use a robot
model to start out with the programming. Keep me posted....   :)
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on February 26, 2015, 08:46:10 AM
I am making the same voice recognition car as Admin did.
But I am using a small toy tank for my voice recognition project.
Title: Re: Need help for Voice recognition car
Post by: mklrobo on February 26, 2015, 09:08:14 AM
 8) Cool!  8)
Truly, I was hoping you were going to make a controller that
was like the AI in the TV series, Knight Rider. (I want one too!  ;D )
I think some of the vendors in the forum offer some voice recognition
software for their kits/microcontrollers.
I had the chance to play with some old-timey voice controllers, which
identified the word, and activated a single output to give a signal
for that uniquie command. This, in turn, would ensure the action that
the robot would perform, however primitive it might be.
Were you looking for a kit, or something of that like?
Keep me posted.....  ;D ;D ;D
Title: Re: Need help for Voice recognition car
Post by: mklrobo on February 26, 2015, 12:52:02 PM
 :) Hello!
If you could provide links to a video of the RC, or
other links that have information that you think is
important, That might give me more information to
help.   ;D ;D
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 02, 2015, 03:33:07 PM
I followed admin of this website's voice recognition car steps. He has it on his website that how to build the voice recognition car. I followed every single step and did exact the same thing he showed on his website. But still I cannot complete my programming because I am a high schooler and I just wanted to complete my project for Science Fair. This is the website by admin:
http://www.societyofrobots.com/axon2/axon2_setup1.shtml (http://www.societyofrobots.com/axon2/axon2_setup1.shtml)
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 02, 2015, 06:51:09 PM
 8) Cool!   8)
I needed an excuse to buy the Avon II anyway, so I might as well
go ahead and buy one.( ;D to help you  ;D) I need a voice controlled robot for my
communications center anyway, and I am wondering how many commands
are avaliable.(?) If I had to guess, the audio is processed through the ADC pins,
with delta-sigma processing, to match the audio command signatures. Everything
else should be straightforward. This is where I imagine you are having the problems.
Since this is involved, I will have to acquire the MCU first, then test out the theory.
Keep me posted if you have anymore info to offer.....   ;D ;D ;D
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 02, 2015, 09:07:18 PM
I really appreciate your help towards my project.
I just wanted to ask you a question.
Are you going over the same steps as the admin showed on the website?
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 03, 2015, 07:27:25 AM
 :) Hello!
your question;
Are you going over the same steps as the admin showed on the website?
Yes, I will go throught every step that was advised on the website. If I run into any problems,
and create a solution, I will post it. It will take some time, depending on the steps needed,
and any unexpected items that I may need. I will give it a shot!  ;D ;D ;D
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 03, 2015, 11:17:37 AM
 :) Hello!
I did not see the voice controlled tank in the tutorials, but I am still
looking. I looked over the software, an ohh boy! It seems to be involved.
The bootloader is the most daunting, if needed.
What is the name of the tutorial/section of the voice controlled Tank?
I could start looking at that, if you could provide me the title, info, etc.
Keep me posted... :) :)
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 03, 2015, 02:39:21 PM
There is no video on voice recognition tank.
Admin didn't created the voice recognition tank.
I choose the tank instead of the two big wheels.
So you would not be able to find the video on voice recognition tank because it is basically my idea.
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 03, 2015, 04:02:29 PM
 :) Hello!
Ok, so there is a voice recognition program for the Avon that controls
a robot with two wheels, correct? ???
If not, is there any voice recognition program that goes with the
Avon II? I did see the camera recognition tutorials.  ;)
Either way,  I am sure somebody has some program similar enough
to be used with the Avon II in that fashion.  8)
I will look throught the tutorials again.   :-[
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 06, 2015, 03:34:18 PM
 :) Hello!
Ok, this voice recognition project is going to be involved,
unless someone out-in-forum-land already has solved the
problem. I had started on this project sometime ago. My
old-timey method is to use Dragon Dictate to initiate the
voice file to a dedicated text file, which, in turn, is read by
a C++ program, parsed, processed, then the defined command
is run. Complex, to be sure. If you could help me find a Dragon
Dictate
program, or clone of it, that goes on a Raspberry PI or
Beaglebone black
, that would cut down the problem considerable.
Somebody in those communites might have already solved the
problem; I have not seen a program when I scanned those sites.
(but that does not mean they are not there! :o )
This is going to be a long term process, unless somebody else has
the information already. HELP! :'(
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 07, 2015, 02:50:42 PM
But if you check the admin's website of voice recognition it doesn't mention any thing of Dragon Dictate.
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 08, 2015, 10:54:17 AM
 :) Hello!
Apj1234's statement;
But if you check the admin's website of voice recognition it doesn't mention any thing of Dragon Dictate. Correct!   ;D :'(
The direction of this, was my personal adventure to actually have a conversation, learn, and command a
robot; pretty much like Chappie. Small microcontrollers like the Parallax propeller, Avon series, or
AtmegaXXX series, could in no way present the power that I was looking for.
This voice recongition direction is my invention, not standard on any site that I have seen.
I have been all over the threads, and have found scattered help on contructing the Avon and other
MCUs, which is time consuming, and anyone wanting the information that I had found, had a
problematic time finding the info buried in the thread. Finding hobbiests that actually use the
Avon is hard to do, and finding someone to help advise in contruction and application is non-existant.
That is why, this weekend I will probably start  a thread in the Misc that covers  programming, contruction,
downloads, upgrades, and application on the Avon II, as I have just bought my own.
I will cover this topic of voice control in that thread, so that anyone can access that thread without
excavating the info in this forum. Wish me luck!   ;D ;D ;D
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 08, 2015, 04:14:04 PM
All the Best and I really appreciate your help. :) :)
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 09, 2015, 12:31:57 PM
 ;D To present a code "snippet" of just the
tank control your were looking for is this;
******************
//Example of using Axon with serial motor driver and wireless control

//#define USB_controlled
#define BLUETOOTH_controlled

//allows for printing with features, but uses more memory
#define RPRINTF_FLOAT
#define RPRINTF_COMPLEX

//additional math capabilities
//#include <math.h>

//WebbotLib includes
#include "sys/axon2.h"   //defines your MCU (change to axon.h if you use the original Axon)
//#include "servos.h"      //use for software servo PWM
//#include "a2d.h"      //use for ADC
#include "rprintf.h"   //use for UART

//user includes
#include "hardware.h"


// In my initialising code - pass the list of servos to control
void appInitHardware(void)
   {
   //initialize UART ports (see hardware.h to change baud/names)
   uartInit(GPS_UART, GPS_BAUD);         //UART0
   uartInit(USB_UART, USB_BAUD);         //USB
   uartInit(WIRELESS_UART, WIRELESS_BAUD);   //UART2
   uartInit(OTHER_UART, OTHER_BAUD);      //UART3

   // declare USB for output
   #ifdef USB_controlled
      rprintfInit(USB_ACTIVATE);
   #endif
   #ifdef BLUETOOTH_controlled
      rprintfInit(WIRELESS_ACTIVATE);
   #endif

   //Initialise motor controller
   sabertoothInit(&driver);

   led_off();//clear display
   }

TICK_COUNT appInitSoftware(TICK_COUNT loopStart){
   rprintf("\nAxon Initiated.\n\n");
return 0;
}

int tempbyte;

//vehicle speed
DRIVE_SPEED speed=30;
//note: left and right need to be high - high friction turning on carpets
DRIVE_SPEED turn=80;

//define directions
void go_left(void)
   {
   act_setSpeed(&left,-turn);
   act_setSpeed(&right,turn);
   led_off();
   segled_on(&led_display, SEGMENT_F);
   segled_on(&led_display, SEGMENT_E);
   }
void go_right(void)
   {
   act_setSpeed(&left,turn);
   act_setSpeed(&right,-turn);
   led_off();
   segled_on(&led_display, SEGMENT_B);
   segled_on(&led_display, SEGMENT_C);
   }
void go_straight(void)
   {
   act_setSpeed(&left,speed);
   act_setSpeed(&right,speed);
   led_off();
   segled_on(&led_display, SEGMENT_A);
   }
void go_reverse(void)
   {
   act_setSpeed(&left,-speed);
   act_setSpeed(&right,-speed);
   led_off();
   segled_on(&led_display, SEGMENT_D);
   }
void stop_stupid_robot(void)
   {
   act_setSpeed(&left,0);
   act_setSpeed(&right,0);
   led_off();
   segled_on(&led_display, SEGMENT_G);
   }


// This is the main loop
TICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart)
   {
   #ifdef USB_controlled
      tempbyte=USB_GET;//get a single character
   #endif
   #ifdef BLUETOOTH_controlled
      tempbyte=WIRELESS_GET;
   #endif
   
   //control direction
   if (tempbyte=='a')
      go_left();
   else if (tempbyte=='d')
      go_right();
   else if (tempbyte=='w')
      go_straight();
   else if (tempbyte=='x')
      go_reverse();
   else if (tempbyte=='s')
      stop_stupid_robot();

   //control speed by < and >
   if (tempbyte==',')
      {
      speed-=10;
      if (speed < 0)
         speed=0;
      rprintf("\nspeed=%d ",speed);
      }
   if (tempbyte=='.')
      {
      speed+=10;
      if (speed > 100)
         speed=100;
      rprintf("\nspeed=%d ",speed);
      }

   return 2000; // wait for 2ms
   }
********************
 ;) This is just part of the code that has to be used, and if there is a problem, THEN has to be
debugged, by you.
The Avon seems to have headers that must be included to be able to be used in the total program.
Thank God it is written in C language.  ;D
Going to be a long ride!   :P
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 09, 2015, 03:19:35 PM
I am really sorry, but I have no idea what to do with this code?
If you can help me through that would be great.
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 09, 2015, 04:37:52 PM
 ;D Hello!
Do not worry; I will work through the project, programming, code, and construction in the other thread.
This was one sample of what I found, that makes the bluetooth(wireless) work with the project that you
saw that Admin make. It may be simple to Admin, but it will be a long process for me to reconstruct from
scratch. :'(  I will have to do some serious digging, to get to the goal. ;D
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 09, 2015, 07:27:00 PM
Oh Now I get it. Alright then All the Best........
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 24, 2015, 05:42:42 PM
Hey man....
How's the project going on??????????
Just so curious to know any progress in project!!!!!!!!
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 24, 2015, 05:55:29 PM
 ;D Hello!
I am addressing your request in my post in the miscellanous,
Analyzing the Axon: Coding, Construction, and Contraptions.
I will have to approach it in steps, unravel the code commands,
get the Axon Mote to work, and then communicate the commands
via central computer; Maybe through Perl; but undecided. The
tutorials are helpful, but the devil is in the details. I have not found
much information about anyone using this MCU published in a book.
Most information is geared to regular PICs. The Axon was made to be used
by a basic hobbyist, and so, I will give it a shot. :P
I still want to use Dragon Dictate for the central computer, and probably for
a Raspberry Pi or beaglebone if possible. Going to be fun!  ;D ;D
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 24, 2015, 06:03:19 PM
  :)
In addition, if you are a beginner, you will have to assemble the Axon from
scratch, anyway, like me. So, I might as well post my follow through with the
work on the Axon,
so you can do them too. You will need diagnostic "snippets"
of code to troubleshoot your way through the construction. No one has
approached this, (at least not in this forum), which makes the journey
 challenging. When I read the forum menus, it said that there would be
help to answer questions about the Axon. If you have had any questions
answered by the experts, please let me know; I have a lot of them!  :'(
Wish me luck!   ;D ;D ;D
Title: Re: Need help for Voice recognition car
Post by: mklrobo on March 24, 2015, 06:11:14 PM
I am really sorry, but I have no idea what to do with this code?
If you can help me through that would be great.
This is why I started the other thread. I will  cover the diagnostics and simple
code first, to be able to do something with the Axon. This project will challenge you,
too, because you will have to know what commands do when they are applied.
All this appears easy, when seen on a video, but alot of time when into debugging and
debunking alot of problems. Do not give up, it will be worth the journey!  ;D ;D ;D
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on March 25, 2015, 02:44:31 PM
I will never give up. And please don't forget to post the video so I can follow it through all the step.
Title: Re: Need help for Voice recognition car
Post by: mklrobo on April 01, 2015, 06:29:23 AM
 :o Found it!!!  :o
 The EasyVR voice control shield, by Ardunio, can take up to 32 voice commands, and
control your robot!I am trying to locat a vendor, as the internet says they are a
retired product. :'( :'( :'(
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on April 13, 2015, 01:18:12 PM
Any new updates?????
Title: Re: Need help for Voice recognition car
Post by: mklrobo on April 13, 2015, 01:24:05 PM
 ;D Hello!
I am trying to put together a system, but have a BIG problem with programming the
Axon, at this time. If I can not program the MCU, I have to  use another MCU to
get the projects done, and that would be terrible. :'( You can see my progress,
so far, in the miscellanous section, Analyzing the Axon: Coding, Construction, and Contraptions.
 8) 8)
Title: Re: Need help for Voice recognition car
Post by: mklrobo on May 01, 2015, 09:45:00 AM
 ;D Hello!
Still working on the program. Have located more info on the speech control. Just have to
be able to download a program to the Axon.  :-\
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on May 02, 2015, 07:22:03 PM
Okay so you are very close to the goal.
Title: Re: Need help for Voice recognition car
Post by: mklrobo on May 03, 2015, 03:21:56 PM
 ;)
I will try going the cheapest route first. A single board voice control by Ardunio may do the trick.
This will suffice for simple control of motors, as you have indicated. I think Wow-wee toys sell
a toy called Robosapien that may have voice control already. (I would rather program one.  ;D )
For the more advanced voice commands, will be quite a programming job. You will have to buy
the software I am using, if you go that direction. I will cover the basic programming first in the Axon,
for testing and base coding purposes.(So you know your Axon is working, or if you blew a port.  :'( )
This builds the basic code "toolbox" to build upon. You will always need to check out other ports
and features. The Axon you are using is not only good for a hobby, but you may find, a tool that you
can not do without.(Like the Sonic Screwdriver on Dr. Who.  ;D ;D ;D )
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on June 22, 2015, 06:43:48 PM
Hey man I just needed to know any other progress in the project.
Title: Re: Need help for Voice recognition car
Post by: mklrobo on June 23, 2015, 05:30:38 AM
 ;) Hello!
I am working on the making of the hex file, just to get the Axon programmed.  ??? Once I get that
straightened out, I can proceed to work on the voice control. The only other way around using the
Axon, is to use a beaglebone or Raspberry Pi to process the voice, the follow through with the appropriate
command. I would have to find a dragon dictate or similar program to do this. I am hung at the Hex file at the moment.   :'(
Title: Re: Need help for Voice recognition car
Post by: APJ1234 on September 23, 2015, 10:35:18 AM
Hi
I am sorry I didn't check on you for this long but I was working on this by my own and it didn't turn out well.
I just need to know did the voice control is working or is it still in progress?
Title: Re: Need help for Voice recognition car
Post by: mklrobo on September 23, 2015, 02:39:11 PM
 :'( no new updates, at this time. I am trying to program the Axon with AVR studio 6, and learning to
use the new Raspberry PI II. There MUST be an answer, somewhere!  :'(