HomePage/assetList/Buggy Program Tutorial: Cellphone App
Buggy Program Tutorial: Cellphone App
5540 0
Production process

Do Programming on the Cellphone App:

Welcome to the ideaLab, this is the tutorial about how to use "Program" on the Itty Bitty Buggy cellphone app.

On the Itty Bitty Buggy app, a graphical program function is made for users to control and have Buggy performs different commands.
It is designed to be "easy in use" and a learning tools for pre-program learning, and the Itty Bitty Buggy app can upload the code to the Buggy battery: "mCenter+" via Bluetooth.

Other than a long life rechargeable battery, mCenter+ is also the "brain" of Buggy. It can understand complicated programs and perform commands with the use of Buggy Body and different sensors.

Build Connection between Buggy and the Cellphone App

Before connecting Buggy to the cellphone app, make sure the cellphone blutooth and the Buggy battery is turned on.

Now, simply press the "Program" button on the top right corner, the app will go to the program inventory page.

If this is the first time using the "Program" function, please press the "+" window to create a new file and the screen will go to the Buggy app Programming.
Inventory page:

After the connection for "Program" is sucessfully made, Congratulation!, You now have accessed to control your Buggy using the App programming functions! Your cellphone screen should have the same picture as below.
If the waiting time is longer than a minute to access the "Program" page, please try the following steps:
  1. Turn off the Buggy and check the black cable is connected correctly to D2/D3 sensor hub.
  2. Remove the Itty Bitty Buggy app from home screen and reopen it.
  3. Turn on the Buggy battery.
  4. Make sure the cellphone blutooth is turned on.
  5. Conect the Buggy using "Play" mode.
  6. If step 5 is successed, try to use the "Program" function again.
  7. If the cellphone app still cannot connect to the Buggy, please contact our technical support team at support@microduinoinc.com

Example: Move Buggy around and have it to sing a song.

How can we control Buggy to do interesting things with the graphical code blocks? Follow the instruction below to have it running on the table and sing a song.

First, a Hat block is needed to drop down from Events. It is the start of every script, and they are shaped with a rounded top and a bump at the bottom. it is very important to drag this block down first for every program.
The "start" Hat block can be found in the "events".

For the next step, a C block (called "forever") will be simply added under "start". C blocks is also known as "Wrap blocks", these blocks loop the content within the C's or check if the condition is true.
The "forever" C block means it will repeat the contents inside forever, and it can be found in the "control".

The "start" Hat block and "forever" C block is usually a basic beginning to the program.
As we have the "start" and "forever" ready, we can start adding some Buggy code blocks to move it around!

Move Buggy forward for 3 seconds.

Inside the C block, let's add some Stack blocks to control the Buggy. Stack blocks are shaped with a notch at the top and a bump on the bottom. They can perform the main commands for the program. For example, the stack block below can control the moving direction, speed and duration time for the Buggy.
It can be found inside "motion".

Now, add this stack block inside "forever".

Then, simply press the "Play" button on the bottom right corner to run the program.

The Buggy should be running forward now, and there is a yellow frame wrapped around your program as well.
You can Press the "Pause" button at anytime to stop the Buggy.
Isn't it awesome to have the Buggy running around on your table?
However, you might wonder why Buggy doesn't stop after the 3 seconds duration time. Do you know the reason?
It is because the stack block is inside the "forever" loop!

From the description of "forever" C block, it will repeat the contents inside forever. After 3 seconds of running duration, the program will do the same thing again, and your Buggy will move for another 3 seconds!
Therefore, another Stack block is needed for this command. The "delay"stack block is from control.

This small block can temporarily stop the program for couple seconds.
Let's drag this below the "Buggy moving" Stack block to test it out!
Press the "Play" button again, the Buggy should move forward for 3 seconds, then stop for 5 seconds, and then repeat this content again.

Have Buggy to Sing a Song after Moving Forward.

To have Buggy sing a song, the "song" stack block can be added from "sound" selection, and there are two songs prepared in the app.
Now, simply remove the "delay" block by dragging it back to the left tool bar and add the "song" block under the "move forward" block.
Pree the "Play" button, the Buggy now should move forward 3 seconds and play the selected song afterward.

To know more about the use of different code blocks, a "question mark" is placed on the top right corner. Press the "question mark" to see descriptions to all the code blocks!

This is the end of the online mode tutorial. Thank you so much for reading!
Don't forget to sign up on our IdeaxCollege to become. The ideaLab will also upload more tutorials and interesting projects in the future. Microduino is also waiting for you to share your creative Buggy inventions on our IdeaLab!
For more example and other code blocks description, please refer to our Wiki page. There are more code block examples in detail to tell you how to have Buggy performs different command!
If you have any questions, you can contact us under the Q&A webpage. Our technical support will reach out to you and help to solve any issues you have.

Required hardware
Code show
Attachment download
Master, don't look at it silently. Please login to help me comment.

Register now