How to setup a 4WD with Ubox V1

From Spintend service and support

This is a guide to help our users to setup a 4WD with two Ubox V1. Ubox V1 was our first VESC product, designed in 2020. our design was not very thoughtful, it is not so convenient for build a 4WD. Thanks to our users, you are very positive about V1.

This guide descripts the configuration of 4WD with two Ubox V1 and Uni1 remote, based on newest FW 5.03 and VESC tool 3.01 PC edition.

Conception

To combine 2 Uboxes to build a 4WD, we need to set one of them as master, the other to slave. The master Ubox receives the remote’s control signal, relay the single to all the other ESCs through CAN bus.

For Ubox V1, there are two places to pay attention to:

The power on/off control

Ubox V1's power on is maintained by it's built-in 2.4GHz receiver, it's a MCU and 2.4GHz transceiver combo chip. It is only checks the power button to make its own power on/off decision. So we need to give button state to both two Uboxes.

We can parallel connection of two wires, the GND and switch of the button cable, into one button, to make one button to power on/off two Uboxes workable. Like in this picture:

picture

Uni1 remote

If you coupled with Uni1 remote, the receiver inside Ubox will report back data to remote, and the master and slave Ubox share the same radio link channel, the slave Ubox's back report will confuse the radio link loop. So we need to de-bind the slave Ubox with remote. We can find de-binding in remote's setting menu->Receiver Config->Debinding.

The binding/de-binding procedure need to be careful: The receiver(Ubox) does binding/de-binding detect with in about 0.5 seconds every time after power on. So we need do binding master/de-binding slave independently, to avoid binding/de-binding two of them simultaneously.

Prepares

  • VESC tool V3.01 PC edition and VESC firmware 5.03 in ESCs.
  • Two Ubox V1.
  • An Uni remote.
  • A 'Y' power cable to distribute battery power to two Uboxes.
  • A 4PIN CAN cable,
  • An USB cable.
  • 4 motors
  • Make a 'Y' like power button, begin with the button included with Ubox, and find a extra 3 pin cable, connect the extra cable's black and white wires to the button cable respective black and white wire.

[piture needed]

Step by step

Choose one of 2 Uboxes as slave, de-bind it with remote, enable its internal CAN bus

  1. Plug off master Ubox and don't plug it aftermath.
  2. Power off slave ubox, plug in power button.
  3. Power on remote, go into setting menu->Receiver Config->Debinding->Enter. Then power on salve Ubox, the debinding will succeed. To check if the remote is lost the control to Ubox now. Then power off remote.
  4. Do not power on remote, then power on slave Ubox.
  5. After button led is solid green, click button 6 times, then wait 1 second.
  6. Check the CAN LED(LED 7) inside the Ubox panel is on, if no, go to step 2, try again.

Now the slave Ubox’s is de-bound, and its internal CAN is ON.

Set the other Ubox as master, bind with Uremote, enable its internal CAN bus,

  1. Plug off slave Ubox and don't plug it aftermath.
  2. power off master Ubox and Uremote.
  3. Do not power on remote, then power on Ubox.
  4. After button led is solid green, click button 8 times, then wait 1 second.
  5. Power off Ubox, then click button to re-power on Ubox, check if the button led is no blinking when power on. If not blinking, go to step 1 and try again. Blinking is mean receiver is enabled.
  6. Power off Ubox, then Power on Uremote, go into setting menu->Receiver Config->Binding->Enter. Then power on Ubox, the binding will succeed.
  7. Go into remote's setting menu->Ports Config->UART. Set to ‘UART To A’.
  8. On the remote, go into setting menu->Ports Config->CAN Bus. Set to 'ON'.

Now the master Ubox’s receiver is enabled, and its internal CAN is ON.

Combine with CAN cable

  1. Use Y power cable to plug in 2 Uboxes,
  2. Then plug in the CAN cable into master Ubox’s CAN-out and slave Ubox’s CAN-in.
  3. Plug in power button into master Ubox’s ‘BUTTON’ socket.
  4. Click button 1second to power on, and hold button 3 seconds to power off.
  5. If power ON/OFF not work, go to step 1, check if all the cables are in its correct socket, and try again.

Setup motors FOC

Connect in all 4 motors, plug the USB cable into the ESCA of master ubox, open VESC tool, do ‘Setup motors FOC':

Do setup FOC.jpg


Setup remote control

In VESC tool, AutoConnect.

Auto connect.jpg


In the VESC tool window, low-left corner, select Local ESC.

Select local esc in can list.jpg


Go to APP settings->General->Gerneral

App settings general general.jpg


Read out APP settings

Read out app settings.jpg


Set APP to Use UART

Set app to use uart corrected.jpg


Write back to ESC

Write app settings back to esc.jpg


Then, set VESC remote->General->Control type as current mode or the other mode you wanted, and write back to ESC.

App settings vesc remote general current.jpg


Now finished, push the remote’s gear to test if all 4 motors are spinning.

Be careful of click buttons on right side bar, read out setting first, make settings, then write back to ESC. If occasionally, you reset them to default, we recommend that you repeat FOC setup and subsequent steps, because during FOC setup, the VESC tool will automatically bind them to CAN bus combined mode, this is convenient. Otherwise, we need to config them manually, that is a little troublesome.

Lights and horn

Need to rewrite

Plug in front light, brake light, and horn, into their respective sockets. Test them on the remote. If one of these devices not working, you can do a crossing check first. For example, if the front light is working, use it to check the rest socket to test if the sockets are functioning.

Concludes and explains

  1. Binding and de-binding is actually same action, de-binding just gives receiver an unusable ID.
  2. Do not do binding and de-binding when two Ubox V1 combined, they all will be bound.