Friday, 11 August 2023

Exploring Robotics Adventures



Exploring Robotics Adventures

Introduction to Robotics

What are robots? Different types and purposes.

Robots are machines designed to perform tasks autonomously or under remote control, often mimicking or extending human actions. They come in various forms, each tailored to specific tasks and environments. Here are different types of robots and their purposes:

1. Industrial Robots:

Used in manufacturing and production lines to automate repetitive tasks like welding, painting, assembling, and packaging.

Characteristics: Precise and efficient, with robotic arms that move with high accuracy.

2. Service Robots:

Assist humans in various settings, including homes, hospitals, and retail spaces.

Examples:

Domestic robots: Vacuum cleaners, lawn mowers, and home assistants like Amazon Echo.

Healthcare robots: Surgical robots for precise procedures, patient care robots, and exoskeletons for rehabilitation.

3. Autonomous Vehicles:

Navigate and transport passengers or goods without human intervention.

Examples: Self-driving cars, drones for delivery, and autonomous agricultural vehicles.

4. Military and Defense Robots:

 Perform tasks in hazardous or combat environments, minimizing human risk.

Examples: Drones for surveillance and reconnaissance, bomb disposal robots, and unmanned ground vehicles.

5. Exploration and Research Robots:

Venture into environments that are too dangerous or inaccessible for humans.

Examples: Mars rovers, underwater exploration robots, and drones for scientific research.

6. Entertainment Robots:

Provide entertainment, companionship, and interactive experiences.

Examples: Toy robots, humanoid robots that can dance or interact with children, and robot pets.

7. Agricultural Robots:

Aid in planting, harvesting, and maintaining crops, increasing efficiency and reducing manual labor.

Examples: Robots for picking fruits, monitoring crops, and precision planting.

8. Search and Rescue Robots:

Locate and assist in the rescue of people in disaster-stricken or dangerous areas.

Examples: Robots for locating survivors in collapsed buildings, underwater drones for search missions.

9. Educational and Research Robots:

Introduce people to robotics and support research in the field.

Examples: Educational kits for programming and building robots, research platforms for testing new algorithms.

10. Space Exploration Robots: Explore outer space, conduct research on other planets, and gather data.

Examples: Mars rovers, space probes, and robotic arms on space stations.

Each type of robot serves a unique purpose and is designed to address specific challenges. The field of robotics continues to evolve, with new types of robots emerging to meet the needs of various industries and applications.

 Famous robots from movies and real life.


R2-D2 and C-3PO (Star Wars): These iconic droids are known for their roles in the Star Wars series. R2-D2 is an astromech droid with various tools, and C-3PO is a protocol droid fluent in over six million forms of communication.


Wall-E (Wall-E): Wall-E is a waste-collecting robot in the animated movie "Wall-E." He embarks on an adventure in space and becomes a symbol of hope for humanity.


Optimus Prime (Transformers): The leader of the Autobots, Optimus Prime can transform from a robot into a truck. The Transformers franchise features various robots that can transform into vehicles and other forms.


HAL 9000 (2001: A Space Odyssey): HAL is a sentient computer with a calm voice and is central to the plot of the film. Its character raises questions about the ethics of artificial intelligence.


Terminator (Terminator series): The Terminator is a robotic assassin from the future, played by Arnold Schwarzenegger. It's known for its catchphrase "I'll be back."


Johnny 5 (Short Circuit): Johnny 5 is a military robot that gains human-like sentience and emotions. The movie explores themes of self-discovery and friendship.


Bender (Futurama): Bender is a humorous robot character from the animated series "Futurama." He's known for his wit, sarcasm, and sometimes morally questionable behavior.


Famous Robots from Real Life:


ASIMO: Developed by Honda, ASIMO is a humanoid robot known for its advanced mobility and human-like movements. It can walk, run, dance, and interact with people.


Boston Dynamics Robots: The company Boston Dynamics has created a series of robots with remarkable mobility. Notable robots include Spot, a quadruped robot, and Atlas, a humanoid robot that can perform acrobatic movements.


Robonaut 2: Robonaut 2, or R2, is a humanoid robot developed by NASA and General Motors. It's designed to assist astronauts on the International Space Station (ISS).


