Thumbnail

PWM Servo Feedback (ADC)

by Synthiam

This control will allow hobby pwm servos to have positional feedback in ARC.

How to add the PWM Servo Feedback (ADC) robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Servo category tab.
  5. Press the PWM Servo Feedback (ADC) icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the PWM Servo Feedback (ADC) robot skill.

How to use the PWM Servo Feedback (ADC) robot skill

This control will allow hobby PWM servos to have positional feedback in ARC with a slight modification requiring a wire, soldering iron, and Philips screwdriver. This uses the ADC port on the EZ-B (v4, Arduino, etc.)

Example

In this video, we remote control a JD with another JD. The servo positions from one JD are read using this robot skill, and the positions are set to the other JD. This is like using one JD as a puppet to control the other JD.

Video Tutorial

Watch this video tutorial to see how the servos are modified and connected to the EZB. This video also shows how to calibrate the servos for the range position.

Config

The configuration menu is outlined in the above tutorial video. Select the ADC port for the servo and select the servo port. You can manually enter the ADC values or auto-calibrate the Min and Max positions. User-inserted image


ARC Pro

Upgrade to ARC Pro

ARC Pro will give you immediate updates and new features needed to unleash your robot's potential!

#1  

Thanks. This opens up all sorts of better building and money savings.

#3  

@DJ, Hello.

I have a servocity Linear servo with 3 wire that does connect to the EZB servo port.  I watched your live hack about using the PWM servo Feedback(ADC).  I want to hack my Linear servo to use PWM servo Feedback(ADC), . Link to the linear servo; https://www.servocity.com/12-stroke-115-lb-thrust-linear-servo/

Background on my linear servo:  When I turn on the power to my linear servo it automatically pulls the linear shaft all the way down.  I would like it to stay at the last position or the Stand position and not pull the shaft all the way down.  will hacking my linear servo allow it to stay at the last position used after turning the power off then back on again?

Is there a way to add a script when the EZB is turned on then turn my linear servo power on to hold the last position?  I know I can add a script in the connection configure, just not sure how to write the script and if using the PWM servo Feedback(ADC) will work.

So long store, does the hack keep the last position used?

Thank you in advance for your time.

#4  

@DJ,

I think I have a way so my linear actuator does not pull down position.  However, I am needing Board #4. Is possible to add (select Board number as you can in Auto Position)?  This is a new feature request please.

Thank you, cheers, merne

PRO
Synthiam
#5  

Updated to allow selecting the ezb board index.

User-inserted image

#6  

Wow DJ, You're awesome!

That was fast. I didn’t expect you to do it today.  Isn’t it a holiday for you guy’s up North today?

Thank you very much DJ,much appreciated.

Cheers

#7  

@DJ,

Sorry the newer version did not work.  I even did the version update no luck. Uninstalled ARC and reinstalled ARC still no luck.  See picture below...  Thank you DJ.

User-inserted image

PRO
Synthiam
#8  

Updated for that message.

#9  

Thank you DJ, it's now working. You're fantastic!

#10  

Ya gotta love those Canadians. Best neighbors ever!

PRO
Synthiam
#11  

Updated with the ability to manually enter a min and max ADC value.

User-inserted image