Hey everyone, I'm a senior electrical engineering student and for my senior design project I'm supposed to design a machine. My role was to get the sensors and layout how everything is supposed to work, with equations, and the layout of the algorithms, and my partner was to write the code (since he is supposed to be a computer engineer), but he is not doing his part and looks as if he will not be graduating. So now his job depends on me.
I do not want anyone to write the code for me but to sort of point me in the right direction.
basically I'm going to use a potentiometer to simulate values (d1, d2, etc..). So I will be using the analogue inputs on the arduino. The voltages will range from 0-5 and each will represent a value.
There is a list where the d1's and d2's are assigned a certain value (S1, S2, etc...)
The system will take the first value (d1). The system will take the second value (d2).
The system will take the first and second value (d1 and d2) and put them into an equation that I develop to get a value (x1).
The system will take that value (x1) and compare it to the value (s2) of the last input (d2) (sorry if that is confusing)
If the x1 is greater than the s2 than it will do something, if not it will do something else.
Kind of vague, but I just need to be pointed in the right direction or something I can build upon.