Difference between revisions of "Adapter V2 manual"

From Spintend service and support
Line 126: Line 126:
==Concludes and explains==
==Concludes and explains==


# The reverse function is remapped on to the RX pin of VESC ADC & UART socket. And the cruise function onto the TX pin. So  we suggested to use ADC only mode instead of ADC and UART.
# The reverse function is remapped on to the RX pin of VESC ADC & UART socket. And the cruise function onto the TX pin. So  we suggested to use ADC only mode instead of ADC and UART mode.
# There are many ADC control mode in the VESC, the most flexible mode is '''Current Reverse ADC2 Brake Button,''' it supports cruise, reverse, and ADC brake, if you want a button brake, you can let the brake input connect to a button with the other pin of the button  connected to  VDD (3.3V).
# There are many ADC control mode in the VESC, the most flexible mode is '''Current Reverse ADC2 Brake Button,''' it supports cruise, reverse, and ADC brake, if you want a button brake, you can let the brake input connect to a button with the other pin of the button  connected to  VDD (3.3V).
# If you have a bidirectional throttle, please set adapter to unidirectional mode, the ADC brake in is no need to connect, then set the brake input switch to '''SW.'''
# If you have a bidirectional throttle, please set adapter to unidirectional mode, the ADC brake in is no need to connect, then set the brake input switch to '''SW.'''

Revision as of 22:20, 23 March 2022

This is the manual of HW V02, the newer hardware version is in progress, waiting our users to feedback.

The V2 adapter is designed to make convenient for users to connect wires of e-bike/e-scooters to the VESC. Combine with Ubox V2, We can easily to build an e-bike/e-scooter.

This manual is based on Ubox V2, for the other VESCs, the conceptions are the same.

Features

  1. Horn, head light, turn light, brake & rear light, and reverse light support.
  2. High, middle, low, 3 level throttle support.
  3. Support both hall brake and mechanical brake input.
  4. Support bidirectional throttle mode.
  5. Two / one wheel drive support.
  6. Power limit for compliance to the regulations.

Wiring

Mode switching

Adapter V2 has 3 mode switching: 2/1 wheel drive mode switching, power limit mode on/off, and unidirectional / bidirectional throttle switching.

2/1 wheel drive mode

Hold both the right and left brake handles then power on the system, the adapter will toggle the 2/1 drive mode, after the switching, the buzzer will ring once for 1 wheel mode, and twice for 2 wheel mode. Release both left and right brake.

The principle of 2 wheel drive is to copy the control signal from main ESC to the second ESC. In order to implement this function, the CAN bus connection of two ESCS need to set off, for Ubox, please refer: The power button of Ubox#The click button configuration.

Power limit mode

Hold both the left brake handle and the throttle handle bar, then power on the system, the adapter will toggle the power limited/unlimited mode, after the switching, the buzzer will ring three times to indicate the mode change, release the throttle and left brake.

The principle of Power limit mode is to scale the throttle handle bar's input to the L level, ignores the H, M, L state. So set the L level to meet your local regulations.

Unidirectional / bidirectional throttle switching

Hold both the left brake handle and the throttle handle bar, then power on the system, wait the buzzer ring three times, then still hold throttle and left brake 3 more seconds, until the buzzer again to ring 6 times, release the throttle and left brake.

The difference between unidirectional / bidirectional mode is, in unidirectional mode, the throttle output to ESC is as same as input throttle, in bidirectional mode, if the brake not triggered, it is acting like unidirectional mode; if the brake handle is triggered, it will replace the throttle output with the brake signal from the brake input.

Setup in VESC tool

Before setup control logic to the VESC, we need to setup motor's FOC first. The following contents are based on VESC tool PC edition.

For 2/1 switch-able configuration, the setup is a little more complicated.

The Ubox has a internal 2.4G receiver, in this application, we can disable receiver, by click the button 9 times after the Ubox powered on and the button LED solid.

2 wheel drive mode only

If you want 2 wheel drive mode only, you can config the two ESC of Ubox into CAN mode, let the control signals relay through the CAN bus. We can let the wizard to finish the input setup.

1.After Ubox power on, and button LED solid, click the button 6 times, then wait 1 second, the internal CAN bus connection is on.

2.Plug in the ADC cable only from adapter's main socket to ESCA's socket.

3.Set you throttle handle bar's H-M-L switch to H position.

4.Then use a USB cable plug into ESCA, on the VESC tool PC edition:

Setup input.jpg

Welcome to input setup wizard.jpg

Multiple vescs.jpg

Choose app.jpg

Adc mapping

In this step, pull the throttle and the brake handles, to let the ESC learn the input signal. If you don't have handle for brake, switch the brake mode switch to 'SW' mode, then use a screw to adjust the 'BRK' potentiometer to fulfill the ADC CH2 learning.

Adc configuration.jpg

Conclusion.jpg

Set up adc mode.jpg

Go to APP Settings->General->APP to Use, set it to ADC.

Write app configuration.jpg

Click Write app configuration, to save configuration to ESC.

Finished, to check if all the controls are working correctly.

2/1 wheel drive switch-able

If you want a switch-able system, you need to separate two ESCS from CAN bus, let them working alone. And set each of them one by one.

  1. After Ubox power on, and button LED solid, click the button 7 times, then wait 1 second, the internal CAN bus connection is off.
  2. Plug in an ADC cable from adapter's main socket to ESCA's socket.
  3. Plug in another ADC cable from adapter's second socket to ESCB's socket.
  4. Set you throttle handle bar's H-M-L switch to H position.
  5. Then use a USB cable plug into ESCA, setup ESCA first.

On the VESC tool PC edition:

Set up adc mode.jpg


1.Click connect.

2.Read out APP configuration.

3.Goto APP Settings->General->APP to Use, set it to ADC.

Then

Setup adc control type.jpg


Go to APP Settings->General->ADC->General->Control Type set it to Current Reverse ADC2 Brake Button.

Then

Setup adc mapping.jpg


1.Goto APP Settings->General->ADC->Mapping page.

2.Set mode to Current Reverse ADC2 Brake Button.

3.Click Reset min and max.

4.Click RTAPP (real time app data).

5.In this step, pull the throttle and the brake handles, to let the ESC learn the input signal. If you don't have handle for brake, switch the brake mode switch to 'SW' mode, then use a screw to adjust the 'BRK' potentiometer to fulfill the ADC CH2 learning.

6.Click Apply.

7.Click Write app configuration, to save configuration to ESC.

Write app configuration.jpg

ESCA is finished, click disconnect, connect the USB cable to ESCB, do the above config for the ESCB.

When two ESCs are finished, to check if both ESCA and ESCB are working correctly.

Concludes and explains

  1. The reverse function is remapped on to the RX pin of VESC ADC & UART socket. And the cruise function onto the TX pin. So we suggested to use ADC only mode instead of ADC and UART mode.
  2. There are many ADC control mode in the VESC, the most flexible mode is Current Reverse ADC2 Brake Button, it supports cruise, reverse, and ADC brake, if you want a button brake, you can let the brake input connect to a button with the other pin of the button connected to VDD (3.3V).
  3. If you have a bidirectional throttle, please set adapter to unidirectional mode, the ADC brake in is no need to connect, then set the brake input switch to SW.
  4. For UBox's power button click function, please refer: The power button of Ubox.

Caution and limits

See also

Main Page

FAQ