This is the outline of my project:
- interpret environment data (sensor, motor, etc..).
- Modify this data into a more usable form,
- send it back to the same motor for further operation from modified data.
As an example (this is not the project, but just an example to make sure I am being clear).
A motor moves a conveyor belt with various size flasks on it, some large other small. Depending on the reading of the position of the motor (from encoder) another process (filling the flasks) will take place. If the first motor encoder data indicated the flask was small then the amount of liquid poured will be small. If large, the amount of liquid dispensed will be large.
More generally, read the location of an item based on motor encoder feedback. Modify this data. Send this modified data back to a different motor so that it does something specifically as a function of the first motor encoder data.
I am able to send the original encoder feedback to a file, manually massage it and paste it into an Arduino script, compile and have everything work great. I just want to remove the manual steps (cut & paste) and data massaging (I'm looking to an Arduino program to do that).
To further complicate things, I want this process to be part of a distributable package that does not require further compiling. Reading from a sim card is fine. Also, I am not too price sensitive as the Arduino is a small portion of the total cost of the final product.
I hope someone can give me some insight or pathway to a solution. All the very best, John.