Sophia: Created by Hanson Robotics, Sophia is a humanoid robot known for its lifelike appearance and ability to hold conversations. It has gained attention for its AI-driven responses.


Curiosity Rover: Curiosity is a robotic rover sent by NASA to explore the surface of Mars. It's equipped with scientific instruments to analyze the Martian environment.


Pepper: Pepper is a social humanoid robot developed by SoftBank Robotics. It's designed to interact with humans, recognize emotions, and provide assistance in various settings.


These robots have captured the imagination of people around the world, both in fictional stories and real-world applications.

 Robot Components and Building Basics

Main parts of a robot: body, sensors, actuators, controller.

1. Body:

The body of a robot is its physical structure. It gives the robot its shape, appearance, and the ability to interact with its surroundings.


Example Project: Design Your Own Robot

Have kids use craft materials like cardboard, paper, and art supplies to design and create their own robot. They can decide on the robot's appearance, such as its head, body, arms, and legs. Encourage them to be creative and use their imagination to come up with unique robot designs.


2. Sensors:

Sensors are the robot's "senses." They allow the robot to perceive its environment by detecting various types of information.


Example Project: Light-Following Robot

Create a simple robot with a light-sensitive sensor (like a light-dependent resistor) and a small motor. When the sensor detects light, the motor turns on and moves the robot toward the light source. Kids can experiment by shining a flashlight on the sensor to see the robot's movement.


3. Actuators:

Actuators are the robot's "muscles" that enable it to move and perform actions.


Example Project: Dancing Robot

Build a cardboard robot with a motor as its actuator. Attach arms and legs to the motor and program it to move in a fun dance routine. Kids can control the dance using a simple switch or button.


4. Controller:

The controller is the robot's "brain." It processes information from sensors and sends commands to actuators to control the robot's actions.


Example Project: Remote-Controlled Robot

Create a robot with wheels and attach a simple remote control. Kids can build a basic controller using buttons or switches and connect it to the robot. They'll learn about sending signals to the robot's controller to make it move forward, backward, turn, and stop.


5. Integration:

Combine all the components to create a more complex project that showcases how sensors, actuators, and the controller work together.


Example Project: Obstacle-Avoidance Robot

Build a robot with wheels and install ultrasonic distance sensors on its front. Program the robot's controller to detect obstacles using the sensors and automatically change direction to avoid collisions. Kids can set up a simple obstacle course and watch as the robot navigates around objects.


By breaking down these components and engaging in hands-on projects, kids can gain a better understanding of how robots function. These projects provide a foundation for learning about robotics while allowing kids to explore their creativity and problem-solving skills. Remember to adapt the complexity of the projects based on the kids' age and experience level.


Senses and Sensors

How robots "see," "hear," and "feel" using sensors.

1. How Robots "See" Using Sensors:

Just like our eyes help us see the world around us, robots have special "eyes" called sensors that help them see. These sensors can detect light and colors.


Example: Think of a robot's "eye" as a camera. When the robot's sensor "looks" at something, it can tell if it's bright or dark and what colors are there. This helps the robot understand what's in front of it.


Activity: Create a simple "robot eye" using a small LED light and a light-sensitive sensor. When you shine the light on the sensor, it can "see" the light and respond in some way, like making a sound or lighting up.


2. How Robots "Hear" Using Sensors:

Just like our ears let us hear sounds, robots can have "ears" called sensors that help them hear things. These sensors can detect sound and even some special noises.


Example: Imagine a robot's "ear" as a microphone. It can listen to sounds around it, like clapping, music, or even someone talking. The robot's sensor can turn the sounds into signals that its "brain" understands.


Activity: Build a "clap-activated" robot by attaching a sound sensor and a motor. When you clap your hands, the sensor "hears" the sound and makes the motor move, showing that the robot "heard" you.


3. How Robots "Feel" Using Sensors:

Just like our skin helps us feel things, robots can have "skin" called sensors that help them "feel" touch or even temperature.


Example: Think of a robot's "skin" as a touch sensor. When something touches the sensor, it can feel the touch and send a message to the robot's "brain." The robot's "brain" then decides what to do based on the touch.


