Stufin
Home Quick Cart Profile

DIY WiFi Controlled Robot Kit

Buy Now

Component Name

DIY WiFi Controlled Robot Kit

Overview

The DIY WiFi Controlled Robot Kit is an innovative and interactive robotics platform designed for enthusiasts, hobbyists, and students to build and program their own WiFi-controlled robots. This kit provides a comprehensive set of components and tools to create a fully functional robot that can be controlled remotely using a WiFi-enabled device.

Functionality

The DIY WiFi Controlled Robot Kit allows users to design, build, and program a robot that can be controlled wirelessly using a smartphone, tablet, or computer. The robot can be programmed to perform various tasks, such as

Moving forward, backward, left, and right

Rotating and spinning

Obstacle avoidance

Line following

Remote monitoring and control

Key Features

  • WiFi Connectivity: The robot is equipped with a WiFi module that enables wireless communication between the robot and a WiFi-enabled device.
  • Microcontroller: The kit includes a powerful microcontroller that controls the robot's movements and functions.
  • Motor Drivers: The kit provides dual motor drivers that enable the robot to move and rotate smoothly.
  • Sensor Modules: The kit includes various sensor modules, such as ultrasonic, infrared, and line-following sensors, that enable the robot to detect and respond to its environment.
  • Power Management: The kit comes with a rechargeable battery and a built-in power management system that ensures efficient power supply to the robot's components.
  • Customizable: The DIY WiFi Controlled Robot Kit allows users to customize the robot's design, programming, and functionality according to their preferences and needs.
  • Arduino Compatible: The kit is compatible with Arduino, allowing users to program the robot using the popular Arduino IDE.
  • SDK and API: The kit provides a comprehensive Software Development Kit (SDK) and Application Programming Interface (API) for users to develop custom applications and integrate the robot with other devices and systems.
  • Mobile App Control: The kit includes a mobile app that enables users to control the robot remotely using their smartphone or tablet.
  • Educational Value: The DIY WiFi Controlled Robot Kit is an excellent educational tool for students and enthusiasts to learn about robotics, programming, and electronics.

Microcontroller

ESP32/ESP8266

WiFi Module

802.11 b/g/n

Motor Drivers

L293D/L298N

Sensor Modules

Ultrasonic, Infrared, Line-Following

Power Management

3.7V 1500mAh Rechargeable Battery

Operating Frequency

2.4GHz

Communication Protocol

WiFi, TCP/IP

Programming Language

C, C++, Arduino IDE

Mobile App Platform

Android, iOS

Kit Contents

Microcontroller Board

WiFi Module

Motor Drivers

Sensor Modules (Ultrasonic, Infrared, Line-Following)

Power Management Board

Rechargeable Battery

Jumper Wires

Breadboard

Mobile App (Android, iOS)

SDK and API Documentation

User Manual and Tutorial

Applications

Robotics and Automation

IoT Projects

Home Automation

Remote Monitoring and Control

Education and Research

Hobbyist and Enthusiast Projects

