
Bernard104
South Africa
Asked
— Edited

Hi,
I'am having trouble with my programming, I cant seem toe get the ESC to go into reverse. I'm a new user of the ARC software so it could just be me interpreting the code wrong but this is what I wrote to try and get the ESC into reverse.
Move(D0, "stop") Movement_Wait("stop") Move(D0, "reverse") Movement_Wait("reverse") Servo(D0, 100)
Every time i run the code it tells me that there is a problem with the word "stop".
Any help will be greatly appreciated.
(I'm using the key control to control the movements)
I tried the modified servo Panel, but it did not work. I live in a small town, so there is no chance that I would find a H-Bridge here, I would have to order it online.
There is a set button on the Tamiya TEU-101BK.
To calibrate it follow these steps accurately and carefully.
When you first power the ESC up the LED should flash red once. Run the code Release(port) where port is the port it's connected to. Now press the set button. Now run the code Servo(Port,90) Now press the set button. Now run the code Servo(Port,10) Now press the set button.
It should now be calibrated and work like a modified servo. You will not have to calibrate it again once you do this once.
Note: The above is based on DJ's servo positioning code above. We may need to experiment a little still but I am sure we are heading in the right direction.
For more information on this ESC have a read of the manual
FOUND IT!
The code that works for me is:
Move(D0, "reverse") PWM(D0, 8)
Just tested DJs suggestion... Servo(D19,90) and Servo(D19,12) works (full forward and full reverse) on a Vex single motor controller... And the closer I get to 50 on either 90 or 12 the slower the motor runs... Cool... Learned something new and now I can use more of the cheap Vex motor controllers in my projects instead buying and using the more expensive sabertooths... thanks...
@Bernard please re-read my post, please, please... Do not use the modified servo control. You must use the Modified servo Movement Panel. Notice the difference in words.
For example, the words "modified servo" are only 2 words. The words "Modified servo movement panel" is 4 words. Notice how they are different?
Your example code does not make sense. Using the Move() and PWM() functions together do not make sense.
Please re-read my last post. Have a cup of tea between reading it. Then read it again
Throwing this out there as I think it may clear some things up, at least for us trying to help here.
The Tamiya TEU-101BK operates a single motor.
With that in mind, the Modified servo Movement Panel may not be the correct control for this operation. If it is only capable of moving an object in a forward or reverse direction then the Modified servo control, correctly configured for the forward and reverse servo values may be better suited.
To be honest, I would try the Modified servo control (not the Modified servo Movement Panel) first.
The ESC should now be calibrated to the Modified servo control.
Test it now by clicking on the Forward button on the Modified servo control or using the script command Move(D0, "Forward") - assumed it's connected to D0, change port to suit.
Now try the Reverse button on the Modified servo control or use the script command Move(D0,"Reverse") - assumed it's connected to D0, change port to suit.
Now try the STOP button on the Modified servo control or use the script command Move(D0,"Stop") - assumed it's connected to D0, change port to suit.
If the manual is correct this should have worked and now you can use the Move() command in EZ-Scripts or use the Modified servo control to have the motor move forwards, reverse or stop.
For more information on the ESC (however limited to calibration and fault finding) it is available here
For more about the Modified servo control click here
For more about the Modified servo Movement Panel click here
If your intention is to use it for movement of your robot then you will require the Custom Movement Panel plus some scripting or, if using 2 ESCs for movement the Modified servo Movement Panel and both ESCs correctly calibrated.
Thank you for all your help, much appreciated.