hi
did you know what is the setting in x-Sim , every time i try it didn't response!
can you help me.
if your x-Sim work properly can you take picture and send to me !
thank you
the motors must turn to the inverse of the pot or when the pot has to turn around in the same direction?
- if your pot is fully turned to max, as Arduino "reads" potentiometer value as motor position, Arduino believes that motor is in max position.
- but the order is to be in middle position
- so the Arduino will ask the motor to go reverse in order to go to middle position
- your motor is turning
- but while your pot keeps still, the motor will turn non stop !
- when you manually turn the pot backward to min, Arduino reads that motor is in min position
- but the order is still middle position, so Arduino will tell the motor to go forward
- motor runs non stop until the pot is in middle position
In the code, you have a "tolerance" parameter : when the pot is around middle position (<middle+tolerance and >middle-tolerance), the motor stops.
You can broader Tolerance value to stop your motor more easily manually.
Return to Motion simulator Finished Project Gallery
Users browsing this forum: No registered users and 1 guest