Stufin
Home Quick Cart Profile

3 in 1 Educational DIY Solar Robot Kit

Buy Now

Solar Panel

2V, 1W, polycrystalline silicon

Microcontroller

Arduino-compatible, ATmega328P

DC Motor

2V, 50mA, 100RPM

Sensors

Infrared, ultrasonic, touch

Modular Design

The kit's modular design allows users to easily assemble and reconfigure the components to create different robotic configurations.

DIY and Customization

The kit offers extensive DIY and customization opportunities, enabling users to add their own components, modify the design, or create new projects.

Educational Materials

The kit comes with comprehensive educational materials, including tutorials, projects, and lesson plans, to support learning and development.

Technical Specifications

Dimensions

220mm x 150mm x 100mm (robot mode), 170mm x 120mm x 80mm (car mode), 250mm x 200mm x 150mm (joint mode)

Weight

500g (approximately)

By offering a comprehensive and interactive learning experience, the 3 in 1 Educational DIY Solar Robot Kit is an ideal tool for students, educators, and hobbyists looking to explore the fascinating world of robotics, renewable energy, and electronics.

Pin Configuration

  • 3 in 1 Educational DIY Solar Robot Kit Pinout Explanation
  • The 3 in 1 Educational DIY Solar Robot Kit is a comprehensive learning platform that combines robotics, solar power, and DIY building. This documentation explains the pinout of the kit, providing a detailed description of each pin and how to connect them.
  • Microcontroller Board (Arduino Compatible) Pinout:
  • 1. VIN (Pin 1): Input voltage pin, connects to the solar panel or external power source (7-12V).
  • 2. GND (Pin 2): Ground pin, connects to the solar panel or external power source ground.
  • 3. VCC (Pin 3): Output voltage pin, provides power to the motor driver and other components (5V).
  • 4. GND (Pin 4): Ground pin, connects to the motor driver and other components ground.
  • 5. Digital Pin 2 (Pin 5): Connects to the motor driver's enable pin (ENA) to control the motor's speed.
  • 6. Digital Pin 3 (Pin 6): Connects to the motor driver's direction pin (DIR) to control the motor's direction.
  • 7. Digital Pin 4 (Pin 7): Connects to the photodiode's signal pin to detect light intensity.
  • 8. Digital Pin 5 (Pin 8): Connects to the motor driver's enable pin (ENB) to control the motor's speed.
  • 9. Digital Pin 6 (Pin 9): Connects to the motor driver's direction pin (DIR) to control the motor's direction.
  • 10. Digital Pin 7 (Pin 10): Not used in this kit.
  • 11. Digital Pin 8 (Pin 11): Not used in this kit.
  • 12. Analog Pin A0 (Pin 12): Connects to the solar panel's voltage monitoring pin to measure the solar panel's output voltage.
  • 13. Analog Pin A1 (Pin 13): Connects to the battery's voltage monitoring pin to measure the battery's state of charge.
  • 14. Analog Pin A2 (Pin 14): Not used in this kit.
  • 15. Analog Pin A3 (Pin 15): Not used in this kit.
  • 16. Analog Pin A4 (Pin 16): Not used in this kit.
  • 17. Analog Pin A5 (Pin 17): Not used in this kit.
  • Motor Driver Pinout:
  • 1. ENA (Pin 1): Connects to Digital Pin 2 (Pin 5) on the microcontroller board to control the motor's speed.
  • 2. IN1 (Pin 2): Connects to the motor's positive terminal (M1A).
  • 3. IN2 (Pin 3): Connects to the motor's negative terminal (M1B).
  • 4. ENB (Pin 4): Connects to Digital Pin 5 (Pin 8) on the microcontroller board to control the motor's speed.
  • 5. IN3 (Pin 5): Connects to the motor's positive terminal (M2A).
  • 6. IN4 (Pin 6): Connects to the motor's negative terminal (M2B).
  • Photodiode Pinout:
  • 1. Signal Pin (Pin 1): Connects to Digital Pin 4 (Pin 7) on the microcontroller board to detect light intensity.
  • 2. GND (Pin 2): Connects to the microcontroller board's ground pin (GND).
  • Solar Panel Pinout:
  • 1. Positive Terminal (Pin 1): Connects to the VIN (Pin 1) on the microcontroller board.
  • 2. Negative Terminal (Pin 2): Connects to the GND (Pin 2) on the microcontroller board.
  • Battery Pinout:
  • 1. Positive Terminal (Pin 1): Connects to the VIN (Pin 1) on the microcontroller board.
  • 2. Negative Terminal (Pin 2): Connects to the GND (Pin 2) on the microcontroller board.
  • Connection Structure:
  • 1. Connect the solar panel's positive terminal to the VIN (Pin 1) on the microcontroller board.
  • 2. Connect the solar panel's negative terminal to the GND (Pin 2) on the microcontroller board.
  • 3. Connect the battery's positive terminal to the VIN (Pin 1) on the microcontroller board.
  • 4. Connect the battery's negative terminal to the GND (Pin 2) on the microcontroller board.
  • 5. Connect the motor driver's ENA pin to Digital Pin 2 (Pin 5) on the microcontroller board.
  • 6. Connect the motor driver's IN1 pin to the motor's positive terminal (M1A).
  • 7. Connect the motor driver's IN2 pin to the motor's negative terminal (M1B).
  • 8. Connect the motor driver's ENB pin to Digital Pin 5 (Pin 8) on the microcontroller board.
  • 9. Connect the motor driver's IN3 pin to the motor's positive terminal (M2A).
  • 10. Connect the motor driver's IN4 pin to the motor's negative terminal (M2B).
  • 11. Connect the photodiode's signal pin to Digital Pin 4 (Pin 7) on the microcontroller board.
  • Important Notes:
  • Ensure correct polarity while connecting the solar panel and battery to avoid damage.
  • Use suitable jumper wires and connectors to connect the components.
  • Follow proper safety precautions while working with electronic components.

