
robtbldr
Does anyone know how to have a directional servo stop when a button is released on the phone app? i can do this when i press the arrow keys on the desktop but can't seem to figure a way to prevent the phone app from locking in a direction when letting go of the button. I have to press stop. Any ideas? Thanks.
Upgrade to ARC Pro
Get access to the latest features and updates with ARC Early Access edition. You'll have everything that's needed to unleash your robot's potential!
By "directional servo", you may mean "continuous rotation"? If so, use a joystick pad or servo pad control. Otherwise, a start and stop button may be used.
The center (90 degrees) is the center of a continuous rotation's STOP position. The further you move away from 90 degrees in either direction controls the speed of the continuous rotation servo in that direction.
100 < - Turning left faster
99
98
97
96
95
94
93
92
91 < - Turning left slower
90 <- Stopped
89 <- Turning right slower
88
87
86
85
84
83
82
81
80 < - Turning right faster
Set the servo pad so the center of the max and min value is 90
Adjust the POT on the continuous rotation servo to ensure it indeed stops at the 90 degree position
Also, if you are using the continuous rotation servo for wheels to steer the robot, it would make most sense to use a Continuous Rotation Movement Panel. This way you can use the software's advanced movement features. More information can be found in the learn section or by pressing ? (question mark) on each control to read the specific manual page. Here's direct link to the continuous rotation movement panel: http://www.ez-robot.com/Tutorials/Help.aspx?id=12
Here is a direct link on how to adjust a continuous rotation to STOP at 90 degree pwm: http://www.ez-robot.com/Tutorials/UserTutorials/190/1
Lastly, here is how a servo works: http://www.ez-robot.com/Tutorials/Lesson/48?courseId=6
A Movement Panel is how your robot moves. You can have one Movement Panel per project. If your robot uses 2 continuous rotation servos with wheels, then add a continuous rotation movement panel, as linked to in my previous response.
Once you have a movement panel, then you can begin using EZ-Script commands for movement and other controls for movement, such as camera tracking, etc.
The learn section has more information than i can write in a response
If you have a Movement Panel added to your project, then Movements are not universally controlled by any control. This means that if you have a Movement Panel (of any kind), then any other control that wants to MOVE the robot can do so because they know how. This happens magically in ARC.
So, if you have a Continuous Rotation Movement Panel added to the project, then you can use EZ-Script commands such as Forward() or Stop() or Left(). You can also have any other control that controls movement.
There are blue question marks beside the options which explain what they do. For example, to disable speed control on the joystick.
Have fun!
You may also change the sensitivity of the joystick pad with speed control disabled if you wish to customize the behavior.
Have fun!