User 9428
The task you define is quite easy to solve. First see the sample file BMP as uploaded in FAQ Area in NUST NERC Edu Page. Its a small file 56 bits by 96 bits of information in it.
The question most of students ask and face is how to read the BMP file?
BMP file or any other file what so ever is never so difficult to read or manage.
If you consider it as image you will think about it as image.
It is a text file - can any one read a text file simple with a room temperature or student marks obtained.
its some thing same like that.
upon investigating you will notice that the image it self is border white out side on all sides
then the line of black color starts the white path is all covered on all sides and fully with white elements. black color path is all round except two place which are gates to enter and exit ead them in Arduino and note them and mark as S and F - Start and Finish -
the white lines around are 4 bits by 56 on top and 4 bits by 56 bits are lower most line black lines are inside start from 5th bit and goes to 8th bit on left side wall then on the right side 49th to 52nd bit is black on left side from top to bottom ending is again 53rd bit to 56th bit white line.
Can you code them in Arduino ? quite simple and easy
This above tell opening and exit Marked as S Start and F Finish
Next like wise read the cells and code them by if and them loop to know they are black or white
Once you decode map to Array a 2D array can be manipulated and get all required results to find path and move for motors
some thing like below 001110 011110 011101 111111 111111 010011 010111
each element is coordinate form values
BMP is converted to Array and tell you in map form to deal as arithmetic problem
Arduino or any simple micro can do quite comfortably
the path found is decoded to move
you find two goals location from image also
but image is not telling color to pot in them the color sensor is easy answer to do that
reach place and find which color to pot
when both balls are pot come out of arena or maze
Hope you win this
regards
Athar Kaludi Premium Automation & embedded Corporation Skype lailajamil