Hobbywing ESC 6V/3A

I need an H bridge for a project that uses electromagnets.
Basically switch between polarities, quickly.
If I understand correctly - a DC ESC is what I need.

I see a lot of ESCs on a website called Hobbywing.
But some of them mention things like:
'BEC Output: Switch Mode: 6V/7.4V@3A' - Hobbywing QuicRun WP Crawler Brushed 80A
or
'NEW Updated SBEC 6V/3A' - HobbyWing QuicRun 1060 Waterproof Brushed 60A

Does this mean that you need more than 5v to control them?
As far as I know - arduino uses 3-5v.

Also I see examples of controlling these things using a package called 'Servo.h'

In this (and others) example they control the speed
But I can't find an example that switches the direction (which is why I need an H bridge)
So in terms of RC cars it would be - drive forward -> then drive back.

Thanks.

A DC motor driver can steer with something like this:

CONNECTIONS from MCU to L298N
  const int LeftMotorForward = 7;
  const int RightMotorForward = 4;
  const int LeftMotorBackward = 6;
  const int RightMotorBackward = 5;

STOP
  digitalWrite(LeftMotorForward, LOW);
  digitalWrite(RightMotorForward, LOW);
  digitalWrite(LeftMotorBackward, LOW);
  digitalWrite(RightMotorBackward, LOW);

FORWARD
  digitalWrite(LeftMotorForward, HIGH);
  digitalWrite(RightMotorForward, HIGH);
  digitalWrite(LeftMotorBackward, LOW);
  digitalWrite(RightMotorBackward, LOW);

[edit] BACKWARD (whoops... skipped this one)
  digitalWrite(LeftMotorForward, LOW);
  digitalWrite(RightMotorForward, LOW);
  digitalWrite(LeftMotorBackward, HIGH);
  digitalWrite(RightMotorBackward, HIGH);

RIGHT
  digitalWrite(LeftMotorForward, HIGH);
  digitalWrite(RightMotorForward, LOW);
  digitalWrite(LeftMotorBackward, LOW);
  digitalWrite(RightMotorBackward, HIGH);

LEFT
  digitalWrite(RightMotorForward, HIGH);
  digitalWrite(LeftMotorForward, LOW);
  digitalWrite(LeftMotorBackward, HIGH);
  digitalWrite(RightMotorBackward, LOW);

Or, the L298 library

What is the magnet's rated voltage and current?

about 7 amps at 20-32 volts, depends - when they are hot, you need more volts to push those 7 amps.

thanks man, I think for this you need 4 pins, right?
how about those that use 3 pins?

Sorry, not a 4-wire. Your ESC does the work. Your connections are battery, motor+, motor- with a receiver and a switch on the other side.

thank you so much!

I guess the code would be the one explained here

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.