Activity: Create a simple "touch-sensitive" robot by attaching a touch sensor and an LED light. When you touch the sensor, the light can change color, showing that the robot "felt" your touch.


By using these examples and relatable comparisons, kids can understand how robots use sensors to perceive their environment just like we use our senses to understand the world around us. This approach makes the concepts of "seeing," "hearing," and "feeling" using sensors more accessible and engaging for them. 

 

Introduction to different types of sensors: touch, light, sound.


Here's a simple way to explain three common types of sensors: touch sensors, light sensors, and sound sensors:


1. Touch Sensors:

Touch sensors are like a robot's "skin." They help robots feel when something touches them. Just like when you touch something with your hand, the touch sensor can feel when you touch it.


Example: Imagine a robot with a touch sensor on its arm. When you press the touch sensor, it's like giving the robot a gentle tap. The robot's "brain" can know that you touched it and can do something in response, like blinking a light or moving.


2. Light Sensors:

Light sensors are like a robot's "eyes." They can sense how much light is around them. When it's bright, they know it's daytime, and when it's dark, they know it's nighttime.


Example: Picture a robot with a light sensor on its head. When you shine a flashlight on the light sensor, it's like the robot is seeing the light. The robot can use this information to understand if it's sunny or if it's getting dark.


3. Sound Sensors:

Sound sensors are like a robot's "ears." They can hear sounds, just like you can hear when someone talks or when music plays.


Example: Think of a robot with a sound sensor on its side. If you clap your hands or play music near the robot, the sound sensor can "hear" the sounds. The robot's "brain" can recognize the sounds and maybe even respond by moving or making its own noise.


Activities:


Touch Sensor Exploration: Provide kids with various materials (soft, hard, rough, smooth) and let them experiment with touch sensors. They can observe how the sensor responds to different touches.


Light Sensitivity Test: Give kids a flashlight and a light-sensitive sensor. Have them shine the flashlight on the sensor and see how it reacts. Then, cover the sensor and notice how it changes.


Sound Sensing Fun: Play different sounds near a sound sensor and let kids observe how the sensor reacts to each sound. They can make a game out of guessing what sound the robot "heard."


By using relatable examples and simple comparisons, kids can understand the basic concepts of touch, light, and sound sensors and how they contribute to a robot's ability to interact with its environment. 

Activity: Build a simple light-following robot using a flashlight and light-sensitive sensor.

 Robot Movements and Actuators

How robots move using motors and actuators.

Here's a kid-friendly way to explain this concept:


Imagine the Robot's Muscles:

Just like we have muscles that help us move our arms and legs, robots have something similar called "actuators." These actuators work like a robot's muscles to help it move and do things.


1. Motors as Robot Muscles:

Think of motors as the special muscles that robots use. When a robot wants to move its arms, wheels, or other parts, it uses these motors.


2. Turning Electricity into Movement:

Motors are like magic muscles powered by electricity. When the robot's "brain" tells the motor what to do, the motor starts moving. It's a bit like how our brain sends signals to our muscles when we want to walk or pick something up.


3. Different Movements with Different Motors:

Just like we can move our arms in different ways, robots can move in different ways using different types of motors. Some motors help robots roll on wheels, some move robot arms up and down, and some make other cool robot actions happen.


Example: Robot Dance Moves:

Imagine a robot on the dance floor. Its motors make it groove and shake to the beat, just like we dance to music. The robot's "brain" sends signals to its motors, telling them to move its arms, legs, and body in fun dance moves.


Activity: Dancing Robot Project:

Help kids create a simple dancing robot using a small motor, a battery, and some craft materials. Attach cardboard arms and legs to the motor, and show kids how to connect the battery to power the motor. When the motor spins, the robot's arms and legs can move, creating a dancing motion.


By using relatable examples and visualizing how motors act as a robot's muscles, kids can understand how robots move and perform various actions using actuators. This approach makes the concept of motors and actuators more accessible and enjoyable for young learners.

 

Programming Basics


Introduction to basic programming concepts.

1. What is Programming?

