กลับไปหน้ารวมไฟล์
mkr1000-wifi-robot-66ad1a-en.md

Aim of this project

This project aims to show how to use the MKR2UNO Adapter with a MKR1000 and an Arduino Motor Shield. It combines together the Arduino MKR1000 web server abilities and the Arduino motor shield feature to drive two different DC motor in speed and direction building a WiFi controlled mini robot.

Laser cutter file

The robot is based on this laser cutter file, just download and cut it! You can glue or screw the motors as you prefer!

Even if the wood base is very simple and straightforward to mount, here the mounting steps:

  • Screw or glue the two motors on the side walls;
  • Glue the two side walls to the center base using hot glue;
  • Put the glass ball into the round hole and fix it wit the second piece;
  • Glue the glass ball support to the center base;
  • Glue the two board stops to the center base. This will prevent the electronic to move too much;
  • Glue the top to have a solid structure;
  • Insert the tires in the motor gears. You can glue them to the gear to avoid too many movements.

Connections

The connections are very simple and showed in the Fritzing layout image. Anyway if the motors do not rotate in the right direction (according to the button pressed in the web interface) you have to swap the motor wires of the one that doesn't behave correctly.

Web interface

The very basic and simple web interface is hosted and hard-coded in the MKR1000 and allows the user to choose if the robot has to go UP, DOWN, LEFT or RIGHT as shown by the image below.

How to reach the web interface

In order to easily reach the web interface, the MDNS responding capability of the MKR1000 is used. Once the board is connected to your WiFi network you just have to type WiFiRobot.local in your web browser and that's it! You can now play with your WiFi robot!

EXPANDED TECHNICAL DETAILS

IoT Robotic Platform

This mobile robot leverages the advanced capabilities of the Arduino MKR1000, which features a SAMD21 microcontroller and an ECC508 crypto-chip for secure WiFi connectivity.

  • Wireless Control Hub: The robot hosts a local web server or connects to a cloud-based dashboard. The user can control the movement (Forward, Reverse, Turn) from any browser on the same network.
  • Motor Architecture: Driven via an L293D or L298N motor driver, allowing for PWM-based speed control (0-255). This ensures smooth acceleration and precise turning maneuvers.

Embedded Sensing

  • Obstacle Awareness: Equipped with an HC-SR04 ultrasonic sensor to prevent collisions. If an object is detected within 15cm, the robot can be programmed to automatically override user input and stop or reverse.
  • Power Management: Uses a high-capacity Li-Po battery, taking advantage of the MKR1000's built-in battery charging circuit for a compact and integrated power solution.

ข้อมูล Frontmatter ดั้งเดิม

title: "MKR1000 WiFi Robot"
description: "This project consists of a small robot controlled via WiFi using an Arduino MKR1000, MKR2UNO Shield Adapter and Arduino Motor Shield!"
author: "Arduino_Genuino"
category: "Internet of Things, BT & Wireless"
tags:
  - "wifi"
  - "robot"
  - "robotics"
views: 57254
likes: 38
price: 2450
difficulty: "Intermediate"
components:
  - "2x Small DC Motor"
  - "1x Battery snap"
  - "1x Laser cutter (generic)"
  - "1x Arduino MKR2UNO Adapter"
  - "1x 9V battery (generic)"
  - "1x Arduino MKR1000"
  - "1x Arduino MotorShield Rev3"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x Arduino Web Editor"
downloadableFiles:
  - "https://create.arduino.cc/editor/Arduino_Genuino/3966efb5-748b-45fc-936f-b1075ffaa18c/preview"
  - "https://create.arduino.cc/editor/Arduino_Genuino/3966efb5-748b-45fc-936f-b1075ffaa18c/preview"
documentationLinks: []
passwordHash: "7282080267a8cf3dd381916109665133db25462218460867cb93e1c5d01028b8"
encryptedPayload: "U2FsdGVkX1/z07OXSAG+FzNzlA5RrOQ+2qJGjojoRgmuUpNi67TSTdqCoMKp5kU8kAzF48TRiwOzPPOqbwWMaxyOREpxE1q2vEmO7advnKHO8EJDeAhQ/O286crUYhaV"
seoDescription: "Build a small robot controlled via WiFi using Arduino MKR1000, MKR2UNO Shield Adapter, and Arduino Motor Shield."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/mkr1000-wifi-robot-66ad1a_cover.jpg"
lang: "en"