Pin Configuration

  • DIY WiFi Controlled Robot Kit Pinout Documentation
  • The DIY WiFi Controlled Robot Kit is a comprehensive kit that allows users to build and program a WiFi-controlled robot. The kit includes a microcontroller board, motor drivers, WiFi module, and other components. This documentation explains the pins of the microcontroller board and provides a step-by-step guide on how to connect them.
  • Microcontroller Board Pinout:
  • The microcontroller board has a total of 34 pins, divided into digital, analog, and power pins.
  • Digital Pins:
  • 1. D0 (RX): Receive pin for serial communication. Connected to the WiFi module's TX pin.
  • 2. D1 (TX): Transmit pin for serial communication. Connected to the WiFi module's RX pin.
  • 3. D2: Digital input/output pin. Can be used for general-purpose I/O or as an interrupt pin.
  • 4. D3: Digital input/output pin. Can be used for general-purpose I/O or as an interrupt pin.
  • 5. D4: Digital input/output pin. Connected to the motor driver's input 1 (IN1).
  • 6. D5: Digital input/output pin. Connected to the motor driver's input 2 (IN2).
  • 7. D6: Digital input/output pin. Connected to the motor driver's input 3 (IN3).
  • 8. D7: Digital input/output pin. Connected to the motor driver's input 4 (IN4).
  • 9. D8: Digital input/output pin. Can be used for general-purpose I/O or as an interrupt pin.
  • 10. D9: Digital input/output pin. Can be used for general-purpose I/O or as an interrupt pin.
  • 11. D10: Digital input/output pin. Connected to the WiFi module's reset pin.
  • 12. D11: Digital input/output pin. Can be used for general-purpose I/O or as an interrupt pin.
  • 13. D12: Digital input/output pin. Can be used for general-purpose I/O or as an interrupt pin.
  • 14. D13: Digital input/output pin. Can be used for general-purpose I/O or as an LED indicator.
  • Analog Pins:
  • 1. A0: Analog input pin. Can be used for reading analog sensors or potentiometers.
  • 2. A1: Analog input pin. Can be used for reading analog sensors or potentiometers.
  • 3. A2: Analog input pin. Can be used for reading analog sensors or potentiometers.
  • 4. A3: Analog input pin. Can be used for reading analog sensors or potentiometers.
  • 5. A4: Analog input pin. Can be used for reading analog sensors or potentiometers.
  • 6. A5: Analog input pin. Can be used for reading analog sensors or potentiometers.
  • Power Pins:
  • 1. VIN: Input voltage pin. Should be connected to a power source (e.g., battery or wall adapter).
  • 2. GND: Ground pin. Should be connected to a common ground point.
  • 3. 3V3: 3.3V power output pin. Can be used to power external components.
  • 4. 5V: 5V power output pin. Can be used to power external components.
  • WiFi Module Pinout:
  • The WiFi module has a total of 6 pins.
  • 1. RX: Receive pin for serial communication. Connected to the microcontroller board's TX pin.
  • 2. TX: Transmit pin for serial communication. Connected to the microcontroller board's RX pin.
  • 3. VCC: Power input pin. Should be connected to the microcontroller board's 3V3 pin.
  • 4. GND: Ground pin. Should be connected to a common ground point.
  • 5. RST: Reset pin. Connected to the microcontroller board's D10 pin.
  • 6. EN: Enable pin. Not used in this kit.
  • Motor Driver Pinout:
  • The motor driver has a total of 8 pins.
  • 1. IN1: Input pin for motor 1 direction control. Connected to the microcontroller board's D4 pin.
  • 2. IN2: Input pin for motor 1 speed control. Connected to the microcontroller board's D5 pin.
  • 3. IN3: Input pin for motor 2 direction control. Connected to the microcontroller board's D6 pin.
  • 4. IN4: Input pin for motor 2 speed control. Connected to the microcontroller board's D7 pin.
  • 5. VCC: Power input pin. Should be connected to the microcontroller board's 5V pin.
  • 6. GND: Ground pin. Should be connected to a common ground point.
  • 7. OUT1: Output pin for motor 1.
  • 8. OUT2: Output pin for motor 2.
  • Connection Structure:
  • 1. Connect the microcontroller board's VIN pin to a power source (e.g., battery or wall adapter).
  • 2. Connect the microcontroller board's GND pin to a common ground point.
  • 3. Connect the WiFi module's RX pin to the microcontroller board's TX pin.
  • 4. Connect the WiFi module's TX pin to the microcontroller board's RX pin.
  • 5. Connect the WiFi module's VCC pin to the microcontroller board's 3V3 pin.
  • 6. Connect the WiFi module's GND pin to a common ground point.
  • 7. Connect the WiFi module's RST pin to the microcontroller board's D10 pin.
  • 8. Connect the motor driver's IN1 pin to the microcontroller board's D4 pin.
  • 9. Connect the motor driver's IN2 pin to the microcontroller board's D5 pin.
  • 10. Connect the motor driver's IN3 pin to the microcontroller board's D6 pin.
  • 11. Connect the motor driver's IN4 pin to the microcontroller board's D7 pin.
  • 12. Connect the motor driver's VCC pin to the microcontroller board's 5V pin.
  • 13. Connect the motor driver's GND pin to a common ground point.
  • 14. Connect the motor driver's OUT1 pin to motor 1.
  • 15. Connect the motor driver's OUT2 pin to motor 2.
  • Important Notes:
  • Make sure to use the correct power supply voltage for the microcontroller board and motor driver.
  • Use a common ground point for all components to avoid noise and interference.
  • Ensure that the WiFi module is properly configured and connected to a WiFi network to enable remote control.
  • Use a suitable programming language and IDE to program the microcontroller board and control the robot's movements.

Code Examples

DIY WiFi Controlled Robot Kit Documentation
Overview
The DIY WiFi Controlled Robot Kit is an IoT component designed to provide users with a comprehensive platform for building and programming a WiFi-enabled robot. The kit includes a WiFi module, motor controllers, and various sensors, allowing users to create a fully functional robot that can be controlled remotely using a WiFi connection.
Technical Specifications
WiFi Module: ESP8266
 Motor Controllers: L298N
 Sensors: Ultrasonic, Infrared, and Line Follower
 Power Supply: 18650 Battery (not included)
 Communication Protocol: WiFi (TCP/IP)
