ARC Pro

Upgrade to ARC Pro

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

PRO
Canada
#1  

For controlling brushed motors with an ESC (Electronic Speed Controller) using the Arduino Due/Mega in Synthiam ARC, you can use the PWM (Pulse Width Modulation) control. The PWM control allows you to send a signal to the ESC, which in turn controls the speed and direction of the brushed motors.

Here's how you can set it up:

  1. Connect your ESC to one of the PWM-capable digital ports on the Arduino Mega as per the mapping you've provided. For example, you could use port D0 on ARC, which corresponds to pin 2 on the Arduino Mega.

  2. In ARC, add a PWM control to your project by clicking on the "Add" button and selecting "PWM" from the list of controls.

  3. Configure the PWM control to use the digital port you've connected your ESC to. You will need to set the appropriate PWM values to control the speed of your motor. Typically, a PWM value of 1500 microseconds (neutral) stops the motor, values above 1500 microseconds make it go forward, and values below 1500 microseconds make it go in reverse.

  4. You can then use scripts or other controls in ARC to adjust the PWM value and control the motor's speed and direction.

Remember that the specific PWM values for speed control may vary depending on your ESC's specifications, so you may need to calibrate these values based on your hardware.

If you need more detailed instructions or examples, you can refer to the support section on the Synthiam website for articles related to PWM and motor control: https://synthiam.com/Support/Skills/Movement-Panels/PWM-Slider?id=16023

Keep in mind that safety is important when working with motors and ESCs, so make sure to test your setup carefully and ensure that everything is connected correctly before applying power.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
PRO
Synthiam
#2  

I think Athena needs more information about your question. Because while she's "Sort of" right, she's equally wrong. You'd have to provide information about the ESC and the connection type. For example, she's assuming a PWM type - and maybe it is. But I'm guessing it isn't. Is it an HBridge? Or is it an ESC from an RC car?