Programming is like giving instructions to a robot or a computer. Just like you tell someone how to play a game, you can tell a robot what to do step by step.


2. Commands and Actions:

Think of programming as giving a robot a list of commands. Each command is like a step that the robot follows to complete a task.


3. Sequencing:

Sequencing is putting the steps in the right order. It's like making a recipe where you need to do things in a specific order to make a yummy dish.


Example: Imagine you're making a sandwich. You wouldn't put the toppings on before the bread, right? Similarly, in programming, you tell the robot what to do in the right sequence.


4. Looping:

Looping is when a robot does something over and over again. It's like doing jumping jacks multiple times without stopping.


Example: Picture a robot that's doing a dance move repeatedly. Instead of telling it the same dance step many times, you can use a loop to make the robot do the move again and again.


5. Conditional Statements:

Conditional statements are like making choices. You tell the robot to do one thing if something is true and another thing if it's not true.


Example: Imagine you're playing a game, and you decide what to do based on whether you rolled a high or low number on a dice. In programming, you can tell the robot to do different actions based on conditions too. 

Using commands to control robots: forward, backward, turn.

Here's a simple way to explain and practice using commands like "forward," "backward," and "turn":


1. Giving Robots Instructions:

Just like telling someone how to play a game, you can tell a robot what to do using special words called commands.


2. Forward:

"Forward" is a command that tells the robot to move ahead. It's like when you take a step in front of you.


Example: Imagine a robot at the starting line of a race. When you tell it "forward," it starts moving in the direction you're facing.


Activity: Lay out a "robot path" on the floor using tape or chalk. Have kids give commands like "forward" to guide a robot (or themselves pretending to be robots) along the path.


3. Backward:

"Backward" is a command that tells the robot to move in the opposite direction, like when you take a step back.


Example: Think of a robot that reached the end of a path. When you say "backward," it moves backward, just like you'd walk backward.


Activity: In the same robot path, have kids give commands like "backward" to make the robot move in reverse along the path.


4. Turn:

"Turn" is a command that makes the robot change its direction. It's like when you turn your body to face a different way.


Example: Imagine a robot at a crossroads. When you say "turn left," the robot turns to its left, just as if it's looking in a new direction.


Activity: Set up a few crossroads on the robot path. Ask kids to give commands like "turn left" or "turn right" to navigate the robot through the path.


Activities:


Command Race: Set up a simple course with cones or markers. Kids take turns being the "robot controller" and giving commands to guide a friend (the robot) through the course using "forward," "backward," and "turn" commands.


Robot Dance Moves: Assign dance moves (e.g., spin, jump, wiggle) to each command. Kids create a dance routine by giving the robot a series of commands.


Robot Obstacle Course: Create an obstacle course with pillows, cushions, and other safe items. Kids take turns navigating their robot through the course using commands to avoid obstacles.


By incorporating these commands into interactive activities, kids can grasp the idea of using programming to control robots' movements while having lots of fun. This hands-on approach makes programming concepts relatable and engaging for young learners.

Interactive Robots

Introduction to voice commands and interaction.

1. What Are Voice Commands?

Explain that voice commands are like magic words that robots can understand. Just like you talk to your friends, you can talk to a robot and tell it what to do using your voice.


2. Talking to Robots:

Describe how robots can listen to what you say and follow your instructions. When you give a robot a voice command, it understands the words you're saying and acts accordingly.


3. How Robots Understand:

Simplify the idea of how robots "understand" voice commands by explaining that they have special "ears" (microphones) that listen carefully to what people say.


4. Example Voice Commands:

Give kids a few example voice commands that they can use to interact with a robot. These can be simple commands like "hello," "go forward," "stop," or "dance."


5. Robot's Responses:

Explain that when you give a robot a voice command, it responds by doing something. It could move, make a sound, or even talk back to you.


6. Activity: Voice-Controlled Robot:

Here's a simple project to introduce voice commands and interaction:


Materials Needed: A simple robot (could be a cardboard robot or a toy robot), a smartphone or tablet with a voice recording app (if available).


Steps:


Explain the project: Tell the kids that they'll be making a robot that responds to their voice commands.

Choose a command: Help the kids choose a simple command, like "go forward" or "turn around."

