Matatalab VinciBot Coding Robot for Kids 8+
The Matatalab VinciBot is a STEM educational toy designed for kids aged 8 and above to learn programming concepts using Scratch and Python. This AI smart robot comes with a remote controller, making it an engaging and interactive tool for young minds to develop their coding skills.
Learn programming concepts using Scratch and Python
AI-powered robot with remote controller
Develop problem-solving skills, critical thinking, and creativity
Suitable for kids aged 8 and above
Microcontroller: ARM Cortex-M4
Programming Languages: Scratch, Python
Communication: Bluetooth 4.0
Power Supply: 6 x AA batteries (not included)
Dimensions: 220 x 180 x 150 mm
### Example 1: Basic Movement Using Scratch
In this example, we will demonstrate how to use the VinciBot to move forward and backward using Scratch programming.
1. Open Scratch and create a new project.
2. Connect the VinciBot to your computer via Bluetooth.
3. Drag and drop the "When Space Key Pressed" block into the coding area.
4. Add the "Forward" block from the "VinciBot" tab and set the value to 100.
5. Add the "Wait" block and set the value to 1 second.
6. Add the "Backward" block from the "VinciBot" tab and set the value to 100.
Scratch Code:
```scratch
when space key pressed
forward 100
wait 1 second
backward 100
```
Result: The VinciBot will move forward by 100 units and then move backward by 100 units when the space key is pressed.
### Example 2: Line Follower Using Python
In this example, we will demonstrate how to use the VinciBot to follow a line using Python programming.
Python Code:
```python
import vinciobot
# Initialize the VinciBot
bot = vinciobot.VinciBot()
# Set the line follower mode
bot.set_mode(vinciobot.LINE_FOLLOWER_MODE)
while True:
# Read the line sensor values
left_sensor = bot.get_line_sensor_left()
right_sensor = bot.get_line_sensor_right()
# Adjust the motor speeds based on the line sensor values
if left_sensor < 500 and right_sensor < 500:
bot.set_motor_speeds(50, 50) # Move forward
elif left_sensor > 500 and right_sensor < 500:
bot.set_motor_speeds(-50, 50) # Turn left
elif left_sensor < 500 and right_sensor > 500:
bot.set_motor_speeds(50, -50) # Turn right
else:
bot.set_motor_speeds(0, 0) # Stop
# Delay for 50ms
time.sleep(0.05)
```
Result: The VinciBot will follow a line drawn on the floor, adjusting its motor speeds based on the line sensor values.
Note: These code examples are for illustrative purposes only and may require modifications to work with your specific VinciBot setup. Refer to the official Matatalab documentation for more information on programming the VinciBot.