Shop OBEX P1 Docs P2 Docs Learn Events
Emic2 & EasyVR — Parallax Forums

Emic2 & EasyVR

prodigyrickprodigyrick Posts: 23
edited 2015-03-03 16:00 in General Discussion
Has anyone figured out how to get these two to work together without locking up easyvr in the process?
I used one of the examples for easyvr, added a led to control on or off by voice, and added code for emic2 to repeat the valid words. After emic2 finishes speech, easyvr seems to be stale. Not sure whats doing this and I don't know enough about serialization to fixit. I tried playing around with what I learned off google in serialization but I had 0 success.

Ideas?

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2015-03-03 10:44
    You have to be careful when using an EasyVR with the Emic2. The EasyVR will hear what the Emic2 says and take it as a command. You need to disable the EasyVR whenever the Emic2 talks. I know there's a command to send to the EasyVR to disable it. I think you want to send the EasyVR the sleep command with a zero parameter so it will only wake when it receives another character from the microcontroller.

    Which microcontroller are you using?
  • prodigyrickprodigyrick Posts: 23
    edited 2015-03-03 10:51
    arduino uno
  • Duane DegnDuane Degn Posts: 10,588
    edited 2015-03-03 11:04
    arduino uno

    I haven't used these devices with an Arduino but I'm pretty sure in order to use both the Emic2 and the EasyVR, you need to use a software serial driver (UART) with one of them. You can use the the hardware UART with one device and a software UART with the other. I'm not sure if you'll have the option of using a third UART to send debug statements to a terminal window but I doubt this is an easy option to include.

    I'm heard of hardware serial multiplexers but I haven't used these myself.
  • kwinnkwinn Posts: 8,697
    edited 2015-03-03 12:13
    As long as the signals are logic levels (not +-12V rs232) you could use a cd4052 as a hardware multiplexer to switch the arduino Rx and Tx lines to one of four other chips provided you have 2 spare I/O lines to use as selects.
  • prodigyrickprodigyrick Posts: 23
    edited 2015-03-03 16:00
    I wish I knew how to decipher what you just said. What do I need and wheres an example of this solution. lol
Sign In or Register to comment.