DIY 2 Wheeler Remote Controlled Car
DIY 2 Wheeler Remote Controlled Car
The DIY 2 Wheeler Remote Controlled Car is a versatile and customizable IoT-based vehicle kit designed for enthusiasts and hobbyists. This component allows users to build and program their own remote-controlled car, leveraging the latest advancements in IoT technology. The kit comprises a range of components and peripherals, providing an engaging and interactive experience for users of all skill levels.
The DIY 2 Wheeler Remote Controlled Car kit enables users to create a fully functional, remote-controlled vehicle that can be controlled using a dedicated remote controller or a mobile device via Bluetooth or Wi-Fi connectivity. The kit's advanced features and modular design make it an ideal platform for learning, experimentation, and innovation in IoT, robotics, and automation.
### Hardware Components | |
### Sensors and Modules | |
### Software and Programming | |
### Additional Features |
6-12V DC
2 x 20W
Bluetooth or Wi-Fi
1% (acceleration and gyro sensor)
Up to 10 cm (infrared sensor)
Up to 1.5 m/s
Up to 2 hours (continuous use)
Compatible with Arduino, Raspberry Pi, and other popular microcontroller platforms
Supports mobile devices with Bluetooth or Wi-Fi connectivity
Accessible via web-based interface or dedicated mobile app
Hobbyists and enthusiasts interested in IoT, robotics, and automation
Students and educators seeking an engaging platform for learning and experimentation
Professionals looking to develop and prototype custom IoT solutions
DIY 2 Wheeler Remote Controlled Car Component Documentation
Overview
The DIY 2 Wheeler Remote Controlled Car is a miniature vehicle designed for robotics and IoT enthusiasts. This component is a versatile platform for exploring autonomous vehicles, robotics, and IoT applications. The car features two-wheel drive, remote control functionality, and customizable hardware and software configurations.
Technical Specifications
Microcontroller: Arduino Uno or compatible
Motor Driver: L298N or compatible
Wheels: 2x DC Geared Motors with rubber tires
Power Supply: 6V 1.5Ah Battery (included)
Communication Protocol: Infrared (IR) or Radio Frequency (RF) modules (optional)
Dimensions: 15cm x 10cm x 5cm (L x W x H)
Weight: approximately 200g
Hardware Connection Diagram
```
+---------------+
| Arduino Uno |
+---------------+
|
|
v
+---------------+ +---------------+
| L298N Motor | | DC Geared Motor |
| Driver (IN1, | | (Left Wheel) |
| IN2, ENA) | | |
+---------------+ +---------------+
|
|
v
+---------------+ +---------------+
| L298N Motor | | DC Geared Motor |
| Driver (IN3, | | (Right Wheel) |
| IN4, ENB) | | |
+---------------+ +---------------+
|
|
v
+---------------+
| IR or RF Module |
| (optional) |
+---------------+
```
Software Examples
### Example 1: Basic Remote Control Using IR Module
In this example, we'll demonstrate how to control the car using an IR remote control and an IR receiver module.
Hardware Requirements
IR Receiver Module (e.g., VS1838B)
IR Remote Control
Software Code (Arduino IDE)
```c
#include <IRremote.h>
const int IR RECEIVER_PIN = 11; // Pin for IR receiver module
IRrecv irrecv(IR RECEIVER_PIN);
decode_results results;
void setup() {
Serial.begin(9600);
irrecv.enableIRIn(); // Start the IR receiver
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
if (results.value == 0xFF38C7) { // Forward button press
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
} else if (results.value == 0xFF5AA5) { // Backward button press
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
} else if (results.value == 0xFF4AB5) { // Left button press
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
} else if (results.value == 0xFF3AC5) { // Right button press
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
} else {
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
}
irrecv.resume(); // Receive the next IR signal
}
delay(50);
}
```
### Example 2: Autonomous Obstacle Avoidance Using Ultrasonic Sensor
In this example, we'll demonstrate how to use an ultrasonic sensor to enable autonomous obstacle avoidance on the DIY 2 Wheeler Remote Controlled Car.
Hardware Requirements
Ultrasonic Sensor (e.g., HC-SR04)
Jumper Wires
Software Code (Arduino IDE)
```c
const int TRIGGER_PIN = 2; // Pin for ultrasonic sensor trigger
const int ECHO_PIN = 3; // Pin for ultrasonic sensor echo
const int MAX_DISTANCE = 20; // Maximum distance for obstacle detection (cm)
int distance = 0;
void setup() {
Serial.begin(9600);
pinMode(TRIGGER_PIN, OUTPUT);
pinMode(ECHO_PIN, INPUT);
}
void loop() {
digitalWrite(TRIGGER_PIN, LOW);
delayMicroseconds(2);
digitalWrite(TRIGGER_PIN, HIGH);
delayMicroseconds(10);
digitalWrite(TRIGGER_PIN, LOW);
distance = pulseIn(ECHO_PIN, HIGH) / 58; // Calculate distance in cm
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");
if (distance <= MAX_DISTANCE) {
// Obstacle detected, stop the car
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
} else {
// No obstacle, move forward
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
}
delay(50);
}
```
These examples demonstrate the versatility of the DIY 2 Wheeler Remote Controlled Car component and its potential applications in IoT and robotics projects. By combining this component with various sensors, modules, and programming languages, you can create innovative projects that showcase your creativity and skills.