1 / 18

Micromouse Meeting #4 Lecture #3 Sensors

Micromouse Meeting #4 Lecture #3 Sensors. Signals. We deal with voltage signals Sensors convert environment data to electrical signals Output: Voltage Input: Time/Distance/Whatever. Move Receiver around. Use sensors for:. Cell Counting. Wall Detection. Accurate Turning. IR LED Sensors.

anakin
Télécharger la présentation

Micromouse Meeting #4 Lecture #3 Sensors

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Micromouse Meeting #4Lecture #3Sensors

  2. Signals • We deal with voltage signals • Sensors convert environment data to electrical signals • Output: Voltage • Input: Time/Distance/Whatever Move Receiver around

  3. Use sensors for: Cell Counting Wall Detection Accurate Turning IR LED Sensors Gyro Rotary Encoder *Covered in Meeting #3 Powerpoint

  4. High Level Diagram

  5. Rotary Encoder *Covered in Meeting #3 Powerpoint • Used to measure distance traveled • Two major flavors • LED emitter/receiver pair with optically marked disk • Hall effect sensor with magnetically marked disk

  6. Infrared LED Sensors • One emitter/receiver pair can be used to detect walls in one direction • Use infrared light to avoid visible ambient light interference LEDs emit light with luminance dependent on voltage/current. They work the other way too

  7. Receiver Types • Custom sensors • Emitter-Receiver pair required • Can be specially chosen for your needs • Requires an IR LED Driver circuit: Darlington Driver IC • Narrow emission angle is necessary in LEDs • Potentially more accurate, but can be harder to calibrate • Sharp sensors • Model GP2Y0A21YK • Pre-made and assembled • Very easy to use, but they are bulky • Provides single analog output to use • Slow response time

  8. Choosing LED Emitters/Receivers Two Important Characteristics: How sharp of an angle the LED emits light at How brightly the LED emits

  9. Choosing a LED Emitter Look for narrow emission angle • Maximizes power efficiency • Maximizes signal amplitude received by the receiver Also indicated by “viewing angle” This angle should be small Power Density • Measures light intensity/solid angle • In data sheets, often measure in mW/sr • Higher means more light emitter/better • Check datasheet for directivity graphs, which show intensity vs. angle

  10. Choosing a LED Receiver • Match emitter wavelength with the receiver’s most sensitive wavelength • Receivers also have directivity – minimize this • Reduces interference from other IR light sources • Most common wavelengths are 850 nm and 950 nm • Check datasheets for this information This receiver is most sensitive to 950 nm light This emitter emits most at 940 nm IR LED emitters and receivers are often sold together and are wavelength-matched already Receivers also have directivity – Look for narrow ellipses

  11. LED Emitter/Receiver • Need at least 3 pairs to detect walls in front and sides • 4 or more is recommended for calibration • 2 to detect side walls • 2 pointing front to detect front walls and front wall alignment • Used to straighten the mouse

  12. IR LED Data • Get distance to wall by reading the voltage output of the receiver • Read the voltage output with MCU • Relate Voltage output with distance • LEDs are nonlinear • Find the relation experimentally

  13. Gyroscope • Optional, but highly recommended • Encoders can be used to measure angular velocity instead • But they are less accurate and susceptible to wheels slipping • Used to measure rotation of the mouse • Needs stable power source • Otherwise, lots of noise generated Gyros output angular velocity about a axis SMD on breakout board style SMD style

  14. Choosing a Gyro Only need to measure one axis • Analog or digital output: MCU can handle either • Most important characteristic: Range • Typically measured in degrees/second • What range you need depends on how fast your mouse spins • +- 1000 degrees/second is plenty

  15. Gyro Data • Analog output: • When not turning, voltage is half of maximum • Turning clockwise/counterclockwise will change the output positively/negatively, depending on specific gyro • Digital output: • Uses a serial scheme such as I2C or SPI • Same output as analog output, but numbers are encoded digitally (bits) For this analog gyro: Turning counterclockwise decreases voltage Turning clockwise increases voltage

  16. Gyro Data Processing • Gyros measure angular velocity • Integrate angular velocity to get angular position (which is more useful to know) • Gyro output is recorded as discrete samples, so the integration is a summation

  17. Gyro Data Processing • Relate voltage output summation with angle • Can be done experimentally • Non-ideality:Gyro drift • Gyros do not measure angular velocity perfectly • Integration of the velocity result in an error that increases linearly over time • Measure the error and subtract it out • We’ll cover how to do this next time

  18. Future Things • Algorithms! • EAGLE tutorial next week • Learn how to design printed circuit boards in EAGLE • Hosted by our Projects Manager Julian Brown • Nov. 14, 6 PM, location TBD

More Related