2V, 1W, polycrystalline silicon
2V, 1W, polycrystalline silicon
Arduino-compatible, ATmega328P
2V, 50mA, 100RPM
Infrared, ultrasonic, touch
The kit's modular design allows users to easily assemble and reconfigure the components to create different robotic configurations.
The kit offers extensive DIY and customization opportunities, enabling users to add their own components, modify the design, or create new projects.
The kit comes with comprehensive educational materials, including tutorials, projects, and lesson plans, to support learning and development.
Technical Specifications
220mm x 150mm x 100mm (robot mode), 170mm x 120mm x 80mm (car mode), 250mm x 200mm x 150mm (joint mode)
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.
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.