Download robots and eyes v2

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Electrical substation wikipedia , lookup

History of electric power transmission wikipedia , lookup

Islanding wikipedia , lookup

Capacitor wikipedia , lookup

Resistor wikipedia , lookup

Rectifier wikipedia , lookup

Integrating ADC wikipedia , lookup

Electrical ballast wikipedia , lookup

Metadyne wikipedia , lookup

Current source wikipedia , lookup

Triode wikipedia , lookup

Power MOSFET wikipedia , lookup

Ohm's law wikipedia , lookup

Surge protector wikipedia , lookup

Voltage regulator wikipedia , lookup

Stray voltage wikipedia , lookup

Buck converter wikipedia , lookup

Alternating current wikipedia , lookup

Switched-mode power supply wikipedia , lookup

Schmitt trigger wikipedia , lookup

Mains electricity wikipedia , lookup

Voltage optimisation wikipedia , lookup

Resistive opto-isolator wikipedia , lookup

Opto-isolator wikipedia , lookup

Transcript
MAKING YOUR ROBOTS SEE
Building and Testing Photosensitive
eyes
5/23/2017
1
Building Photosensitive Eyes
Parts

1.
Two Photo-Resistors
2.
Two 0.1µF Capacitors
3.
Two 220Ω Resistors
5/23/2017
Circuit Building
5/23/2017
Concepts

Resistors
Reduces the flow of current
Photo-resistor
 Resistance value varies with change in lighting
condition
 Resistance is less in the presence of more light
and more in the absence of less light
Capacitor





5/23/2017
Stores energy
Controls the reaction of the photo-sensor
Programming to Measure
Resistance

RC Time






5/23/2017
Time it take the lower plate of the capacitor to discharge from 5 to
1.4 V. BASIC Stamp I/O pin’s threshold voltage = 1.4v.
voltage depends on R × C, the RC time constant, Tau.
When voltage > 1.4 V, register input = 1, when voltage < 1.4 V,
register input = 0.
Resistor and Capacitor are constant. Photo-resistor value changes
based on light, so the voltage changes.
rctime command measures how long it takes for the voltage to fall
from 5 to 1.4 V.
RC time varies according to the formula:
RC Time Measurements
5/23/2017
Controlling your Robot Based on
RC time

Deadband



A threshold that indicates different lighting (or color) conditions
seen by the resistors
Allows you tell the robot what direction to turn
Following a Black Stripe



5/23/2017
If deadband criteria is not met, just go forward
If deadband criteria is met, then check to see what direction to go
Example: If RC time for left wheel is greater than RC time for right
wheel
 Which wheel sees a darker color?
 What should the robot do?
Controlling your Robot Based on
RC time

Avoiding a Black Stripe



5/23/2017
If deadband criteria is not met, just go forward
If deadband criteria is met, then check to see what direction to go
Example: If RC time for left wheel is greater than RC time for right
wheel
 Which wheel sees a darker color?
 What should the robot do?