Stufin
Home Quick Cart Profile

DIY 2WD Smart Chassis Car Kit

Buy Now on Stufin

Chassis Material

Durable ABS plastic

Dimensions

200 x 150 x 80 mm (7.9 x 5.9 x 3.1 in)

Motor Type

High-torque DC motor (2x)

Motor Power

12V, 500mA (each)

Motor Speed

Up to 200 RPM

Sensor Mounts

4x (ultrasonic, infrared, lidar, and custom)

Microcontroller Compatibility

Arduino, Raspberry Pi, ESP32, and other popular platforms

Power Management

Built-in voltage regulator and power distribution module

Operating Temperature

-20C to 80C (-4F to 176F)

Target Applications

The DIY 2WD Smart Chassis Car Kit is ideal for a wide range of applications, including

Robotics and automation projects

IoT and smart home applications

Artificial intelligence and machine learning experiments

STEM education and research projects

Hobbyist and enthusiast projects

Conclusion

The DIY 2WD Smart Chassis Car Kit provides a comprehensive foundation for building intelligent vehicles and exploring the world of IoT, robotics, and artificial intelligence. With its modular design, high-torque DC motors, and sensor mounts, this kit offers endless possibilities for customization and innovation.

Pin Configuration

  • DIY 2WD Smart Chassis Car Kit Pinouts and Connection Guide
  • The DIY 2WD Smart Chassis Car Kit is a versatile and feature-rich IoT component designed for robotics, automation, and IoT projects. This kit comes with a range of pins that enable connection to various sensors, actuators, and microcontrollers. In this documentation, we will provide a comprehensive explanation of each pin and a step-by-step guide on how to connect them.
  • Pinouts:
  • The DIY 2WD Smart Chassis Car Kit has the following pins:
  • Motor Pins:
  • 1. M1A (Motor 1 Phase A): Connect to the positive terminal of Motor 1.
  • 2. M1B (Motor 1 Phase B): Connect to the negative terminal of Motor 1.
  • 3. M2A (Motor 2 Phase A): Connect to the positive terminal of Motor 2.
  • 4. M2B (Motor 2 Phase B): Connect to the negative terminal of Motor 2.
  • Sensor Pins:
  • 5. Echo (Ultrasonic Sensor Echo Pin): Connect to the echo pin of the ultrasonic sensor module.
  • 6. Trig (Ultrasonic Sensor Trigger Pin): Connect to the trigger pin of the ultrasonic sensor module.
  • 7. IRL (Infrared Receiver Left): Connect to the left infrared receiver module.
  • 8. IRR (Infrared Receiver Right): Connect to the right infrared receiver module.
  • Power and Control Pins:
  • 9. VCC (Power Supply): Connect to a 5V or 6V power source.
  • 10. GND (Ground): Connect to the ground of the power source and other modules.
  • 11. SCL (I2C Clock): Connect to the SCL pin of I2C devices (e.g., Arduino, Raspberry Pi).
  • 12. SDA (I2C Data): Connect to the SDA pin of I2C devices (e.g., Arduino, Raspberry Pi).
  • 13. RX (Serial Receive): Connect to the RX pin of a serial communication device (e.g., Arduino, Raspberry Pi).
  • 14. TX (Serial Transmit): Connect to the TX pin of a serial communication device (e.g., Arduino, Raspberry Pi).
  • 15. EN (Enable): Connect to a digital pin of a microcontroller to enable/disable the motor drivers.
  • Connection Guide:
  • To connect the pins properly, follow these steps:
  • Step 1: Motor Connections
  • Connect the positive terminal of Motor 1 to M1A.
  • Connect the negative terminal of Motor 1 to M1B.
  • Connect the positive terminal of Motor 2 to M2A.
  • Connect the negative terminal of Motor 2 to M2B.
  • Step 2: Sensor Connections
  • Connect the echo pin of the ultrasonic sensor module to Echo.
  • Connect the trigger pin of the ultrasonic sensor module to Trig.
  • Connect the left infrared receiver module to IRL.
  • Connect the right infrared receiver module to IRR.
  • Step 3: Power and Control Connections
  • Connect a 5V or 6V power source to VCC.
  • Connect the ground of the power source to GND.
  • Connect the SCL pin of an I2C device (e.g., Arduino, Raspberry Pi) to SCL.
  • Connect the SDA pin of an I2C device (e.g., Arduino, Raspberry Pi) to SDA.
  • Connect the RX pin of a serial communication device (e.g., Arduino, Raspberry Pi) to RX.
  • Connect the TX pin of a serial communication device (e.g., Arduino, Raspberry Pi) to TX.
  • Connect a digital pin of a microcontroller to EN to enable/disable the motor drivers.
  • Important Notes:
  • Make sure to use the correct pinouts and connections to avoid damage to the DIY 2WD Smart Chassis Car Kit or other connected modules.
  • Always refer to the datasheet and documentation of connected modules for specific connection requirements.
  • Use appropriate voltage and current ratings for the power supply to ensure safe and reliable operation.
  • By following this pinout and connection guide, you can successfully integrate the DIY 2WD Smart Chassis Car Kit into your IoT projects and unleash its full potential.

