# How to calibrate modalai esc v2 Rev B ?

Source: https://forum.modalai.com/topic/1522/how-to-calibrate-modalai-esc-v2-rev-b
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2022-11-03 06:09:07 UTC by Tamas Pal 0
Replies: 6 · Views: 968

## Chad Sweet (ModalAI staff) · 2022-11-03 06:11:04 UTC

https://docs.modalai.com/modal-esc-v2-manual/#calibration

## Reply by Tamas Pal 0 · 2022-11-03 09:30:42 UTC (in reply to Chad Sweet)

Thanks @Chad-Sweet 
I am having this issue
```
tamas@tamas:~/Develop/voxl-esc/tools$ python2.7 voxl-esc-scan.py 
Traceback (most recent call last):
  File "voxl-esc-scan.py", line 37, in <module>
    from libesc import *
  File "tools/libesc/__init__.py", line 8, in <module>
  File "tools/libesc/esc.py", line 8, in <module>
ImportError: No module named numpy
tamas@tamas:~/Develop/voxl-esc/tools$ python3 voxl-esc-scan.py
  File "/home/tamas/Develop/voxl-esc/tools/voxl-esc-scan.py", line 49
    print 'ERROR: Please provide baud rate with --baud-rate option'
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
```
How to fix it?

## Reply by Alex Kushleyev (ModalAI staff) · 2022-11-03 14:05:15 UTC

https://gitlab.com/voxl-public/flight-core-px4/voxl-esc/-/tree/master/tools#installation-instructions-for-ubuntu-1604 Please check these steps

## Reply by Alex Kushleyev (ModalAI staff) · 2022-11-03 14:06:00 UTC

Also, the current tools are supported on python 2.7 only but we are working on update for python 3

## Reply by Tamas Pal 0 · 2022-11-07 14:18:40 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev Do I have calibrate the esc to fly voxl2 based quad?

## Reply by Alex Kushleyev (ModalAI staff) · 2022-11-08 04:29:18 UTC

ESC calibration is required whenever you change motor or propeller or battery voltage. Do you have a custom quadrotor or was it pre-built when you purchased it with VOXL2?

## Reply by Tamas Pal 0 · 2022-11-08 09:16:21 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev I am making a quadcopter with voxl2 and the modalai esc. I am trying to calibrate the esc. I am able to run the script but having this issue while scanning the esc with ftdi cable although I am able to run the motors with voxl2 J18 port.
```
/voxl-esc/tools$ python voxl-esc-scan.py 
INFO: Device and baud rate are not provided, attempting to autodetect..
Scanning for ESC firmware: /dev/ttyUSB0, baud: 250000
Scanning for ESC firmware: /dev/ttyUSB0, baud: 2000000
Scanning for ESC firmware: /dev/ttyUSB0, baud: 921600
Scanning for ESC firmware: /dev/ttyUSB0, baud: 57600
Scanning for ESC firmware: /dev/ttyUSB0, baud: 115200
Scanning for ESC firmware: /dev/ttyUSB0, baud: 230400
Scanning for ESC bootloader: /dev/ttyUSB0, baud: 38400
Scanning for ESC bootloader: /dev/ttyUSB0, baud: 230400
Scanning for ESC bootloader: /dev/ttyUSB0, baud: 921600
ERROR: No ESC(s) detected, exiting.
```
Is there any way to calibrate esc using voxl2?