Code Examples

3 in 1 Educational DIY Solar Robot Kit Documentation
Overview
The 3 in 1 Educational DIY Solar Robot Kit is an innovative and interactive kit designed to introduce students and hobbyists to the world of robotics, solar energy, and IoT. This kit allows users to build and program three different robots using a single kit, teaching essential skills in STEM education.
Components
1 x Solar Panel
 1 x Motor Driver
 1 x Microcontroller (Arduino-compatible)
 1 x Chassis
 1 x Gear Set
 1 x Battery Holder
 1 x Jumper Wires
 1 x Instruction Manual
Technical Specifications
Solar Panel: 2V, 100mA
 Motor Driver: L293D
 Microcontroller: ATmega328P (Arduino-compatible)
 Programming Language: C/C++ (Arduino IDE)
Code Examples
### Example 1: Basic Line Follower Robot
In this example, we will program the robot to follow a black line using a built-in IR sensor.
Hardware connections:
Connect the IR sensor to digital pins 2 and 3 of the microcontroller.
 Connect the motor driver to digital pins 4, 5, 6, and 7 of the microcontroller.
 Connect the motors to the motor driver.
Code:
```c
const int leftMotorForward = 4;
const int leftMotorBackward = 5;
const int rightMotorForward = 6;
const int rightMotorBackward = 7;
const int IRSensor = 2;
void setup() {
  pinMode(leftMotorForward, OUTPUT);
  pinMode(leftMotorBackward, OUTPUT);
  pinMode(rightMotorForward, OUTPUT);
  pinMode(rightMotorBackward, OUTPUT);
  pinMode(IRSensor, INPUT);
}
void loop() {
  int sensorValue = digitalRead(IRSensor);
  if (sensorValue == LOW) {
    // Black line detected, turn left
    digitalWrite(leftMotorForward, HIGH);
    digitalWrite(rightMotorForward, LOW);
  } else {
    // No black line detected, turn right
    digitalWrite(leftMotorForward, LOW);
    digitalWrite(rightMotorForward, HIGH);
  }
  delay(20);
}
```
### Example 2: Solar-Powered Robot with Obstacle Avoidance
In this example, we will program the robot to move using solar power and avoid obstacles using an ultrasonic sensor.
Hardware connections:
Connect the solar panel to the battery holder.
 Connect the ultrasonic sensor to digital pins 8 and 9 of the microcontroller.
 Connect the motor driver to digital pins 10, 11, 12, and 13 of the microcontroller.
 Connect the motors to the motor driver.
Code:
```c
const int leftMotorForward = 10;
const int leftMotorBackward = 11;
const int rightMotorForward = 12;
const int rightMotorBackward = 13;
const int trigPin = 8;
const int echoPin = 9;
void setup() {
  pinMode(leftMotorForward, OUTPUT);
  pinMode(leftMotorBackward, OUTPUT);
  pinMode(rightMotorForward, OUTPUT);
  pinMode(rightMotorBackward, OUTPUT);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
}
void loop() {
  int distance = getDistance();
  if (distance < 20) {
    // Obstacle detected, turn around
    digitalWrite(leftMotorForward, LOW);
    digitalWrite(rightMotorForward, HIGH);
    delay(500);
    digitalWrite(leftMotorForward, HIGH);
    digitalWrite(rightMotorForward, LOW);
  } else {
    // Move forward
    digitalWrite(leftMotorForward, HIGH);
    digitalWrite(rightMotorForward, HIGH);
  }
  delay(20);
}
int getDistance() {
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  int duration = pulseIn(echoPin, HIGH);
  int distance = duration  0.034 / 2;
  return distance;
}
```
These examples demonstrate the versatility and potential of the 3 in 1 Educational DIY Solar Robot Kit. By combining solar power, robotics, and programming, users can create innovative projects that showcase their creativity and skills in STEM education.