Skip to content

Commit

Permalink
Merge pull request SRA-VJTI#11 from omsheladia/master
Browse files Browse the repository at this point in the history
LSA Readme Added.
  • Loading branch information
ombhilare999 authored Feb 14, 2022
2 parents 6ef35a4 + b0cf207 commit 2519afb
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ fp-info-cache
*.dsn
*.ses

*.DS_Store
*.DS_Store?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added documentation/images/LSA_images/lsaconn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 83 additions & 0 deletions sensors_2022/lsa/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
## LSA - Light Sensor Array

### Table of Contents
* [Overview](#overview)
* [Features](#features)
* [Components of LSA](#components-of-lsa)
* [Function of Components](#function-of-components)
* [LED](#function-of-components)
* [PhotoDiode](#function-of-components)
* [IC LM324](#function-of-components)
* [Resistors](#function-of-components)
* [Connections](#connections)
* [Working Principle](#working-principle)
* [Appplications](#applications)
* [Scope of Improvement](#scope-of-improvement)


### Overview
- The Light Sensor Array(LSA) is used to detect the white/black lined surface and it sends this data to the microcontroller ESP-32. Analyzing and processing the data received by the microcontroller ESP-32, the purpose of line following is achieved.

- Physical PCB
<p align="center">
<img src="https://github.com/SRA-VJTI/sra-board-hardware-design/blob/master/documentation/images/LSA_images/Lsa_front.png" width="600" height = "350">
</p>

- PCB Backside
<p align="center">
<img src="https://github.com/SRA-VJTI/sra-board-hardware-design/blob/master/documentation/images/LSA_images/Lsa_back.png" width="600" height = "350">
</p>

### Features
* Components used are readily available.
* Easy connections for output signals.
* Compact enough to fit into any project.
* Distinguished trace widths for Signal and Power Routes.

### Components of LSA
| Component | Description | Quantity |
| ----------- | ------------- | -------- |
| LED | Emits light | 4 |
| PhotoDiode | Absorbs light | 4 |
| IC LM324 | Op.Amp. IC | 1 |
| Resistors | Limit Current | 8 |
|JST Connector | Connect PCB with other circuits|1|


### Function of Components
- LED
- LSA consists of Four LED and PhotoDiode Pairs. The specific LED's emit white light which is incident on the surface and some of it is absorbed by the surface. The voltage source For the LEDs to glow is VCC.

- PhotoDiode
- Based upon the reflectivity coefficient of the surface( generally less than 1), the remaining light reflected from the surface is captured by the Photodiodes. LEDs and complimentary photodiodes are used to efficiently detect the surface (white/black line) as the environment also contains unwanted light for the LSA sensor. The amount of light received is directly proportional to the current generated by it. More the light, more the current, more the reading.

- IC LM324
- This is a Quad(4) OP.Amp. IC. Op.Amp i.e Operation Amplifiers amplify the current with constant volatge. Since the current reading from photo diodes is significantly small and difficult to compare, it needs to be amplified. The 4 amplified outputs serve as raw readings of LSA.

- Resistors
- Now to limit the current and thus to protect the LEDs, PhotoDiodes current limiting resistors are used.

### Connections
To connect LSA with the SRA Board, connect the JST connector in the following way:
<p align="center">
<img src="https://github.com/omsheladia/sra-board-hardware-design/blob/master/documentation/images/LSA_images/lsaconn.png?raw=true" width="400" height = "550">
</p>

### Working Principle
- LSA works on the principle of reflectivity of light for different types of surfaces.
- Black Surface -> HIGH absorptivity -> LESS reflectivity
- White Surface -> LOW absorptivity -> HIGH reflectivity
- Demonstration
<p align="center">
<img src="https://github.com/omsheladia/sra-board-hardware-design/blob/master/documentation/images/LSA_images/lsa_reflectivity.gif?raw=true" width="650" height="500">
</p>

### Applications
* Obstacle detection on a clear path.
* Line Following.
* Distinguish Colours on a path.

### Scope of Improvement
- LSA sometimes provides slightly inaccurate readings due to external light and conditions due to non uniformity of the colour of the path. Therefore, LSA has low accuracy. Hence LSA should be kept close to the ground.
- As of now only white and black surfaces are being mapped. Given accurate sensors and proper mapping we can map LSA for any range of RGB colours.

0 comments on commit 2519afb

Please sign in to comment.