- Pick up from the RadioGear Store
Schedule Pick up from store
Free
- Inside Dhaka Metro
Inside Dhaka Metro city
24 Hours
60tk
- Outside Dhaka metro
Outside Dhaka Metro
24 Hours
100tk
- Outside Dhaka
All Bangladesh
1-2 Days
130tk
3,250.00৳ Original price was: 3,250.00৳ .2,850.00৳ Current price is: 2,850.00৳ .
Schedule Pick up from store
Free
Inside Dhaka Metro city
24 Hours
60tk
Outside Dhaka Metro
24 Hours
100tk
All Bangladesh
1-2 Days
130tk
Payment Methods:
Mini Soccer DIY Kit – Perfect for Mini Soccer Competitions in Bangladesh!
Step into the thrilling world of robotics sports with our Mini Soccer DIY Kit, specifically designed to meet the requirements of Mini Soccer competitions in Bangladesh. Whether you’re a beginner or a seasoned robotics enthusiast, this kit provides all the essentials to create a soccer-playing robot capable of competing in style.
Kit Components:
Why Choose This Kit for Mini Soccer Competitions?
Get ready to dominate the field and make your mark in the Mini Soccer competitions of Bangladesh. Order your Mini Soccer DIY Kit now and let the games begin! ⚽🤖
Demo Code:
// Pin definitions
const int motor1Pin1 = 2; // Motor 1 forward
const int motor1Pin2 = 3; // Motor 1 backward
const int motor2Pin1 = 4; // Motor 2 forward
const int motor2Pin2 = 5; // Motor 2 backward
const int enablePin1 = 6; // Motor 1 speed control
const int enablePin2 = 7; // Motor 2 speed control
char command; // Variable to store Bluetooth commands
void setup() {
// Initialize motor pins as outputs
pinMode(motor1Pin1, OUTPUT);
pinMode(motor1Pin2, OUTPUT);
pinMode(motor2Pin1, OUTPUT);
pinMode(motor2Pin2, OUTPUT);
pinMode(enablePin1, OUTPUT);
pinMode(enablePin2, OUTPUT);
// Start Serial communication for Bluetooth module
Serial.begin(9600);
// Initialize motors as stopped
stopMotors();
}
void loop() {
// Check if data is available from Bluetooth
if (Serial.available() > 0) {
command = Serial.read(); // Read the incoming command
handleCommand(command); // Execute the command
}
}
// Function to execute commands
void handleCommand(char cmd) {
switch (cmd) {
case ‘F’: // Forward
moveForward();
break;
case ‘B’: // Backward
moveBackward();
break;
case ‘L’: // Left
turnLeft();
break;
case ‘R’: // Right
turnRight();
break;
case ‘S’: // Stop
stopMotors();
break;
default:
stopMotors();
break;
}
}
// Movement functions
void moveForward() {
analogWrite(enablePin1, 255); // Full speed
analogWrite(enablePin2, 255);
digitalWrite(motor1Pin1, HIGH);
digitalWrite(motor1Pin2, LOW);
digitalWrite(motor2Pin1, HIGH);
digitalWrite(motor2Pin2, LOW);
}
void moveBackward() {
analogWrite(enablePin1, 255); // Full speed
analogWrite(enablePin2, 255);
digitalWrite(motor1Pin1, LOW);
digitalWrite(motor1Pin2, HIGH);
digitalWrite(motor2Pin1, LOW);
digitalWrite(motor2Pin2, HIGH);
}
void turnLeft() {
analogWrite(enablePin1, 255);
analogWrite(enablePin2, 255);
digitalWrite(motor1Pin1, LOW);
digitalWrite(motor1Pin2, HIGH);
digitalWrite(motor2Pin1, HIGH);
digitalWrite(motor2Pin2, LOW);
}
void turnRight() {
analogWrite(enablePin1, 255);
analogWrite(enablePin2, 255);
digitalWrite(motor1Pin1, HIGH);
digitalWrite(motor1Pin2, LOW);
digitalWrite(motor2Pin1, LOW);
digitalWrite(motor2Pin2, HIGH);
}
void stopMotors() {
analogWrite(enablePin1, 0);
analogWrite(enablePin2, 0);
digitalWrite(motor1Pin1, LOW);
digitalWrite(motor1Pin2, LOW);
digitalWrite(motor2Pin1, LOW);
digitalWrite(motor2Pin2, LOW);
}
In stock
In stock
No account yet?
Create an Account