Your motor, tuned from a web page.
Weber Drive measures your motor by itself, spins it smoothly without Hall sensors, and gives you every setting, live plot and software update in a browser. No cables, no extra software.
What it does
One small drive board and one web page. Everything you need to bring up a new motor is on that page.
Sensorless FOC
Field-oriented control with a back-EMF observer and PLL gives smooth torque and a clean start. A motor with Hall sensors can use them for the first turns, but it does not need them.
Calibrates itself
Press one button. The drive measures resistance, inductance, flux linkage and the angle offset, checks the flux against the back-EMF and stops at the first problem it finds.
Tuned over Wi-Fi
Open bldc.local on a phone or laptop. Live Id/Iq and speed plots, a speed or torque command, and every parameter in folding groups.
Updates from the page
New drive firmware and a new web interface both upload from the same page. A wrong file is refused before anything is written, and a web update that fails to start rolls back by itself.
Built to stop safely
A big E-STOP button, a stop when the Wi-Fi or the link goes quiet, red marks on the parameters that can hurt hardware, and updates only while the drive is disabled.
Your throttle, your way
Command it from the web page, from one of two analog inputs, or from a standard servo/ESC pulse (1000 to 2000 µs). Run it in speed mode or in torque (current) mode.
From box to spinning in three steps
Connect
Power the drive and join its Wi-Fi. Open bldc.local in any browser.
Calibrate
Enter the pole pairs and press Calibrate motor. About 40 seconds later the drive knows your motor.
Run
Press Enable, move the speed slider. Watch the plots, save your settings to flash.
Proven on real motors
Using the Weber Drive
1Safety
A motor drive switches high currents. A wrong setting can destroy the drive or the motor in a fraction of a second.
- Keep hands, hair and loose clothing away from the rotor and the propeller or wheel. Calibration turns the rotor with nothing commanded by you.
- Calibrate with the motor free to turn and no load, unless you know what you are doing.
- Stay inside the voltage and current ratings of your drive hardware, your supply and your motor.
- Keep a hand on E-STOP. It is on the page next to Enable.
2Connect
- Power the drive. The Wi-Fi module starts with it.
- If it knows a network, it joins it. If it cannot connect within about 20 seconds, it opens its own access point named
BLDC-followed by four characters. Join it with the access point password that was set when the module was programmed. - Open
http://bldc.localin a browser. If your device cannot resolve that name, use the IP address the module got on your network. - Look at the three badges at the top. WebSocket and Drive link must be green. The third shows the drive state: Disabled, Calibrating, Enabled or Fault.
Choosing a Wi-Fi network
Press WiFi and then Scan networks, pick your network and enter its password. The drive tries it for about 20 seconds. If it fails, the old network or the access point comes back by itself. The button works only while the drive is disabled.
3First run with a new motor
Pole pairs
Enter the number of pole pairs under Motor & calibration and press Set. Pole pairs are the magnet count divided by two.
Calibrate motor
- Check that the rotor can turn freely and that your supply is connected.
- Press Calibrate motor. It takes about 40 seconds and the rotor turns.
- The drive runs these stages in order: voltage-sense delay, resistance R, inductance L, flux linkage, angle offset, a flux check against the back-EMF, and the angle offset once more. The progress bar and the line under it show where it is.
- It stops at the first problem and tells you what went wrong. Abort ends it at any time.
The two single-step buttons, Motor only (R, L, flux) and Angle offset only, exist for repeating one part. Normally you need only the full calibration.
Motors with Hall sensors
After a successful motor calibration, press Calibrate halls. The motor spins forward and then in reverse and the drive learns the six Hall edge angles, whatever the wiring order. When it succeeds, the drive switches to starting on the Hall sensors by itself. The motor still runs sensorless once it is moving.
Save
Press Save to flash so the calibration survives a power cycle. Erase saved returns to the built-in defaults on the next start.
4Running the motor
The Command card has two choices that decide how the drive is steered.
| Input | What it does |
|---|---|
| Web | The sliders on this page. If the page closes or the Wi-Fi goes quiet, the drive stops. |
| ADC 1 / ADC 2 | An analog throttle on one of the two analog inputs. The page shows the throttle in percent. |
| Servo PB6 | A servo or ESC pulse of 1000 to 2000 µs at about 50 Hz on pin PB6. The page shows 0 when no pulse arrives. |
| Mode | What the slider means |
|---|---|
| Speed | A target speed in rpm. A speed controller (Speed Kp, Speed Ki) drives the current loop and the Acceleration parameter limits how fast the target ramps. |
| Current (torque) | A torque current iq from 0 up to Max iq; negative runs in reverse. With no load, the speed rises until the voltage limit is reached. |
Starting and stopping
- Keep the slider at zero and press Enable. The state badge changes to Enabled.
- Move the slider slowly. Watch Id / Iq and Actual speed.
- Press Zero all to bring every command to zero, or Enable again (it now reads Disable) to switch the drive off.
- E-STOP stops at once and latches a fault. Press Clear fault when the cause is fixed.
Reading the page
- Id / Iq plot: Iq is the torque current and follows the Iq reference (the third line). Id sits near zero in normal running.
- Actual speed plot: measured speed against the reference.
- The DC (supply) current is an estimate from the phase voltages and currents. It is meant for watching trends. Expect it to read a little below a bench supply, because the board's own losses are not in it.
5Parameters
All parameters are in folding groups. Motor and Speed loop are open at first, the others are folded. The page remembers which groups you opened. Open all and Close all do what they say.
- A change goes to the drive at once and stays in RAM. Press Save to flash to keep it.
- Read all from drive reloads every value.
- Save parameters to file downloads all values, calibrations included, as a file named after the profile name. Load parameters from file writes such a file to the drive. It works only with the drive disabled, and you press Save to flash afterwards.
- Red marks mean a wrong value can cause damage. Other marks flag values the calibration normally sets.
6Tuning the speed loop
The defaults are Speed Kp 0.03, Speed Ki 0.3 and Acceleration 2000 rpm/s. They are safe and a little soft.
- Run in Speed mode with the real load on the motor.
- Step the speed slider and watch Actual speed. If it follows slowly, raise Speed Kp from 0.03 to 0.06, then to 0.1.
- Keep Speed Ki about 5 to 10 times Speed Kp.
- If the speed overshoots or oscillates, go back one step.
- Save to flash when you are happy.
7Updates
The header has two update buttons. They update two different things.
| Button | Updates | File |
|---|---|---|
| Drive firmware | The program of the drive board (STM32). | The .bin of the drive project, built for the bootloader layout. |
| Web update | The web interface itself, the Wi-Fi module (ESP32-C3). | esp32c3_driver.bin from the web-module project. |
How to update
- Disable the drive. Both buttons stay locked while it is enabled.
- Be connected through your own Wi-Fi network, not through an open access point.
- Press the button, choose the file. The page checks it and shows its name, size and checksum. A wrong file is refused here and nothing is sent.
- Press the green button, then press it again within 6 seconds.
- Wait until it says done. Do not close the page. A drive update takes up to half a minute. A web update takes about 20 seconds, then the page reloads by itself.
Your saved parameters stay through both updates. The saved Wi-Fi networks stay through a web update.
8Troubleshooting
| What you see | What to do |
|---|---|
| Drive link badge not green | Check the cable between the drive and the Wi-Fi module and the drive's power. With no valid status for half a second the page shows the link as lost. |
| “Command link to the drive timed out: the drive stops.” | The page lost contact. Check the Wi-Fi signal, keep the page open and in front, then enable again. |
| “Motor not identified yet” | Enter the pole pairs and press Calibrate motor. Enable stays locked until then. |
| “Rotor did not follow the field, or flux too small” | Raise Cal spin speed or remove load, then calibrate again. Check that all three motor wires are connected. |
| Calibration “angle offset does not converge” | Calibrate again with no load. If it repeats, check the supply voltage and the motor wiring. |
| Hall calibration: “hall edges are not consistent” or “no hall edges seen” | Check the three Hall wires, their 3.3 V supply and the pull-ups. All three Halls must be connected. |
| Fault banner after E-STOP | Press Clear fault, then enable again. |
| “Disable the drive first.” | The Wi-Fi settings and both updates need a disabled drive. |
| “The setup access point has no password” | Connect the module to your network, or set an access point password. |
| Web update says “No spare slot” | This module was programmed with the old single-program layout. Flash it once over USB with the two-slot layout, then use the web update. |
| The file size is not acceptable, in the Drive firmware card | You chose the web-module file. Use the Web update button for that file. |
Does the motor need Hall sensors?
No. The drive runs sensorless. Hall sensors are optional and are used only to start.
Will my settings survive an update?
Yes. Parameters are kept in a separate flash area. Update files never overwrite them.
Can I back up my settings?
Yes. Use Save parameters to file, then Load parameters from file on the same or another drive.