Hello all. I am new to electronics and would love some help. I should probably "stay in my lane" but I'm trying to build a prototype and am hoping someone can point me in the right direction.
We can point you in any imaginable direction
I need to report an absolute position to a numerical display (2 digit LCD). I have to report positions along a straight line from position number "30" descending down to position number "0", in full number increments.
This is where your communications starts to break down.
Each number has to be spaced 4.75 mm apart with a total length of roughly 150mm.
I hope you mean that the positions are 4.75mm apart
One of the catches is that the string of positions can only be a max of 7mm wide.
I have no idea what you mean by this. I could take it to mean that you only have 7mm of usable physical width for the detector.
[quote
Also, it must be somewhat low cost as well to make this feasible.
[/quote]
Well yeah that is what they all say. One off devices/solutions by their nature are expensive. Further you have no indications of the environmental conditions.
So my thought was to approach this one of two ways. Either some kind of sensor head that is on a track that runs back and forth along the 150mm length and reports the numerical position as it moves. Or, a series of contact circuits where as a device moves along the 150mm strip, a metal contact touches a - & + terminal and closes a circuit to indicate which position it is at.
The best solution depends upon many factors that you have offered no information on.
For example my background is more industrial and in a rough positioning system like this we might use a relatively cheap linear sensor. Linear resistors can be had in all sorts of lengths with very easy connection to a microprocessor (you basically have a voltage divider):
https://www.megatron.de/en/category/linear-sensors.html. If that doesn't float your boat Temposonics has an interesting series of sensors:
http://www.mtssensors.com/products/industrial/index.html These are the sorts of things that come to mind first as most of the engineering is done for you.
Other things that are often used are prox switches set up to provide a binary position value. How useful this would be in your application is unknown. You would need 5 bits of data to cover 30 positions so this is a lot of prox switches. You also need a series of "cams" to actuate them.
While a bit far from industrial practice you could use Electronic circuitry methods to fabricate a PCB with holes optimally spaced and use through hole optical detection. You still need 5 bits of data. You seem to have thought about something similar that uses physical contact detection. Without specifics it is hard to say which would be better. In a dust free environment I'd go for an optical solution. Unless you put a lot of engineering into it, contact detection will be a pain to make reliable and long lasting. Actually for optical detection you might be able to do reflective of a gold plate and dark solder mask.
The device must be able to report the numerical position upon receiving power. So if the unit is at position 20 when it receives power, then "20" must report up to the LCD readout.
That leaves out a lot of incremental solutions.
I hope this makes some sense. I attached a rough diagram that might help as well. If anyone has suggestions I would be appreciative. I'm dealing in a very confined space so it is challenging me for sure.
Thanks!
Confined space can be an issue but you need to look for free space that might not be obvious. EDIT:
Right after posting this I realized I forgot one way that might be better for this application. You can buy these days laser sensors that allow for an analog output and that output can represent distance to target. I've actually have forgotten which ones we use at work but there are many suppliers including Baumer, Wenglor, Banner Engineering, Keyence, Rockwell and a whole bunch of others. I've seen such sensors used to count stacks of trays 3/4" thick very reliably. The trick is finding one that fits your application with minimal distance requirements. Sensors like this ae not universally cheap but they can solve problems that can't be solved quickly any other way.