Record the command: Using the voice recording app, record the chosen command in their own voice.

Test the command: Play the recorded command near the robot and see if it responds. If the robot can move, make sure it follows the command.

Explore: Let kids experiment with different commands and see how the robot responds.

7. Discussion and Exploration:

Encourage kids to explore the possibilities of voice commands. They can come up with their own commands, experiment with making the robot move in different directions, or even create a mini voice-controlled performance.


8. Reflect and Imagine:

Discuss with the kids how voice commands can make robots more interactive and fun to play with. Encourage them to imagine other ways they could use voice commands to make robots do interesting things.


By keeping the explanation simple, using relatable examples, and engaging in hands-on activities, kids can understand the concept of voice commands and interaction while having an enjoyable and interactive learning experience. 

Building a voice-controlled robot using a simple microphone.

Voice-controlled robot using Arduino:


Components:


Arduino Uno (or similar)

Microphone Module (e.g., Sound Sensor KY-038)

L293D Motor Driver

DC Motor

9V Battery or AA Battery Pack

Robot Chassis or Materials for Building the Robot Body

Jumper Wires

Connections:


Connect the microphone module:


Connect the "+" pin of the microphone module to the 5V pin on Arduino.

Connect the "out" pin of the microphone module to analog pin A0 on Arduino.

Connect the "GND" pin of the microphone module to the GND pin on Arduino.

Connect the L293D motor driver:


Connect the pins of the L293D motor driver to the DC motor. Connect one terminal of the motor to the OUT1 terminal and the other to the OUT2 terminal.

Connect the motor's ground to the GND pin on the motor driver.

Connect the motor driver's VCC1 to the 5V pin on Arduino.

Connect the motor driver's GND1 to the GND pin on Arduino.

Connect the input pins IN1 and IN2 to digital pins 2 and 3 on Arduino.

Connect the power:


Connect the 9V or AA battery pack's positive terminal to the "Vin" pin on Arduino.

Connect the battery pack's negative terminal to the GND pin on Arduino.

Note: Remember to provide a separate power source (battery) for the motor and motor driver to avoid overloading the Arduino's onboard regulator.


Please adjust the pin numbers and connections based on the actual components you're using. Always double-check your connections before powering up the circuit.




     +5V

      |

     Mic +

      |________ A0

      |

     Mic GND

      |

     GND


     +5V            +9V/AA Battery

      |              |

      |              |

    IN1 _______  OUT1

    IN2 _______  OUT2

      |              |

      |________ GND

      |

     GND



// Include the necessary libraries

#include <AFMotor.h>


// Create instances of the motor driver and microphone objects

AF_DCMotor motor(1); // Connect the motor to motor channel 1

const int micPin = A0; // Microphone is connected to analog pin A0


void setup() {

  // Set up serial communication for debugging

  Serial.begin(9600);

}


void loop() {

  // Read the microphone input

  int micValue = analogRead(micPin);


  // Check if the microphone input is above a certain threshold

  if (micValue > 500) { // Adjust the threshold value as needed

    Serial.println("Sound detected! Moving forward...");

    moveForward(); // Call the function to move the robot forward

    delay(1000); // Delay to prevent continuous movement

    stopRobot(); // Call the function to stop the robot

  }

}


// Function to move the robot forward

void moveForward() {

  motor.setSpeed(255); // Set motor speed (0 to 255)

  motor.run(FORWARD); // Run the motor forward

}


// Function to stop the robot

void stopRobot() {

  motor.setSpeed(0); // Set motor speed to 0

  motor.run(RELEASE); // Release the motor

}


 

Smart Robots and AI


Introduction to artificial intelligence (AI) and its role in robots.

How robots can learn and make decisions.

Activity: Design a robot that can follow lines on the floor using sensors and simple programming.

  

Examples: 


  1. Introduction to Pictoblox ,Introduction to electronics
  2. Robot eyes (Blinking LED,Blinking 2 LEDs,RGB LED)
  3. Led with LRD sensor ( smart light)
  4. DC Motors with Fan vacuum cleaner
  5. Smart Dust bin
  6. Water dispenser