Code Examples

DIY 2WD Smart Chassis Car Kit Documentation
Overview
The DIY 2WD Smart Chassis Car Kit is a versatile and customizable IoT component designed for robotics and automation projects. This kit provides a 2-wheel drive (2WD) chassis with a built-in motor driver, making it easy to create intelligent and connected vehicles. The kit is compatible with popular microcontrollers such as Arduino, Raspberry Pi, and ESP32.
Key Features
2WD chassis with built-in motor driver
 Supports DC motors up to 12V and 1A
 Compatible with Arduino, Raspberry Pi, and ESP32 microcontrollers
 Includes wheels, motors, and chassis assembly
Hardware Connections
Motor connections: M1 and M2 (positive and negative terminals)
 Power connections: VCC and GND
 Microcontroller connections: depends on the microcontroller used (e.g., Arduino: digital pins 2-5, Raspberry Pi: GPIO pins 17-23)
Code Examples
### Example 1: Basic Motor Control using Arduino
In this example, we will use an Arduino Uno board to control the motors of the DIY 2WD Smart Chassis Car Kit.
Hardware Requirements
Arduino Uno board
 DIY 2WD Smart Chassis Car Kit
 Jumper wires
Software Requirements
Arduino IDE (version 1.8.x or later)
Code
```c
const int leftMotorForward = 2;  // Pin for left motor forward
const int leftMotorBackward = 3; // Pin for left motor backward
const int rightMotorForward = 4; // Pin for right motor forward
const int rightMotorBackward = 5; // Pin for right motor backward
void setup() {
  pinMode(leftMotorForward, OUTPUT);
  pinMode(leftMotorBackward, OUTPUT);
  pinMode(rightMotorForward, OUTPUT);
  pinMode(rightMotorBackward, OUTPUT);
}
void loop() {
  // Move forward
  digitalWrite(leftMotorForward, HIGH);
  digitalWrite(rightMotorForward, HIGH);
  delay(1000);
  
  // Move backward
  digitalWrite(leftMotorBackward, HIGH);
  digitalWrite(rightMotorBackward, HIGH);
  delay(1000);
  
  // Stop
  digitalWrite(leftMotorForward, LOW);
  digitalWrite(rightMotorForward, LOW);
  digitalWrite(leftMotorBackward, LOW);
  digitalWrite(rightMotorBackward, LOW);
  delay(1000);
}
```
### Example 2: Line Follower using Raspberry Pi and Python
In this example, we will use a Raspberry Pi board to create a line follower robot using the DIY 2WD Smart Chassis Car Kit.
Hardware Requirements
Raspberry Pi board (any model)
 DIY 2WD Smart Chassis Car Kit
 Infrared line sensor module (e.g., VL53L0X)
 Jumper wires
Software Requirements
Raspbian OS (latest version)
 Python 3.x
Code
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins
GPIO.setmode(GPIO.BCM)
left_motor_forward = 17
left_motor_backward = 23
right_motor_forward = 24
right_motor_backward = 25
GPIO.setup(left_motor_forward, GPIO.OUT)
GPIO.setup(left_motor_backward, GPIO.OUT)
GPIO.setup(right_motor_forward, GPIO.OUT)
GPIO.setup(right_motor_backward, GPIO.OUT)
# Set up line sensor
line_sensor_pin = 18
GPIO.setup(line_sensor_pin, GPIO.IN)
while True:
    # Read line sensor value
    line_sensor_value = GPIO.input(line_sensor_pin)
    
    if line_sensor_value == 0:  # Black line detected
        # Move forward
        GPIO.output(left_motor_forward, GPIO.HIGH)
        GPIO.output(right_motor_forward, GPIO.HIGH)
    else:  # White surface detected
        # Move backward
        GPIO.output(left_motor_backward, GPIO.HIGH)
        GPIO.output(right_motor_backward, GPIO.HIGH)
    
    time.sleep(0.1)
```
These examples demonstrate the basic usage of the DIY 2WD Smart Chassis Car Kit with popular microcontrollers. You can modify and extend these examples to create more complex and intelligent robotics projects.