07-19-2013 05:32 PM
OHH ok i think I understand now, I got an "IF" inside another "IF" but its not needed right ? thats what you mean ? you're correct
07-19-2013 05:43 PM
Ok thanks for your help untill now, i would like to know if you can help me with this:
So what if i'm pressing the forward button but there is an obstacle and the device isnt moving? How can I be checking the motor's current or voltage to see if it changes suddenly ?
07-19-2013 06:07 PM
You would need to "close the loop" with some sort of sensor. You can either use a current sensor or a position (absolute or relative) sensor to determine a stall condition. The two sensors are not really the same thing and provide different information and you would probably need to use both (the current sensor to protect the electrical circuit and the position sensor to see if the motor is moving.
I'm sure that there are many ways to do it but these are the two that I've used in the past.
07-19-2013 06:23 PM
ok thanks very much for your help, i will search for those sensors and i will come back if i need help.
07-19-2013 06:34 PM
Will this sensor work ? I can input some limits for the current and if the sensor reads more current display an error..
07-19-2013 07:22 PM
I don't see any reason why that won't work to measure current.