Ebike controller with arduino

Hi,
I've been looking into building a self balancing skateboard this summer.

I intend to purchase a brushless DC 48v 500w hub motor such as this one:
https://www.aliexpress.com/item/10inch-wide-tyre-brushless-gearless-dc-wheel-hub-motor-36-60v-350w-600w-scooter-hub-motor/32784217803.html

I've been wondering about buying a motor driver to control this motor using an arduino, and I have several questions:

  1. The motor comes with a hall sensor as well. Can I use a regular ebike controller using a PWM signal?
    A controller such as this one is what I would like to use:
    https://www.aliexpress.com/item/Motor-Brushless-Controller-48V-500W-for-Electric-Bike-Scooter-tricycle-controlador-de-motor-sin-escobillas/32608176319.html

It is said that speed is controlled with 0-5v range which is usually provided, in the case of ebikes, by the throttle potentiometer. Seems as if an arduino PWM signal could do the same, controlling the throttle.

  1. If I'm not able to use the arduino with an ebike controller, what kind of motor control should I be using for it? Is this an option?
    (Of course, using a 48v one, not a 36v)
    https://www.ebay.com/itm/New-12V-36V-500W-Brushless-Motor-Controller-PWM-Control-Balanced-Car-Driver-L4R9/162197095470?_trkparms=aid%3D555018%26algo%3DPL.SIM%26ao%3D1%26asc%3D52475%26meid%3D5b2a3a2bbd6248409fa6be26861c92d2%26pid%3D100010%26rk%3D2%26rkt%3D12%26sd%3D152610933419%26itm%3D162197095470&_trksid=p2047675.c100010.m2109

Thank you for reading :slight_smile:

That looks like it is going to be a big skateboard.

It is a brushless motor. The hall effect sensors are required by some motor controllers. For balancing (Segway) mode, it can be worked with or without the sensors.

A e-bike controller can be controlled by PWM with some analog filtering. I don't expect any e-bike or PWM controller will be suitable for Segway-style balancing as you need finer control over the wheel position rather than velocity.