How to: Voice Controlled mBot


#1

Hi, I’m fairly new to programming the mBot to do things. I have a few questions.

  1. is it possible to upload a program to run when you press “D” for example on the IR remote, but keep the rest of the factory settings… So I don’t need to re-load the firmware to get it back after each time I try to run a custom built program?
  2. I’m trying to re-create the ‘Voice controlled mbot’ program that came on one of the cards. At the ‘if…’ command, I can’t figure out how to get the ‘loudness’ object from the sprites area into my blocks code area. Please help!

Thanks,
Jon


#2

@Jon-Uma

  1. Not possible, as far as I know :frowning:
  2. The code will work differently than you think. :slight_smile: Here is an example:
    In mBot, add the Upload Mode Broadcast extension:
    image

Make a simple code like this and upload it:
image

Now, in your Sprite, add the same extension (Upload Mode Broadcast), and make this code:
image

The mBot will now move whenever you make noise, although you should note that the mBot needs to be connected (via Bluetooth or cable) for this to work.


#3

The mBot software doesnt have speech recognition. So, if you code that, you could just scream.


#4

Are you saying that if you manage to code a speech recognizing mBot, you should scream in joy; or that you can’t code one, so just write a code so that the robot does things when you scream? :joy:


#5

Lol! You cant code it to recognise words, so yeah​:rofl::rofl: