New Homepage Forums Special Shields Voice recognition

This topic contains 10 replies, has 2 voices, and was last updated by avatar alains 11 months ago. This post has been viewed 276 times

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #119194
    avataralains
    Participant

    This is my problem: I try to enter data using voice – see my code below – It works for the first data: strTemp but when entering the second data the returned voice value is the same as the first. I tried several delays but nothing worked.
    redo1:
    Terminal.println (“Say Enter Start Temperature:”);
    if(VoiceRecognition.isNewCommandReceived())voiceCommand = VoiceRecognition.getLastCommand();
    OneSheeld.delay(5000);
    Terminal.println (“command: “+ String(voiceCommand));//VERIFY
    if(atoi(voiceCommand)>0)strTemp = atoi(voiceCommand); else goto redo1;

    redo2:
    Terminal.println (“Say Enter Step Temperature:”);
    if(VoiceRecognition.isNewCommandReceived())voiceCommand = VoiceRecognition.getLastCommand();
    OneSheeld.delay(5000);
    Terminal.println (“command: “+ String(voiceCommand));//VERIFY
    if(atoi(voiceCommand)>0)stepTemp = atoi(voiceCommand); else goto redo2;

    #120302
    avatarAmr
    Keymaster

    Hi,

    I have checked out your code and have edited it so that you get the received voice command on the terminal screen (find the new code below). But let me tell you to avoid when you are coding (this based on your code):

    – don’t use goto label since it makes the code ununderstood.

    – always use the parenthesis so that your code is readable and logic is maintained.

    And here is the code, give it a try and let me know if you got it working 🙂

    Code:

    #120464
    avataralains
    Participant

    Hi Amr:
    That worked,thanks!
    I have another problem with the board: I can’t have it connected to the phone without typing lightly to the switch 5V/3V on your board. It seems a bad electrical connection,at first I thought that was in the switch but now I’m not sure,it can be on the bluetooth ? What should I do? Note that I returned a board to Amazon with a similar problem about one month ago…

    #120539
    avatarAmr
    Keymaster

    Hi Alains,

    Glad to know that you got it working!

    And I am sorry for the issue you face with the board. May you please try to plug the Arduino to the pc USB so that you ensure it takes the steady power it needs then have the switch on 5V and look at the Ble LED of the Bluetooth and let me know if it’s blinking or not.

    Then try to connect to the board from 2 different phones (from the 1Sheeld App of course) and let me know the results.

    #120647
    avataralains
    Participant

    OK I did the test: There is no LED on for BLE… I switched to an old Samsung 4 it still works the same: I have to tap the switc to initiate the program…
    Maybe it is from the UNO as I remember testing with a Mega and the LED were on. I will try the Mega tomorrow.

    #120936
    avataralains
    Participant

    I have the same problem with the Mega: No LED On for BT. I believe that there is a malfunction on bluetooth IC What should I do?

    #121942
    avatarAmr
    Keymaster

    Hi Alains,

    Sorry that you are facing this BLE issue with your board and we can offer you a replacement 1Sheeld if you have purchased it within the last 6 months.

    So, please send me your Amazon reset photo OR Amazon’s order screenshot to my email: “[email protected]” and I will follow up with you.

    #122923
    avataralains
    Participant

    Thanks Amer
    All done…

    #126642
    avataralains
    Participant

    Hi Amr:
    I have sent the information that you have requested about 3 weeks ago, and I did not have received the new 1S board. Can you verify as I need to finish a project with it.
    Thanks
    Alain

    #126760
    avatarAmr
    Keymaster

    Hi Alains,

    I have emailed you twice asking kindly for your phone number to complete the shipping but I got no response from you!

    So, please check your email to verify that and send me your phone number so that I can complete the shipping order for you.

    #126986
    avataralains
    Participant

    No trace of your mails.
    I just sent the information to your email:
    [email protected]
    Thanks

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.