Code Examples
### Example 1: Basic WiFi Controlled Robot using Arduino IDE
In this example, we will demonstrate how to use the DIY WiFi Controlled Robot Kit to create a basic WiFi-controlled robot using the Arduino IDE.
Hardware Requirements
DIY WiFi Controlled Robot Kit
 18650 Battery
 Jumper Wires
 Breadboard
Software Requirements
Arduino IDE (version 1.8.10 or higher)
Code
```c
#include <WiFi.h>
#include <WiFiClient.h>
// WiFi credentials
const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
// Robot motor pins
const int leftMotorForward = 2;
const int leftMotorBackward = 3;
const int rightMotorForward = 4;
const int rightMotorBackward = 5;
WiFiServer server(80);
void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  while ( WiFi.status() != WL_CONNECTED ) {
    delay ( 500 );
    Serial.print(".");
  }
  Serial.println("Connected to WiFi");
  Serial.println("Starting server...");
  server.begin();
  Serial.println("Server started");
}
void loop() {
  WiFiClient client = server.available();
  if (client) {
    String request = client.readStringUntil('
');
    if (request.indexOf("forward") != -1) {
      digitalWrite(leftMotorForward, HIGH);
      digitalWrite(rightMotorForward, HIGH);
    } else if (request.indexOf("backward") != -1) {
      digitalWrite(leftMotorBackward, HIGH);
      digitalWrite(rightMotorBackward, HIGH);
    } else if (request.indexOf("left") != -1) {
      digitalWrite(leftMotorForward, HIGH);
      digitalWrite(rightMotorBackward, HIGH);
    } else if (request.indexOf("right") != -1) {
      digitalWrite(leftMotorBackward, HIGH);
      digitalWrite(rightMotorForward, HIGH);
    } else {
      digitalWrite(leftMotorForward, LOW);
      digitalWrite(leftMotorBackward, LOW);
      digitalWrite(rightMotorForward, LOW);
      digitalWrite(rightMotorBackward, LOW);
    }
    client.stop();
  }
}
```
Explanation
This code creates a WiFi server using the ESP8266 WiFi module, allowing the robot to be controlled remotely using a web browser. The code defines the motor pins and uses the `digitalWrite()` function to control the motors based on the received HTTP request.
### Example 2: IoT Remote Control using Blynk App
In this example, we will demonstrate how to use the DIY WiFi Controlled Robot Kit with the Blynk IoT platform to create a remote-controlled robot using a smartphone app.
Hardware Requirements
DIY WiFi Controlled Robot Kit
 18650 Battery
 Jumper Wires
 Breadboard
 Smartphone with Blynk app installed
Software Requirements
Blynk app (version 2.27.1 or higher)
 Blynk library for Arduino (version 0.6.1 or higher)
Code
```c
#include <WiFi.h>
#include <BlynkSimpleEsp8266.h>
// Blynk credentials
char auth[] = "your_blynk_auth_token";
// WiFi credentials
char ssid[] = "your_wifi_ssid";
char pass[] = "your_wifi_password";
// Robot motor pins
const int leftMotorForward = 2;
const int leftMotorBackward = 3;
const int rightMotorForward = 4;
const int rightMotorBackward = 5;
BlynkTimer timer;
void setup() {
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
  timer.setInterval(50, motorControl);
}
void loop() {
  Blynk.run();
  timer.run();
}
void motorControl() {
  int x = Blynk.virtualRead(V0);
  int y = Blynk.virtualRead(V1);
  
  if (x > 0 && y > 0) {
    digitalWrite(leftMotorForward, HIGH);
    digitalWrite(rightMotorForward, HIGH);
  } else if (x < 0 && y < 0) {
    digitalWrite(leftMotorBackward, HIGH);
    digitalWrite(rightMotorBackward, HIGH);
  } else if (x > 0 && y < 0) {
    digitalWrite(leftMotorForward, HIGH);
    digitalWrite(rightMotorBackward, HIGH);
  } else if (x < 0 && y > 0) {
    digitalWrite(leftMotorBackward, HIGH);
    digitalWrite(rightMotorForward, HIGH);
  } else {
    digitalWrite(leftMotorForward, LOW);
    digitalWrite(leftMotorBackward, LOW);
    digitalWrite(rightMotorForward, LOW);
    digitalWrite(rightMotorBackward, LOW);
  }
}
```
Explanation
This code uses the Blynk library to connect the robot to the Blynk IoT platform, allowing users to control the robot remotely using the Blynk app. The code defines the motor pins and uses the `digitalWrite()` function to control the motors based on the virtual pin values received from the Blynk app.
Note: In both examples, you need to replace the WiFi credentials, Blynk credentials, and motor pin assignments with your own values. Additionally, ensure that you have the necessary libraries installed in the Arduino IDE.