Sensing First of All Your Robot Would Have To Be Able To Sense Its
Sensing First of All Your Robot Would Have To Be Able To Sense Its
LECTURE-1
INTRODUCTION TO ROBOTICS:-
AS STRANGE AS IT MIGHT SEEM, THERE REALLY IS NO STANDARD DEFINITION
FOR A ROBOT. HOWEVER, THERE ARE SOME ESSENTIAL CHARACTERISTICS THAT
A ROBOT MUST HAVE AND THIS MIGHT HELP YOU TO DECIDE WHAT IS AND WHAT
IS NOT A ROBOT. IT WILL ALSO HELP YOU TO DECIDE WHAT FEATURES YOU WILL
NEED TO BUILD INTO A MACHINE BEFORE IT CAN COUNT AS A ROBOT.
A ROBOT HAS THESE ESSENTIAL CHARACTERISTICS:
• SENSING FIRST OF ALL YOUR ROBOT WOULD HAVE TO BE ABLE TO SENSE ITS
SURROUNDINGS. IT WOULD DO THIS IN WAYS THAT ARE NOT SIMILAR TO THE
WAY THAT YOU SENSE YOUR SURROUNDINGS. GIVING YOUR ROBOT SENSORS:
LIGHT SENSORS (EYES), TOUCH AND PRESSURE SENSORS (HANDS),
CHEMICAL SENSORS (NOSE), HEARING AND SONAR SENSORS (EARS), AND
TASTE SENSORS (TONGUE) WILL GIVE YOUR ROBOT AWARENESS OF ITS
ENVIRONMENT.
• Movement A robot needs to be able to move around its environment.
Whether rolling on wheels, walking on legs or propelling by thrusters a robot
needs to be able to move. To count as a robot either the whole robot moves,
like the Sojourner or just parts of the robot moves, like the Canada Arm.
• Energy A robot needs to be able to power itself. A robot might be solar
powered, electrically powered, battery powered. The way your robot gets its
energy will depend on what your robot needs to do.
• Intelligence A robot needs some kind of "smarts." This is where
programming enters the pictures. A programmer is the person who gives the
robot its 'smarts.' The robot will have to have some way to receive the
program so that it knows what it is to do.
ISAAC ASIMOV'S "THREE LAWS OF ROBOTICS”:-
Moving the knob is like moving the point where the arrow taps the voltage on the resistor
1.Thermisto
r
Circuit Diagram
Voltage Divider
Circuit
Code for using thermistor
void loop()
{
int sensor; //variable declaration
sensor=digitalRead(A0);//storing value of sensor value in variable
Serial.println(sensor);//Printing sensor value on serial monitor
}
8.ACCELEROMETER The ADXL335 is a triple axis
accelerometer with extremely low noise
and power consumption - only 320uA.
The sensor has a full sensing range of +/-
3gThe ADXL3xx outputs the acceleration
on each axis as an analog voltage
between 0 and 5 volts.
To read this, all you need is the
analogRead() function. Please, be aware
that some accelerometers use 3.3V power
supply
and might be damaged by 5V. Check the
supplier's documentation to find out
which is the correct voltage.
ACCELEROMETER CODE
int xpin = A0; // x-axis of the accelerometer
int ypin = A1; // y-axis
int zpin = A2; // z-axis (only on 3-axis models)
void setup()
{
// initialize the serial communications:
Serial.begin(9600);
}
void loop()
{
// print the sensor values:
Serial.print(analogRead(xpin));
// print a tab between values:
Serial.print("\t");
Serial.print(analogRead(ypin));
// print a tab between values:
Serial.print("\t");
Serial.print(analogRead(zpin));
Serial.println();
// delay before next reading:
delay(100);
}