Top Banner
SENSORS!
18
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Analog vs Digital  Digital on/off voltage Analog variable voltage.

SENSORS!

Page 2: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Analog vs Digital

Digital on/off voltage

• Analog variable voltage

Page 3: Analog vs Digital  Digital on/off voltage Analog variable voltage.

• Environment

• Robot

What do we want to know?

Position

Velocity

Color

Position

Velocity

Topography

Temperature

Size/shape

Acceleration

Orientation

Page 4: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Sensors

Sonar Accelerometer Gyroscope Encoder Camera Potentiometer Compass Laser

Page 5: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Potentiometers Variable resistance Voltage divider Linear or rotary

Page 6: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Accelerometer and Gyroscope Measure deflection of micro-mass

Variation in output voltageV α a and V α ω

Resolution

V/g counts/V => counts/g

V/°/s counts/V => counts/°

Page 7: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Analog to Digital Computers sample analog signals

• Voltage of sample corresponds to digital number

Page 8: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Using Accel/Gyro Info

Sampling Period = ΔT

Angular Velocity x Time => Angle Change

Acceleration x Time => Velocity Change

Velocity x Time => Position Change

Page 9: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Sonar sound navigation and ranging

Point SourceEmitter and receiverCalculate distance

Reflected SignalCalculate distance to an

object

Page 10: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Sonar Shortfalls

Object interference

Radial Distance

How can we overcome it?

- Rotating sensors- Multiple sensors

Page 11: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Sonar with Multiple Sensors Sensor Interference Solutions:

- Different frequency sensors- Double-Pulse Coding

Page 12: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Controlling Sonar

Sonar board configuration Give command/pulse signal Start counter Receive response – stop counter Calculate distance

Page 13: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Mapping with Sonar

Distance represents a 3D surface ○ 2D if you make good assumptions

Digital representation (map)Shaded cells MAY contain an object

Page 14: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Rotary Encoders

Diode light passes through slits in disk Photocell gives high voltage

Page 15: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Encoders with Direction

2 Channels with slight offsetA or B will be read first

Page 16: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Absolute Encoder Standard Binary Encoding

Contact 1 Contact 2 Contact 3 Angle

1 off off off 0° to 45°

2 off off on 45° to 90°

3 off on off 90° to 135°

4 off on on 135° to 180°

5 on off off 180° to 225°

6 on off on 225° to 270°

7 on on off 270° to 315°

8 on on on 315° to 360°

Page 17: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Compass

Direction relative to defined direction Analog output

Page 18: Analog vs Digital  Digital on/off voltage Analog variable voltage.

Bringing it Together

Many sensors interfacing with microcontroller