Smart LED Circuits


int LED = 6; //GPIO 6 --- Digital Output to Transistor
int LDR = A0; //Define the Analog pin# on the Arduino for the LDR signal (Vp)
 
void setup() {
  // put your setup code here, to run once:
  pinMode(LED, OUTPUT); //Step pin as output
}
 
void loop() {
  int LDR_Vp = analogRead(LDR);
  
  if (LDR_Vp > 490) {
    digitalWrite(LED, HIGH);
  }
  else {
    digitalWrite(LED, LOW);


  }
}

https://www.diyengineers.com/2021/02/25/ldr-sensor-tutorial-with-arduino-light-dependent-resistor/

https://www.diyengineers.com/blog/




DC Motor Circuits

https://www.youtube.com/watch?v=MrETn36vSZ4&t=0s

code:

const int pin5 = 5;

const int pin4 = 4;

const int pin3 =3;

void setup(){

Serial.begin(9600);

pinMode(pin5, OUTPUT);

pinMode(pin4, OUTPUT);

pinMode(pin3, OUTPUT);

}

void loop() {

analogWrite(pin5, 150);

digitalWrite(pin4, LOW);

digitalWrite(pin3, HIGH);

delay(700);

//alternate direction

analogWrite(pin5, 150);

digitalWrite(pin4, HIGH);

digitalWrite(pin3, LOW);

delay(700);

}

Temperature Sensor



https://randomnerdtutorials.com/complete-guide-for-dht11dht22-humidity-and-temperature-sensor-with-arduino/#:~:text=Open%20your%20Arduino%20IDE%20and,Sensor%E2%80%9D%20in%20the%20search%20box.


#include "DHT.h"

#define DHTPIN 2     // what pin we're connected to

// Uncomment whatever type you're using!
#define DHTTYPE DHT11   // DHT 11 
//#define DHTTYPE DHT22   // DHT 22  (AM2302)
//#define DHTTYPE DHT21   // DHT 21 (AM2301)

// Initialize DHT sensor for normal 16mhz Arduino
DHT dht(DHTPIN, DHTTYPE);

void setup() {
  Serial.begin(9600); 
  Serial.println("DHTxx test!");
 
  dht.begin();
}

void loop() {
  // Wait a few seconds between measurements.
  delay(2000);

  // Reading temperature or humidity takes about 250 milliseconds!
  // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
  float h = dht.readHumidity();
  // Read temperature as Celsius
  float t = dht.readTemperature();
  // Read temperature as Fahrenheit
  float f = dht.readTemperature(true);
  
  // Check if any reads failed and exit early (to try again).
  if (isnan(h) || isnan(t) || isnan(f)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }

  // Compute heat index
  // Must send in temp in Fahrenheit!
  float hi = dht.computeHeatIndex(f, h);

  Serial.print("Humidity: "); 
  Serial.print(h);
  Serial.print(" %\t");
  Serial.print("Temperature: "); 
  Serial.print(t);
  Serial.print(" *C ");
  Serial.print(f);
  Serial.print(" *F\t");
  Serial.print("Heat index: ");
  Serial.print(hi);
  Serial.println(" *F");
}

Smart Dustbin

Reference:

https://www.electronicshub.org/smart-dustbin-using-arduino/



Circuit Diagram




Code

The code for the project How to Smart Dustbin using Arduino is given below.

#include <Servo.h>
Servo myservo;
int pos = 20;
const int trigPin = 5;
const int echoPin = 6;
const int led = 13;
long duration;
float distance;
void setup()
{
myservo.attach(11);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(led, OUTPUT);
myservo.write(pos);
}
void loop()
{
//Serial.begin(9600);
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = 0.034*(duration/2);
//Serial.println(distance);
if (distance < 27)
{
digitalWrite(led,HIGH);
myservo.write(pos+160);
delay(1000);
}
else
{
digitalWrite(led,LOW);
myservo.write(pos);
}
delay(300);
}

No comments:

Post a Comment

aws prep

  What is cloud computing? Examples of Cloud Computing Infrastructure as a Service Amazon EC2 GCP AZURE RACKAPACE Digital Ocean Linode Platf...