I'm planning a project to automate measuring of the gap of a spark plug. I'm trying to figure out what the best IC is for my project. My requirements are that the device has to be battery operated and have an image resolution of at least 0.005mm (will be rounded to nearest 0.01mm for the display, this is for accuracy purposes)
My goal for end user interaction is this: User inserts spark plug into a hole in the device, presses a button, a 3 digit LED displays the gap size.
To do this, I am considering taking a picture of the spark plug electrodes, and then doing some analysis on that image. The picture will be taken inside the device with controlled lighting conditions, so a black-white 1-bit image is all I think I really need. My biggest hurdle is getting the image into memory. Once I have a 2D array of the image, I can figure out the gap from there. I'm not sure Arduino is the best choice for this project due to the resolution that I need. Ideally (to minimize the work needed on the mechanical design) I would use an image size of 3mm wide x 4mm tall with a resolution of 600x800. If I can get that image into one bit per pixel, that's still a minimum of 480kb of memory required. I think I can knock that down some with good lensing and design of the camera chamber. If i use a non-standard resolution, I can maybe get 240x600 for 144kb, but I don't think I can go lower than that.
Can the Flash memory be used to store variable data? I don't think so, but I thought I would ask.
I have not considered speed in this, but anything faster than 90s is acceptable.
I was thinking of using the Arduino DUE for the processing and the video experimenter (link below) for the image processing. The video experimenter supports NTSC which is 600x480, so I think that should work. I'm still not sure about the memory though... http://nootropicdesign.com/ve/?utm_source=projectlab&utm_medium=ad&utm_content=sidebar-top-1&utm_campaign=projectlab
I'm looking for suggestions as to what platform to use, or any other suggestions you have, really. Thanks for your time!