ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

#17  

User-inserted image

I could use some help on this one. Tried different scenarios but the if statement doesn't compile and the comport doesn't open. Could you please fine tune the software. Is there a certain area in the Arduino code that this should be inserted? I'd rather make these adjustments to code as needed on my end rather than update 40 different Arduino's software. It would be nice if we could get this to work. 

User-inserted image

PRO
Synthiam
#18  

I can't figure out what you're trying to do. You need to provide information if you want assistance.

#19  

I am trying to set a position in the Arduino and in ARC . I copied and pasted Athena's code from the previous question/answer above, but it did not work.

#21  

If you read the above question, you will see that I was trying to move the servo position in the Arduino and an ark without actually moving the servo This would come in to play if had a very precise potentiometer, and I could tell it exactly where it is without moving anything

#23   — Edited

No that is not what I am saying at all. I saw this feature on a high quality robot. They use a precise potentiometer or an absolute encoder to set the original location coming on a power up. The voltage is directly proportional to an exact location. The location is changed on the UI and behind the scenes in the driver. After that you just use the steps in the stepper servo skill. No movement is needed. If you require super precise then you can use the initial reading and then go towards a really precise limit switch. This why having the ability to change it's location without moving it would be very helpful.

PRO
Synthiam
#24   — Edited

what you are describing is how every other robot using ARC works, except yours, apparently. Because you are using stepper motors, you can only know the home position by a limit switch. From that home point, the servo commands know exactly how many "steps" to send to the stepper to move it into specified angles. So your Stepper does operate like a servo, if you learn how a servo works first, I think. You can specify an exact position with a Servo, and that includes the Stepper Motor robot skill + limit switch.

If you want to use a potentiometer, you will need a dc geared motor instead. Combine that with a kangaroo and sabertooth.

Otherwise, use the stepper as a servo. If you need further information, read the Stepper Motor robot skill manual or how a servo works here: synthiam.com/Support/Advanced-Fundamentals/servo-motor

You may also benefit from reading the Getting Started guide that explains the steps to build a robot here: synthiam.com/Support/Get-Started/how-to-make-a-robot/make-a-diy-robot