articles
Wireless mBot Car Racing On Figure 8 Track - Part 2: Before mBlock Programming
Tuesday, November 29, 2016
the IR remote uses a CR2025 cell coin battery
Another great thing about the mBot is that the 2.4G wireless adapter can be replaced with a Bluetooth adapter so you can control the mBot via Bluetooth smartphone. The mBot is very intuitive to assemble and you do get an instruction manual with illustration pictures showing you in detail how the mBot is put together and where each wire goes.
The mBot comes with its own ultrasonic sensor though you can use an ultrasonic 4-pin sensor like the Ranger V2.0 together with the mBot ultrasonic sensor.
the mBot supports Bluetooth 2.1 and Bluetooth 4.0 or higher, as well as iOS 7 or higher
Here are the first steps before you start programming with mBlock:
1) Download the mBlock software from http://www.mblock.cc/ and install it on your PC or laptop.
2) Install the Arduino Driver so that your PC can communicate with the mBot. Go to Connect->Install Arduino Driver
4. Go to Boards->mBot (mCore). If you are using the mBot Version 1.1 then the board to select is the mCore.
The mBot line follower code allows the mBot to literary follow a line thanks to the line follower sensor mounted on the mBot, which allows the mBot to detect "light" and "dark" colors.
The Figure 8 racing track is black and white; hence why the mBot is able to race around the Figure 8 track. The mBot line follower code is as follows:
Here is the mBot racing on a Figure 8 track:
0 comments