by, craig parth santoshengineering.nyu.edu/mechatronics/projects/me7836... · 2015-03-02 ·...
TRANSCRIPT
By,CraigParthSantosh
• The objective of this project is to build a user interface to interact with the external world
• We used a 4X4 matrix of LDRs to achieve this
• In this project we are using this interface to play audio files from an sd card
• can be used for other applications as well
• In machine learning, pattern recognition is the assignment of a label toa given input
• Pattern recognition algorithms generally aim to provide a reasonable answer for all possible inputs
• Pattern recognition is studied in many fields, including psychology,psychiatry, cognitive science, traffic flow and computer science.
A photo resistor or light-dependent resistor (LDR) or photocell isa light controlled variable resistor. The resistance of the photo resistor decreases with increase in incident light intensity.
- - - - - - - - - - - - - - - -
Fill the above array with the sensor index that crossed the threshold limitin the order they occurred.
Multiply each element of this array with 2 power iWhere i is the index of array.
Sum of these products gives us a number for every pattern that is made using these 4X4 matrix of sensors.
This number is used as one of the control inputs.
The other control input is the first element of the array. (In conjunction)
49
26
151
59
185
70
37297
18775
Pattern Value
Row1 (lr) 49
Row2 (lr) 109
Row3 (lr) 169
Row4 (lr) 229
Row1 (rl) 26
Row2 (rl) 86
Row3 (rl) 146
Row4 (rl) 206
Pattern Value
Column 1 (tb) 151
Column 2 (tb) 166
Column 3 (tb) 181
Column 4 (tb) 196
Column 1 (bt) 59
Column 2 (bt) 74
Column 3 (bt) 89
Column 4 (bt) 104
Pattern Value
Small square (cw) 240
Small square (ccw) 222
Big square (cw) 37297
Big square (ccw) 18775
Circle (cw) 2552
Circle (ccw) 2192
Diagonal (\tb) 185
Diagonal (\bt) 70
Diagonal (/tb) 170
Diagonal (/bt) 94
• Cog0 runs the main program for pattern recognition and control
• 2 rows are taken care by different cogs
• SD card is using one cog
• wavplay is using 2 cogs
• Total seven cogs are being used in this project
We had 16 of these on board
• We can combine this project along with our arduino project in such a way that propeller does the pattern recognition and transmits this information over the UART interface and the arduino can use these command to control the bot movements
• Can be used as a keypad for a calculator
S.No Item Quantity Cost
1. LDR 16 5.5$
2. PROPELLER BOE 1 130$
3. RESISTORS &CAPACITORS
16 2$
4. SD CARD 1 4.95$
5. PCB 1 2$
6. OTHERS ----- 5$
TOTAL 149.45$